Refactor providers data

This commit is contained in:
Nikolai Rodionov 2024-04-29 19:46:22 +02:00
parent 28db10c5a2
commit 0a307b557f
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 144 additions and 207 deletions

View File

@ -79,6 +79,7 @@ const (
ServerType_SERVER_TYPE_REGULAR ServerType = 2
ServerType_SERVER_TYPE_PLUS ServerType = 3
ServerType_SERVER_TYPE_PRO ServerType = 4
ServerType_SERVER_TYPE_CUSTOM ServerType = 5
)
// Enum value maps for ServerType.
@ -89,6 +90,7 @@ var (
2: "SERVER_TYPE_REGULAR",
3: "SERVER_TYPE_PLUS",
4: "SERVER_TYPE_PRO",
5: "SERVER_TYPE_CUSTOM",
}
ServerType_value = map[string]int32{
"SERVER_TYPE_UNSPECIFIED": 0,
@ -96,6 +98,7 @@ var (
"SERVER_TYPE_REGULAR": 2,
"SERVER_TYPE_PLUS": 3,
"SERVER_TYPE_PRO": 4,
"SERVER_TYPE_CUSTOM": 5,
}
)
@ -126,61 +129,61 @@ func (ServerType) EnumDescriptor() ([]byte, []int) {
return file_environments_environments_v1_proto_rawDescGZIP(), []int{1}
}
type HetznerLocation int32
type Location int32
const (
HetznerLocation_HETZNER_LOCATION_UNSPECIFIED HetznerLocation = 0
HetznerLocation_HETZNER_LOCATION_NUREMBERG HetznerLocation = 1
HetznerLocation_HETZNER_LOCATION_FALKENSTEIN HetznerLocation = 2
HetznerLocation_HETZNER_LOCATION_HELSINKI HetznerLocation = 3
HetznerLocation_HETZNER_LOCATION_HILLSBORO HetznerLocation = 4
HetznerLocation_HETZNER_LOCATION_ASHBURN HetznerLocation = 5
Location_LOCATION_UNSPECIFIED Location = 0
Location_LOCATION_HETZNER_NUREMBERG Location = 1
Location_LOCATION_HETZNER_FALKENSTEIN Location = 2
Location_LOCATION_HETZNER_HELSINKI Location = 3
Location_LOCATION_HETZNER_HILLSBORO Location = 4
Location_LOCATION_HETZNER_ASHBURN Location = 5
)
// Enum value maps for HetznerLocation.
// Enum value maps for Location.
var (
HetznerLocation_name = map[int32]string{
0: "HETZNER_LOCATION_UNSPECIFIED",
1: "HETZNER_LOCATION_NUREMBERG",
2: "HETZNER_LOCATION_FALKENSTEIN",
3: "HETZNER_LOCATION_HELSINKI",
4: "HETZNER_LOCATION_HILLSBORO",
5: "HETZNER_LOCATION_ASHBURN",
Location_name = map[int32]string{
0: "LOCATION_UNSPECIFIED",
1: "LOCATION_HETZNER_NUREMBERG",
2: "LOCATION_HETZNER_FALKENSTEIN",
3: "LOCATION_HETZNER_HELSINKI",
4: "LOCATION_HETZNER_HILLSBORO",
5: "LOCATION_HETZNER_ASHBURN",
}
HetznerLocation_value = map[string]int32{
"HETZNER_LOCATION_UNSPECIFIED": 0,
"HETZNER_LOCATION_NUREMBERG": 1,
"HETZNER_LOCATION_FALKENSTEIN": 2,
"HETZNER_LOCATION_HELSINKI": 3,
"HETZNER_LOCATION_HILLSBORO": 4,
"HETZNER_LOCATION_ASHBURN": 5,
Location_value = map[string]int32{
"LOCATION_UNSPECIFIED": 0,
"LOCATION_HETZNER_NUREMBERG": 1,
"LOCATION_HETZNER_FALKENSTEIN": 2,
"LOCATION_HETZNER_HELSINKI": 3,
"LOCATION_HETZNER_HILLSBORO": 4,
"LOCATION_HETZNER_ASHBURN": 5,
}
)
func (x HetznerLocation) Enum() *HetznerLocation {
p := new(HetznerLocation)
func (x Location) Enum() *Location {
p := new(Location)
*p = x
return p
}
func (x HetznerLocation) String() string {
func (x Location) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HetznerLocation) Descriptor() protoreflect.EnumDescriptor {
func (Location) Descriptor() protoreflect.EnumDescriptor {
return file_environments_environments_v1_proto_enumTypes[2].Descriptor()
}
func (HetznerLocation) Type() protoreflect.EnumType {
func (Location) Type() protoreflect.EnumType {
return &file_environments_environments_v1_proto_enumTypes[2]
}
func (x HetznerLocation) Number() protoreflect.EnumNumber {
func (x Location) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HetznerLocation.Descriptor instead.
func (HetznerLocation) EnumDescriptor() ([]byte, []int) {
// Deprecated: Use Location.Descriptor instead.
func (Location) EnumDescriptor() ([]byte, []int) {
return file_environments_environments_v1_proto_rawDescGZIP(), []int{2}
}
@ -715,9 +718,10 @@ type EnvironmentSpec struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Provider Provider `protobuf:"varint,2,opt,name=provider,proto3,enum=environments.Provider" json:"provider,omitempty"` // Provide
Kubernetes Kubernetes `protobuf:"varint,3,opt,name=kubernetes,proto3,enum=environments.Kubernetes" json:"kubernetes,omitempty"`
HetznerOptions *HetznerOptions `protobuf:"bytes,4,opt,name=hetzner_options,json=hetznerOptions,proto3" json:"hetzner_options,omitempty"`
Provider Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=environments.Provider" json:"provider,omitempty"` // Provide
Kubernetes Kubernetes `protobuf:"varint,2,opt,name=kubernetes,proto3,enum=environments.Kubernetes" json:"kubernetes,omitempty"`
ServerType ServerType `protobuf:"varint,3,opt,name=server_type,json=serverType,proto3,enum=environments.ServerType" json:"server_type,omitempty"`
ServerLocation Location `protobuf:"varint,4,opt,name=server_location,json=serverLocation,proto3,enum=environments.Location" json:"server_location,omitempty"`
}
func (x *EnvironmentSpec) Reset() {
@ -766,11 +770,18 @@ func (x *EnvironmentSpec) GetKubernetes() Kubernetes {
return Kubernetes_KUBERNETES_UNSPECIFIED
}
func (x *EnvironmentSpec) GetHetznerOptions() *HetznerOptions {
func (x *EnvironmentSpec) GetServerType() ServerType {
if x != nil {
return x.HetznerOptions
return x.ServerType
}
return nil
return ServerType_SERVER_TYPE_UNSPECIFIED
}
func (x *EnvironmentSpec) GetServerLocation() Location {
if x != nil {
return x.ServerLocation
}
return Location_LOCATION_UNSPECIFIED
}
type EnvironmentFull struct {
@ -828,61 +839,6 @@ func (x *EnvironmentFull) GetSpec() *EnvironmentSpec {
return nil
}
type HetznerOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerType ServerType `protobuf:"varint,1,opt,name=server_type,json=serverType,proto3,enum=environments.ServerType" json:"server_type,omitempty"`
ServerLocation HetznerLocation `protobuf:"varint,2,opt,name=server_location,json=serverLocation,proto3,enum=environments.HetznerLocation" json:"server_location,omitempty"`
}
func (x *HetznerOptions) Reset() {
*x = HetznerOptions{}
if protoimpl.UnsafeEnabled {
mi := &file_environments_environments_v1_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HetznerOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HetznerOptions) ProtoMessage() {}
func (x *HetznerOptions) ProtoReflect() protoreflect.Message {
mi := &file_environments_environments_v1_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HetznerOptions.ProtoReflect.Descriptor instead.
func (*HetznerOptions) Descriptor() ([]byte, []int) {
return file_environments_environments_v1_proto_rawDescGZIP(), []int{10}
}
func (x *HetznerOptions) GetServerType() ServerType {
if x != nil {
return x.ServerType
}
return ServerType_SERVER_TYPE_UNSPECIFIED
}
func (x *HetznerOptions) GetServerLocation() HetznerLocation {
if x != nil {
return x.ServerLocation
}
return HetznerLocation_HETZNER_LOCATION_UNSPECIFIED
}
var File_environments_environments_v1_proto protoreflect.FileDescriptor
var file_environments_environments_v1_proto_rawDesc = []byte{
@ -960,94 +916,89 @@ var file_environments_environments_v1_proto_rawDesc = []byte{
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x22, 0xc6, 0x01, 0x0a, 0x0f, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
0x6e, 0x22, 0xfb, 0x01, 0x0a, 0x0f, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x32, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52,
0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0a, 0x6b, 0x75, 0x62,
0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e,
0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e,
0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62,
0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65,
0x74, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x0f, 0x68, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x5f, 0x6f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65,
0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x48, 0x65, 0x74, 0x7a,
0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0e, 0x68, 0x65, 0x74, 0x7a,
0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x0f, 0x45,
0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x12, 0x3d,
0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e,
0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64,
0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a,
0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e,
0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72,
0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63,
0x22, 0x93, 0x01, 0x0a, 0x0e, 0x48, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79,
0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72,
0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79,
0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72,
0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79,
0x70, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x46,
0x70, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f,
0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x48, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x4c, 0x6f,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x3a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x55,
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10,
0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52,
0x10, 0x01, 0x2a, 0x86, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70,
0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45,
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17,
0x0a, 0x13, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54,
0x41, 0x52, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x45, 0x52, 0x56, 0x45,
0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x47, 0x55, 0x4c, 0x41, 0x52, 0x10, 0x02,
0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
0x50, 0x4c, 0x55, 0x53, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x10, 0x04, 0x2a, 0xd2, 0x01, 0x0a, 0x0f,
0x48, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x20, 0x0a, 0x1c, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x54,
0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43,
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x55, 0x52, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x47, 0x10,
0x01, 0x12, 0x20, 0x0a, 0x1c, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43,
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x4c, 0x4b, 0x45, 0x4e, 0x53, 0x54, 0x45, 0x49,
0x4e, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c,
0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x4c, 0x53, 0x49, 0x4e, 0x4b, 0x49,
0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f,
0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x49, 0x4c, 0x4c, 0x53, 0x42, 0x4f, 0x52, 0x4f,
0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f,
0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x53, 0x48, 0x42, 0x55, 0x52, 0x4e, 0x10, 0x05,
0x2a, 0x3c, 0x0a, 0x0a, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x12, 0x1a,
0x0a, 0x16, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, 0x5f, 0x55, 0x4e, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4b, 0x55,
0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, 0x5f, 0x4b, 0x33, 0x53, 0x10, 0x01, 0x32, 0xe7,
0x02, 0x0a, 0x0c, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12,
0x46, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69,
0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x46, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74,
0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22,
0x83, 0x01, 0x0a, 0x0f, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46,
0x75, 0x6c, 0x6c, 0x12, 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0x12, 0x31, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e,
0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52,
0x04, 0x73, 0x70, 0x65, 0x63, 0x2a, 0x3a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e,
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x50,
0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x10,
0x01, 0x2a, 0x9e, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65,
0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a,
0x13, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41,
0x52, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x47, 0x55, 0x4c, 0x41, 0x52, 0x10, 0x02, 0x12,
0x14, 0x0a, 0x10, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50,
0x4c, 0x55, 0x53, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x45,
0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d,
0x10, 0x05, 0x2a, 0xc3, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x18, 0x0a, 0x14, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50,
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x4c, 0x4f, 0x43,
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4e, 0x55,
0x52, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x47, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x4c, 0x4f, 0x43,
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x46, 0x41,
0x4c, 0x4b, 0x45, 0x4e, 0x53, 0x54, 0x45, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x4c,
0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f,
0x48, 0x45, 0x4c, 0x53, 0x49, 0x4e, 0x4b, 0x49, 0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x4c, 0x4f,
0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x48,
0x49, 0x4c, 0x4c, 0x53, 0x42, 0x4f, 0x52, 0x4f, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x4c, 0x4f,
0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x41,
0x53, 0x48, 0x42, 0x55, 0x52, 0x4e, 0x10, 0x05, 0x2a, 0x3c, 0x0a, 0x0a, 0x4b, 0x75, 0x62, 0x65,
0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x16, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e,
0x45, 0x54, 0x45, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53,
0x5f, 0x4b, 0x33, 0x53, 0x10, 0x01, 0x32, 0xe7, 0x02, 0x0a, 0x0c, 0x45, 0x6e, 0x76, 0x69, 0x72,
0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d,
0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e,
0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12,
0x3f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69,
0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00,
0x12, 0x40, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,
0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c,
0x22, 0x00, 0x12, 0x44, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x65, 0x6e, 0x76,
0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x30, 0x01, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x2e,
0x62, 0x61, 0x64, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e,
0x65, 0x74, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f,
0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x46, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69,
0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,
0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x16,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12,
0x18, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x47,
0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69,
0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x04, 0x4c, 0x69,
0x73, 0x74, 0x12, 0x19, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e,
0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76,
0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x30, 0x01,
0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x64, 0x68, 0x6f, 0x75, 0x73, 0x65,
0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70,
0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72,
0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x65, 0x6e,
0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
@ -1063,11 +1014,11 @@ func file_environments_environments_v1_proto_rawDescGZIP() []byte {
}
var file_environments_environments_v1_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_environments_environments_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_environments_environments_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_environments_environments_v1_proto_goTypes = []interface{}{
(Provider)(0), // 0: environments.Provider
(ServerType)(0), // 1: environments.ServerType
(HetznerLocation)(0), // 2: environments.HetznerLocation
(Location)(0), // 2: environments.Location
(Kubernetes)(0), // 3: environments.Kubernetes
(*OwnerId)(nil), // 4: environments.OwnerId
(*Token)(nil), // 5: environments.Token
@ -1079,8 +1030,7 @@ var file_environments_environments_v1_proto_goTypes = []interface{}{
(*EnvironmentMetadata)(nil), // 11: environments.EnvironmentMetadata
(*EnvironmentSpec)(nil), // 12: environments.EnvironmentSpec
(*EnvironmentFull)(nil), // 13: environments.EnvironmentFull
(*HetznerOptions)(nil), // 14: environments.HetznerOptions
(*emptypb.Empty)(nil), // 15: google.protobuf.Empty
(*emptypb.Empty)(nil), // 14: google.protobuf.Empty
}
var file_environments_environments_v1_proto_depIdxs = []int32{
11, // 0: environments.CreateOptions.metadata:type_name -> environments.EnvironmentMetadata
@ -1102,26 +1052,25 @@ var file_environments_environments_v1_proto_depIdxs = []int32{
5, // 16: environments.ListOptions.token:type_name -> environments.Token
0, // 17: environments.EnvironmentSpec.provider:type_name -> environments.Provider
3, // 18: environments.EnvironmentSpec.kubernetes:type_name -> environments.Kubernetes
14, // 19: environments.EnvironmentSpec.hetzner_options:type_name -> environments.HetznerOptions
11, // 20: environments.EnvironmentFull.metadata:type_name -> environments.EnvironmentMetadata
12, // 21: environments.EnvironmentFull.spec:type_name -> environments.EnvironmentSpec
1, // 22: environments.HetznerOptions.server_type:type_name -> environments.ServerType
2, // 23: environments.HetznerOptions.server_location:type_name -> environments.HetznerLocation
6, // 24: environments.Environments.Create:input_type -> environments.CreateOptions
7, // 25: environments.Environments.Update:input_type -> environments.UpdateOptions
8, // 26: environments.Environments.Delete:input_type -> environments.DeleteOptions
9, // 27: environments.Environments.Get:input_type -> environments.GetOptions
10, // 28: environments.Environments.List:input_type -> environments.ListOptions
13, // 29: environments.Environments.Create:output_type -> environments.EnvironmentFull
13, // 30: environments.Environments.Update:output_type -> environments.EnvironmentFull
15, // 31: environments.Environments.Delete:output_type -> google.protobuf.Empty
13, // 32: environments.Environments.Get:output_type -> environments.EnvironmentFull
13, // 33: environments.Environments.List:output_type -> environments.EnvironmentFull
29, // [29:34] is the sub-list for method output_type
24, // [24:29] is the sub-list for method input_type
24, // [24:24] is the sub-list for extension type_name
24, // [24:24] is the sub-list for extension extendee
0, // [0:24] is the sub-list for field type_name
1, // 19: environments.EnvironmentSpec.server_type:type_name -> environments.ServerType
2, // 20: environments.EnvironmentSpec.server_location:type_name -> environments.Location
11, // 21: environments.EnvironmentFull.metadata:type_name -> environments.EnvironmentMetadata
12, // 22: environments.EnvironmentFull.spec:type_name -> environments.EnvironmentSpec
6, // 23: environments.Environments.Create:input_type -> environments.CreateOptions
7, // 24: environments.Environments.Update:input_type -> environments.UpdateOptions
8, // 25: environments.Environments.Delete:input_type -> environments.DeleteOptions
9, // 26: environments.Environments.Get:input_type -> environments.GetOptions
10, // 27: environments.Environments.List:input_type -> environments.ListOptions
13, // 28: environments.Environments.Create:output_type -> environments.EnvironmentFull
13, // 29: environments.Environments.Update:output_type -> environments.EnvironmentFull
14, // 30: environments.Environments.Delete:output_type -> google.protobuf.Empty
13, // 31: environments.Environments.Get:output_type -> environments.EnvironmentFull
13, // 32: environments.Environments.List:output_type -> environments.EnvironmentFull
28, // [28:33] is the sub-list for method output_type
23, // [23:28] is the sub-list for method input_type
23, // [23:23] is the sub-list for extension type_name
23, // [23:23] is the sub-list for extension extendee
0, // [0:23] is the sub-list for field type_name
}
func init() { file_environments_environments_v1_proto_init() }
@ -1250,18 +1199,6 @@ func file_environments_environments_v1_proto_init() {
return nil
}
}
file_environments_environments_v1_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HetznerOptions); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
@ -1269,7 +1206,7 @@ func file_environments_environments_v1_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_environments_environments_v1_proto_rawDesc,
NumEnums: 4,
NumMessages: 11,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},

2
proto

@ -1 +1 @@
Subproject commit b864dbcd8c2f8bd5d076b0e106677c4d89a37fff
Subproject commit 9866a688b898f697dceb05a10b32993cfbbc6fb1