2 Commits

Author SHA1 Message Date
0a307b557f Refactor providers data 2024-04-29 19:46:22 +02:00
28db10c5a2 More server related values 2024-04-29 17:49:08 +02:00
2 changed files with 235 additions and 156 deletions

View File

@ -71,6 +71,122 @@ func (Provider) EnumDescriptor() ([]byte, []int) {
return file_environments_environments_v1_proto_rawDescGZIP(), []int{0} return file_environments_environments_v1_proto_rawDescGZIP(), []int{0}
} }
type ServerType int32
const (
ServerType_SERVER_TYPE_UNSPECIFIED ServerType = 0
ServerType_SERVER_TYPE_STARTER ServerType = 1
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.
var (
ServerType_name = map[int32]string{
0: "SERVER_TYPE_UNSPECIFIED",
1: "SERVER_TYPE_STARTER",
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,
"SERVER_TYPE_STARTER": 1,
"SERVER_TYPE_REGULAR": 2,
"SERVER_TYPE_PLUS": 3,
"SERVER_TYPE_PRO": 4,
"SERVER_TYPE_CUSTOM": 5,
}
)
func (x ServerType) Enum() *ServerType {
p := new(ServerType)
*p = x
return p
}
func (x ServerType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ServerType) Descriptor() protoreflect.EnumDescriptor {
return file_environments_environments_v1_proto_enumTypes[1].Descriptor()
}
func (ServerType) Type() protoreflect.EnumType {
return &file_environments_environments_v1_proto_enumTypes[1]
}
func (x ServerType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ServerType.Descriptor instead.
func (ServerType) EnumDescriptor() ([]byte, []int) {
return file_environments_environments_v1_proto_rawDescGZIP(), []int{1}
}
type Location int32
const (
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 Location.
var (
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",
}
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 Location) Enum() *Location {
p := new(Location)
*p = x
return p
}
func (x Location) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Location) Descriptor() protoreflect.EnumDescriptor {
return file_environments_environments_v1_proto_enumTypes[2].Descriptor()
}
func (Location) Type() protoreflect.EnumType {
return &file_environments_environments_v1_proto_enumTypes[2]
}
func (x Location) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Location.Descriptor instead.
func (Location) EnumDescriptor() ([]byte, []int) {
return file_environments_environments_v1_proto_rawDescGZIP(), []int{2}
}
type Kubernetes int32 type Kubernetes int32
const ( const (
@ -101,11 +217,11 @@ func (x Kubernetes) String() string {
} }
func (Kubernetes) Descriptor() protoreflect.EnumDescriptor { func (Kubernetes) Descriptor() protoreflect.EnumDescriptor {
return file_environments_environments_v1_proto_enumTypes[1].Descriptor() return file_environments_environments_v1_proto_enumTypes[3].Descriptor()
} }
func (Kubernetes) Type() protoreflect.EnumType { func (Kubernetes) Type() protoreflect.EnumType {
return &file_environments_environments_v1_proto_enumTypes[1] return &file_environments_environments_v1_proto_enumTypes[3]
} }
func (x Kubernetes) Number() protoreflect.EnumNumber { func (x Kubernetes) Number() protoreflect.EnumNumber {
@ -114,7 +230,7 @@ func (x Kubernetes) Number() protoreflect.EnumNumber {
// Deprecated: Use Kubernetes.Descriptor instead. // Deprecated: Use Kubernetes.Descriptor instead.
func (Kubernetes) EnumDescriptor() ([]byte, []int) { func (Kubernetes) EnumDescriptor() ([]byte, []int) {
return file_environments_environments_v1_proto_rawDescGZIP(), []int{1} return file_environments_environments_v1_proto_rawDescGZIP(), []int{3}
} }
type OwnerId struct { type OwnerId struct {
@ -602,9 +718,10 @@ type EnvironmentSpec struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Provider Provider `protobuf:"varint,2,opt,name=provider,proto3,enum=environments.Provider" json:"provider,omitempty"` // Provide Provider Provider `protobuf:"varint,1,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"` Kubernetes Kubernetes `protobuf:"varint,2,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"` 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() { func (x *EnvironmentSpec) Reset() {
@ -653,11 +770,18 @@ func (x *EnvironmentSpec) GetKubernetes() Kubernetes {
return Kubernetes_KUBERNETES_UNSPECIFIED return Kubernetes_KUBERNETES_UNSPECIFIED
} }
func (x *EnvironmentSpec) GetHetznerOptions() *HetznerOptions { func (x *EnvironmentSpec) GetServerType() ServerType {
if x != nil { 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 { type EnvironmentFull struct {
@ -715,61 +839,6 @@ func (x *EnvironmentFull) GetSpec() *EnvironmentSpec {
return nil return nil
} }
type HetznerOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerType string `protobuf:"bytes,1,opt,name=server_type,json=serverType,proto3" json:"server_type,omitempty"`
ServerLocation string `protobuf:"bytes,2,opt,name=server_location,json=serverLocation,proto3" 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() string {
if x != nil {
return x.ServerType
}
return ""
}
func (x *HetznerOptions) GetServerLocation() string {
if x != nil {
return x.ServerLocation
}
return ""
}
var File_environments_environments_v1_proto protoreflect.FileDescriptor var File_environments_environments_v1_proto protoreflect.FileDescriptor
var file_environments_environments_v1_proto_rawDesc = []byte{ var file_environments_environments_v1_proto_rawDesc = []byte{
@ -847,37 +916,57 @@ var file_environments_environments_v1_proto_rawDesc = []byte{
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 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, 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, 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, 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, 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, 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, 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, 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, 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72,
0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x48, 0x65, 0x74, 0x7a, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79,
0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0e, 0x68, 0x65, 0x74, 0x7a, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f,
0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x0f, 0x45, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x12, 0x3d, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22,
0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x83, 0x01, 0x0a, 0x0f, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46,
0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x75, 0x6c, 0x6c, 0x12, 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x22, 0x5a, 0x0a, 0x0e, 0x48, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52,
0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x04, 0x73, 0x70, 0x65, 0x63, 0x2a, 0x3a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e,
0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x3a, 0x0a, 0x08, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x50,
0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x56, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x10,
0x49, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x01, 0x2a, 0x9e, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65,
0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x48, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x2a, 0x3c, 0x0a, 0x0a, 0x4b, 0x75, 0x62, 0x65, 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, 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, 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, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53,
@ -924,62 +1013,64 @@ func file_environments_environments_v1_proto_rawDescGZIP() []byte {
return file_environments_environments_v1_proto_rawDescData return file_environments_environments_v1_proto_rawDescData
} }
var file_environments_environments_v1_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 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{}{ var file_environments_environments_v1_proto_goTypes = []interface{}{
(Provider)(0), // 0: environments.Provider (Provider)(0), // 0: environments.Provider
(Kubernetes)(0), // 1: environments.Kubernetes (ServerType)(0), // 1: environments.ServerType
(*OwnerId)(nil), // 2: environments.OwnerId (Location)(0), // 2: environments.Location
(*Token)(nil), // 3: environments.Token (Kubernetes)(0), // 3: environments.Kubernetes
(*CreateOptions)(nil), // 4: environments.CreateOptions (*OwnerId)(nil), // 4: environments.OwnerId
(*UpdateOptions)(nil), // 5: environments.UpdateOptions (*Token)(nil), // 5: environments.Token
(*DeleteOptions)(nil), // 6: environments.DeleteOptions (*CreateOptions)(nil), // 6: environments.CreateOptions
(*GetOptions)(nil), // 7: environments.GetOptions (*UpdateOptions)(nil), // 7: environments.UpdateOptions
(*ListOptions)(nil), // 8: environments.ListOptions (*DeleteOptions)(nil), // 8: environments.DeleteOptions
(*EnvironmentMetadata)(nil), // 9: environments.EnvironmentMetadata (*GetOptions)(nil), // 9: environments.GetOptions
(*EnvironmentSpec)(nil), // 10: environments.EnvironmentSpec (*ListOptions)(nil), // 10: environments.ListOptions
(*EnvironmentFull)(nil), // 11: environments.EnvironmentFull (*EnvironmentMetadata)(nil), // 11: environments.EnvironmentMetadata
(*HetznerOptions)(nil), // 12: environments.HetznerOptions (*EnvironmentSpec)(nil), // 12: environments.EnvironmentSpec
(*emptypb.Empty)(nil), // 13: google.protobuf.Empty (*EnvironmentFull)(nil), // 13: environments.EnvironmentFull
(*emptypb.Empty)(nil), // 14: google.protobuf.Empty
} }
var file_environments_environments_v1_proto_depIdxs = []int32{ var file_environments_environments_v1_proto_depIdxs = []int32{
9, // 0: environments.CreateOptions.metadata:type_name -> environments.EnvironmentMetadata 11, // 0: environments.CreateOptions.metadata:type_name -> environments.EnvironmentMetadata
10, // 1: environments.CreateOptions.spec:type_name -> environments.EnvironmentSpec 12, // 1: environments.CreateOptions.spec:type_name -> environments.EnvironmentSpec
2, // 2: environments.CreateOptions.owner_id:type_name -> environments.OwnerId 4, // 2: environments.CreateOptions.owner_id:type_name -> environments.OwnerId
3, // 3: environments.CreateOptions.token:type_name -> environments.Token 5, // 3: environments.CreateOptions.token:type_name -> environments.Token
9, // 4: environments.UpdateOptions.metadata:type_name -> environments.EnvironmentMetadata 11, // 4: environments.UpdateOptions.metadata:type_name -> environments.EnvironmentMetadata
10, // 5: environments.UpdateOptions.spec:type_name -> environments.EnvironmentSpec 12, // 5: environments.UpdateOptions.spec:type_name -> environments.EnvironmentSpec
2, // 6: environments.UpdateOptions.owner_id:type_name -> environments.OwnerId 4, // 6: environments.UpdateOptions.owner_id:type_name -> environments.OwnerId
3, // 7: environments.UpdateOptions.token:type_name -> environments.Token 5, // 7: environments.UpdateOptions.token:type_name -> environments.Token
9, // 8: environments.DeleteOptions.metadata:type_name -> environments.EnvironmentMetadata 11, // 8: environments.DeleteOptions.metadata:type_name -> environments.EnvironmentMetadata
2, // 9: environments.DeleteOptions.owner_id:type_name -> environments.OwnerId 4, // 9: environments.DeleteOptions.owner_id:type_name -> environments.OwnerId
3, // 10: environments.DeleteOptions.token:type_name -> environments.Token 5, // 10: environments.DeleteOptions.token:type_name -> environments.Token
9, // 11: environments.GetOptions.metadata:type_name -> environments.EnvironmentMetadata 11, // 11: environments.GetOptions.metadata:type_name -> environments.EnvironmentMetadata
2, // 12: environments.GetOptions.owner_id:type_name -> environments.OwnerId 4, // 12: environments.GetOptions.owner_id:type_name -> environments.OwnerId
3, // 13: environments.GetOptions.token:type_name -> environments.Token 5, // 13: environments.GetOptions.token:type_name -> environments.Token
9, // 14: environments.ListOptions.metadata:type_name -> environments.EnvironmentMetadata 11, // 14: environments.ListOptions.metadata:type_name -> environments.EnvironmentMetadata
2, // 15: environments.ListOptions.owner_id:type_name -> environments.OwnerId 4, // 15: environments.ListOptions.owner_id:type_name -> environments.OwnerId
3, // 16: environments.ListOptions.token:type_name -> environments.Token 5, // 16: environments.ListOptions.token:type_name -> environments.Token
0, // 17: environments.EnvironmentSpec.provider:type_name -> environments.Provider 0, // 17: environments.EnvironmentSpec.provider:type_name -> environments.Provider
1, // 18: environments.EnvironmentSpec.kubernetes:type_name -> environments.Kubernetes 3, // 18: environments.EnvironmentSpec.kubernetes:type_name -> environments.Kubernetes
12, // 19: environments.EnvironmentSpec.hetzner_options:type_name -> environments.HetznerOptions 1, // 19: environments.EnvironmentSpec.server_type:type_name -> environments.ServerType
9, // 20: environments.EnvironmentFull.metadata:type_name -> environments.EnvironmentMetadata 2, // 20: environments.EnvironmentSpec.server_location:type_name -> environments.Location
10, // 21: environments.EnvironmentFull.spec:type_name -> environments.EnvironmentSpec 11, // 21: environments.EnvironmentFull.metadata:type_name -> environments.EnvironmentMetadata
4, // 22: environments.Environments.Create:input_type -> environments.CreateOptions 12, // 22: environments.EnvironmentFull.spec:type_name -> environments.EnvironmentSpec
5, // 23: environments.Environments.Update:input_type -> environments.UpdateOptions 6, // 23: environments.Environments.Create:input_type -> environments.CreateOptions
6, // 24: environments.Environments.Delete:input_type -> environments.DeleteOptions 7, // 24: environments.Environments.Update:input_type -> environments.UpdateOptions
7, // 25: environments.Environments.Get:input_type -> environments.GetOptions 8, // 25: environments.Environments.Delete:input_type -> environments.DeleteOptions
8, // 26: environments.Environments.List:input_type -> environments.ListOptions 9, // 26: environments.Environments.Get:input_type -> environments.GetOptions
11, // 27: environments.Environments.Create:output_type -> environments.EnvironmentFull 10, // 27: environments.Environments.List:input_type -> environments.ListOptions
11, // 28: environments.Environments.Update:output_type -> environments.EnvironmentFull 13, // 28: environments.Environments.Create:output_type -> environments.EnvironmentFull
13, // 29: environments.Environments.Delete:output_type -> google.protobuf.Empty 13, // 29: environments.Environments.Update:output_type -> environments.EnvironmentFull
11, // 30: environments.Environments.Get:output_type -> environments.EnvironmentFull 14, // 30: environments.Environments.Delete:output_type -> google.protobuf.Empty
11, // 31: environments.Environments.List:output_type -> environments.EnvironmentFull 13, // 31: environments.Environments.Get:output_type -> environments.EnvironmentFull
27, // [27:32] is the sub-list for method output_type 13, // 32: environments.Environments.List:output_type -> environments.EnvironmentFull
22, // [22:27] is the sub-list for method input_type 28, // [28:33] is the sub-list for method output_type
22, // [22:22] is the sub-list for extension type_name 23, // [23:28] is the sub-list for method input_type
22, // [22:22] is the sub-list for extension extendee 23, // [23:23] is the sub-list for extension type_name
0, // [0:22] is the sub-list for field 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() } func init() { file_environments_environments_v1_proto_init() }
@ -1108,26 +1199,14 @@ func file_environments_environments_v1_proto_init() {
return nil 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{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_environments_environments_v1_proto_rawDesc, RawDescriptor: file_environments_environments_v1_proto_rawDesc,
NumEnums: 2, NumEnums: 4,
NumMessages: 11, NumMessages: 10,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },

2
proto

Submodule proto updated: 06cfef6ba2...9866a688b8