Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterFeatureServiceServer(s grpc.ServiceRegistrar, srv FeatureServiceServer)
- type Availability
- func (*Availability) Descriptor() ([]byte, []int)deprecated
- func (x *Availability) GetQuantity() uint32
- func (x *Availability) GetState() Availability_State
- func (*Availability) ProtoMessage()
- func (x *Availability) ProtoReflect() protoreflect.Message
- func (x *Availability) Reset()
- func (x *Availability) String() string
- type Availability_State
- func (Availability_State) Descriptor() protoreflect.EnumDescriptor
- func (x Availability_State) Enum() *Availability_State
- func (Availability_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x Availability_State) Number() protoreflect.EnumNumber
- func (x Availability_State) String() string
- func (Availability_State) Type() protoreflect.EnumType
- type Feature
- func (*Feature) Descriptor() ([]byte, []int)deprecated
- func (x *Feature) GetAvailability() *Availability
- func (x *Feature) GetDescription() string
- func (x *Feature) GetName() string
- func (x *Feature) GetType() string
- func (*Feature) ProtoMessage()
- func (x *Feature) ProtoReflect() protoreflect.Message
- func (x *Feature) Reset()
- func (x *Feature) String() string
- type FeatureServiceClient
- type FeatureServiceServer
- type FeaturesChanged
- type ListFeaturesRequest
- type ListFeaturesResponse
- func (*ListFeaturesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFeaturesResponse) GetFeatures() []*Feature
- func (*ListFeaturesResponse) ProtoMessage()
- func (x *ListFeaturesResponse) ProtoReflect() protoreflect.Message
- func (x *ListFeaturesResponse) Reset()
- func (x *ListFeaturesResponse) String() string
- type ListMachinesRequest
- type ListMachinesResponse
- func (*ListMachinesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMachinesResponse) GetMachines() []*Machine
- func (*ListMachinesResponse) ProtoMessage()
- func (x *ListMachinesResponse) ProtoReflect() protoreflect.Message
- func (x *ListMachinesResponse) Reset()
- func (x *ListMachinesResponse) String() string
- type ListOrganizationFeaturesRequest
- func (*ListOrganizationFeaturesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationFeaturesRequest) GetOrgId() string
- func (*ListOrganizationFeaturesRequest) ProtoMessage()
- func (x *ListOrganizationFeaturesRequest) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationFeaturesRequest) Reset()
- func (x *ListOrganizationFeaturesRequest) String() string
- type ListOrganizationFeaturesResponse
- func (*ListOrganizationFeaturesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationFeaturesResponse) GetOrganizationFeatures() []*OrganizationFeature
- func (*ListOrganizationFeaturesResponse) ProtoMessage()
- func (x *ListOrganizationFeaturesResponse) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationFeaturesResponse) Reset()
- func (x *ListOrganizationFeaturesResponse) String() string
- type ListOrganizationMachinesRequest
- func (*ListOrganizationMachinesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationMachinesRequest) GetOrgId() string
- func (*ListOrganizationMachinesRequest) ProtoMessage()
- func (x *ListOrganizationMachinesRequest) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationMachinesRequest) Reset()
- func (x *ListOrganizationMachinesRequest) String() string
- type ListOrganizationMachinesResponse
- func (*ListOrganizationMachinesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationMachinesResponse) GetDefaultType() string
- func (x *ListOrganizationMachinesResponse) GetOrganizationMachines() []*OrganizationMachine
- func (*ListOrganizationMachinesResponse) ProtoMessage()
- func (x *ListOrganizationMachinesResponse) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationMachinesResponse) Reset()
- func (x *ListOrganizationMachinesResponse) String() string
- type Machine
- func (*Machine) Descriptor() ([]byte, []int)deprecated
- func (x *Machine) GetAvailability() *Availability
- func (x *Machine) GetDefaultOsImage() string
- func (x *Machine) GetDisk() string
- func (x *Machine) GetOsImages() []string
- func (x *Machine) GetPlatform() Machine_Platform
- func (x *Machine) GetRam() string
- func (x *Machine) GetType() string
- func (x *Machine) GetVcpu() string
- func (*Machine) ProtoMessage()
- func (x *Machine) ProtoReflect() protoreflect.Message
- func (x *Machine) Reset()
- func (x *Machine) String() string
- type Machine_Platform
- func (Machine_Platform) Descriptor() protoreflect.EnumDescriptor
- func (x Machine_Platform) Enum() *Machine_Platform
- func (Machine_Platform) EnumDescriptor() ([]byte, []int)deprecated
- func (x Machine_Platform) Number() protoreflect.EnumNumber
- func (x Machine_Platform) String() string
- func (Machine_Platform) Type() protoreflect.EnumType
- type MachinesChanged
- type OrganizationFeature
- func (*OrganizationFeature) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationFeature) GetAvailability() *Availability
- func (x *OrganizationFeature) GetCreatedAt() *timestamp.Timestamp
- func (x *OrganizationFeature) GetFeature() *Feature
- func (x *OrganizationFeature) GetProjectIds() []string
- func (x *OrganizationFeature) GetRequesterId() string
- func (x *OrganizationFeature) GetUpdatedAt() *timestamp.Timestamp
- func (*OrganizationFeature) ProtoMessage()
- func (x *OrganizationFeature) ProtoReflect() protoreflect.Message
- func (x *OrganizationFeature) Reset()
- func (x *OrganizationFeature) String() string
- type OrganizationFeaturesChanged
- func (*OrganizationFeaturesChanged) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationFeaturesChanged) GetOrgId() string
- func (*OrganizationFeaturesChanged) ProtoMessage()
- func (x *OrganizationFeaturesChanged) ProtoReflect() protoreflect.Message
- func (x *OrganizationFeaturesChanged) Reset()
- func (x *OrganizationFeaturesChanged) String() string
- type OrganizationMachine
- func (*OrganizationMachine) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationMachine) GetAvailability() *Availability
- func (x *OrganizationMachine) GetCreatedAt() *timestamp.Timestamp
- func (x *OrganizationMachine) GetMachine() *Machine
- func (x *OrganizationMachine) GetRequesterId() string
- func (x *OrganizationMachine) GetUpdatedAt() *timestamp.Timestamp
- func (*OrganizationMachine) ProtoMessage()
- func (x *OrganizationMachine) ProtoReflect() protoreflect.Message
- func (x *OrganizationMachine) Reset()
- func (x *OrganizationMachine) String() string
- type OrganizationMachinesChanged
- func (*OrganizationMachinesChanged) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationMachinesChanged) GetOrgId() string
- func (*OrganizationMachinesChanged) ProtoMessage()
- func (x *OrganizationMachinesChanged) ProtoReflect() protoreflect.Message
- func (x *OrganizationMachinesChanged) Reset()
- func (x *OrganizationMachinesChanged) String() string
- type UnimplementedFeatureServiceServer
- func (UnimplementedFeatureServiceServer) ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error)
- func (UnimplementedFeatureServiceServer) ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error)
- func (UnimplementedFeatureServiceServer) ListOrganizationFeatures(context.Context, *ListOrganizationFeaturesRequest) (*ListOrganizationFeaturesResponse, error)
- func (UnimplementedFeatureServiceServer) ListOrganizationMachines(context.Context, *ListOrganizationMachinesRequest) (*ListOrganizationMachinesResponse, error)
- type UnsafeFeatureServiceServer
Constants ¶
const ( FeatureService_ListOrganizationFeatures_FullMethodName = "/InternalApi.Feature.FeatureService/ListOrganizationFeatures" FeatureService_ListFeatures_FullMethodName = "/InternalApi.Feature.FeatureService/ListFeatures" FeatureService_ListOrganizationMachines_FullMethodName = "/InternalApi.Feature.FeatureService/ListOrganizationMachines" FeatureService_ListMachines_FullMethodName = "/InternalApi.Feature.FeatureService/ListMachines" )
Variables ¶
var ( Machine_Platform_name = map[int32]string{ 0: "LINUX", 1: "MAC", } Machine_Platform_value = map[string]int32{ "LINUX": 0, "MAC": 1, } )
Enum value maps for Machine_Platform.
var ( Availability_State_name = map[int32]string{ 0: "HIDDEN", 1: "ZERO_STATE", 2: "ENABLED", } Availability_State_value = map[string]int32{ "HIDDEN": 0, "ZERO_STATE": 1, "ENABLED": 2, } )
Enum value maps for Availability_State.
var FeatureService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "InternalApi.Feature.FeatureService", HandlerType: (*FeatureServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListOrganizationFeatures", Handler: _FeatureService_ListOrganizationFeatures_Handler, }, { MethodName: "ListFeatures", Handler: _FeatureService_ListFeatures_Handler, }, { MethodName: "ListOrganizationMachines", Handler: _FeatureService_ListOrganizationMachines_Handler, }, { MethodName: "ListMachines", Handler: _FeatureService_ListMachines_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "feature.proto", }
FeatureService_ServiceDesc is the grpc.ServiceDesc for FeatureService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_feature_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFeatureServiceServer ¶
func RegisterFeatureServiceServer(s grpc.ServiceRegistrar, srv FeatureServiceServer)
Types ¶
type Availability ¶
type Availability struct { State Availability_State `protobuf:"varint,1,opt,name=state,proto3,enum=InternalApi.Feature.Availability_State" json:"state,omitempty"` Quantity uint32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
func (*Availability) Descriptor
deprecated
func (*Availability) Descriptor() ([]byte, []int)
Deprecated: Use Availability.ProtoReflect.Descriptor instead.
func (*Availability) GetQuantity ¶
func (x *Availability) GetQuantity() uint32
func (*Availability) GetState ¶
func (x *Availability) GetState() Availability_State
func (*Availability) ProtoMessage ¶
func (*Availability) ProtoMessage()
func (*Availability) ProtoReflect ¶
func (x *Availability) ProtoReflect() protoreflect.Message
func (*Availability) Reset ¶
func (x *Availability) Reset()
func (*Availability) String ¶
func (x *Availability) String() string
type Availability_State ¶
type Availability_State int32
const ( Availability_HIDDEN Availability_State = 0 Availability_ZERO_STATE Availability_State = 1 Availability_ENABLED Availability_State = 2 )
func (Availability_State) Descriptor ¶
func (Availability_State) Descriptor() protoreflect.EnumDescriptor
func (Availability_State) Enum ¶
func (x Availability_State) Enum() *Availability_State
func (Availability_State) EnumDescriptor
deprecated
func (Availability_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Availability_State.Descriptor instead.
func (Availability_State) Number ¶
func (x Availability_State) Number() protoreflect.EnumNumber
func (Availability_State) String ¶
func (x Availability_State) String() string
func (Availability_State) Type ¶
func (Availability_State) Type() protoreflect.EnumType
type Feature ¶
type Feature struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Availability *Availability `protobuf:"bytes,2,opt,name=availability,proto3" json:"availability,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
- type = [required] unique type of a feature
- availability = [required] default avabiluty for all organizations, can be overwriten per organization via OrganizationFeature
func (*Feature) Descriptor
deprecated
func (*Feature) GetAvailability ¶
func (x *Feature) GetAvailability() *Availability
func (*Feature) GetDescription ¶
func (*Feature) ProtoMessage ¶
func (*Feature) ProtoMessage()
func (*Feature) ProtoReflect ¶
func (x *Feature) ProtoReflect() protoreflect.Message
type FeatureServiceClient ¶
type FeatureServiceClient interface { // Operation is called to get all features for an organization. // Operation is used by client facing services to check what features // are enabled for the organization. // Operation is synchronous. ListOrganizationFeatures(ctx context.Context, in *ListOrganizationFeaturesRequest, opts ...grpc.CallOption) (*ListOrganizationFeaturesResponse, error) // Operation is called to get the list of a features available on semaphore. // Operation is synchronous. ListFeatures(ctx context.Context, in *ListFeaturesRequest, opts ...grpc.CallOption) (*ListFeaturesResponse, error) // Operation is called to get all machines for an organization. // Operation is used by client facing services to check what machines // are enabled for the organization. // Operation is synchronous. ListOrganizationMachines(ctx context.Context, in *ListOrganizationMachinesRequest, opts ...grpc.CallOption) (*ListOrganizationMachinesResponse, error) // Operation is called to get the list of a machines available on semaphore. // Operation is synchronous. ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error) }
FeatureServiceClient is the client API for FeatureService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFeatureServiceClient ¶
func NewFeatureServiceClient(cc grpc.ClientConnInterface) FeatureServiceClient
type FeatureServiceServer ¶
type FeatureServiceServer interface { // Operation is called to get all features for an organization. // Operation is used by client facing services to check what features // are enabled for the organization. // Operation is synchronous. ListOrganizationFeatures(context.Context, *ListOrganizationFeaturesRequest) (*ListOrganizationFeaturesResponse, error) // Operation is called to get the list of a features available on semaphore. // Operation is synchronous. ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error) // Operation is called to get all machines for an organization. // Operation is used by client facing services to check what machines // are enabled for the organization. // Operation is synchronous. ListOrganizationMachines(context.Context, *ListOrganizationMachinesRequest) (*ListOrganizationMachinesResponse, error) // Operation is called to get the list of a machines available on semaphore. // Operation is synchronous. ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error) }
FeatureServiceServer is the server API for FeatureService service. All implementations should embed UnimplementedFeatureServiceServer for forward compatibility.
type FeaturesChanged ¶
type FeaturesChanged struct {
// contains filtered or unexported fields
}
Emitted when features are changed
func (*FeaturesChanged) Descriptor
deprecated
func (*FeaturesChanged) Descriptor() ([]byte, []int)
Deprecated: Use FeaturesChanged.ProtoReflect.Descriptor instead.
func (*FeaturesChanged) ProtoMessage ¶
func (*FeaturesChanged) ProtoMessage()
func (*FeaturesChanged) ProtoReflect ¶
func (x *FeaturesChanged) ProtoReflect() protoreflect.Message
func (*FeaturesChanged) Reset ¶
func (x *FeaturesChanged) Reset()
func (*FeaturesChanged) String ¶
func (x *FeaturesChanged) String() string
type ListFeaturesRequest ¶
type ListFeaturesRequest struct {
// contains filtered or unexported fields
}
func (*ListFeaturesRequest) Descriptor
deprecated
func (*ListFeaturesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFeaturesRequest.ProtoReflect.Descriptor instead.
func (*ListFeaturesRequest) ProtoMessage ¶
func (*ListFeaturesRequest) ProtoMessage()
func (*ListFeaturesRequest) ProtoReflect ¶
func (x *ListFeaturesRequest) ProtoReflect() protoreflect.Message
func (*ListFeaturesRequest) Reset ¶
func (x *ListFeaturesRequest) Reset()
func (*ListFeaturesRequest) String ¶
func (x *ListFeaturesRequest) String() string
type ListFeaturesResponse ¶
type ListFeaturesResponse struct { Features []*Feature `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*ListFeaturesResponse) Descriptor
deprecated
func (*ListFeaturesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFeaturesResponse.ProtoReflect.Descriptor instead.
func (*ListFeaturesResponse) GetFeatures ¶
func (x *ListFeaturesResponse) GetFeatures() []*Feature
func (*ListFeaturesResponse) ProtoMessage ¶
func (*ListFeaturesResponse) ProtoMessage()
func (*ListFeaturesResponse) ProtoReflect ¶
func (x *ListFeaturesResponse) ProtoReflect() protoreflect.Message
func (*ListFeaturesResponse) Reset ¶
func (x *ListFeaturesResponse) Reset()
func (*ListFeaturesResponse) String ¶
func (x *ListFeaturesResponse) String() string
type ListMachinesRequest ¶
type ListMachinesRequest struct {
// contains filtered or unexported fields
}
func (*ListMachinesRequest) Descriptor
deprecated
func (*ListMachinesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMachinesRequest.ProtoReflect.Descriptor instead.
func (*ListMachinesRequest) ProtoMessage ¶
func (*ListMachinesRequest) ProtoMessage()
func (*ListMachinesRequest) ProtoReflect ¶
func (x *ListMachinesRequest) ProtoReflect() protoreflect.Message
func (*ListMachinesRequest) Reset ¶
func (x *ListMachinesRequest) Reset()
func (*ListMachinesRequest) String ¶
func (x *ListMachinesRequest) String() string
type ListMachinesResponse ¶
type ListMachinesResponse struct { Machines []*Machine `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"` // contains filtered or unexported fields }
func (*ListMachinesResponse) Descriptor
deprecated
func (*ListMachinesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMachinesResponse.ProtoReflect.Descriptor instead.
func (*ListMachinesResponse) GetMachines ¶
func (x *ListMachinesResponse) GetMachines() []*Machine
func (*ListMachinesResponse) ProtoMessage ¶
func (*ListMachinesResponse) ProtoMessage()
func (*ListMachinesResponse) ProtoReflect ¶
func (x *ListMachinesResponse) ProtoReflect() protoreflect.Message
func (*ListMachinesResponse) Reset ¶
func (x *ListMachinesResponse) Reset()
func (*ListMachinesResponse) String ¶
func (x *ListMachinesResponse) String() string
type ListOrganizationFeaturesRequest ¶
type ListOrganizationFeaturesRequest struct { OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // contains filtered or unexported fields }
- org_id = [required] Organization ID for which we request the information.
func (*ListOrganizationFeaturesRequest) Descriptor
deprecated
func (*ListOrganizationFeaturesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationFeaturesRequest.ProtoReflect.Descriptor instead.
func (*ListOrganizationFeaturesRequest) GetOrgId ¶
func (x *ListOrganizationFeaturesRequest) GetOrgId() string
func (*ListOrganizationFeaturesRequest) ProtoMessage ¶
func (*ListOrganizationFeaturesRequest) ProtoMessage()
func (*ListOrganizationFeaturesRequest) ProtoReflect ¶
func (x *ListOrganizationFeaturesRequest) ProtoReflect() protoreflect.Message
func (*ListOrganizationFeaturesRequest) Reset ¶
func (x *ListOrganizationFeaturesRequest) Reset()
func (*ListOrganizationFeaturesRequest) String ¶
func (x *ListOrganizationFeaturesRequest) String() string
type ListOrganizationFeaturesResponse ¶
type ListOrganizationFeaturesResponse struct { OrganizationFeatures []*OrganizationFeature `protobuf:"bytes,1,rep,name=organization_features,json=organizationFeatures,proto3" json:"organization_features,omitempty"` // contains filtered or unexported fields }
func (*ListOrganizationFeaturesResponse) Descriptor
deprecated
func (*ListOrganizationFeaturesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationFeaturesResponse.ProtoReflect.Descriptor instead.
func (*ListOrganizationFeaturesResponse) GetOrganizationFeatures ¶
func (x *ListOrganizationFeaturesResponse) GetOrganizationFeatures() []*OrganizationFeature
func (*ListOrganizationFeaturesResponse) ProtoMessage ¶
func (*ListOrganizationFeaturesResponse) ProtoMessage()
func (*ListOrganizationFeaturesResponse) ProtoReflect ¶
func (x *ListOrganizationFeaturesResponse) ProtoReflect() protoreflect.Message
func (*ListOrganizationFeaturesResponse) Reset ¶
func (x *ListOrganizationFeaturesResponse) Reset()
func (*ListOrganizationFeaturesResponse) String ¶
func (x *ListOrganizationFeaturesResponse) String() string
type ListOrganizationMachinesRequest ¶
type ListOrganizationMachinesRequest struct { OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // contains filtered or unexported fields }
- org_id = [required] Organization ID for which we request the information.
If the organization doesn't exists, a GRPC :not_found status is returned.
func (*ListOrganizationMachinesRequest) Descriptor
deprecated
func (*ListOrganizationMachinesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationMachinesRequest.ProtoReflect.Descriptor instead.
func (*ListOrganizationMachinesRequest) GetOrgId ¶
func (x *ListOrganizationMachinesRequest) GetOrgId() string
func (*ListOrganizationMachinesRequest) ProtoMessage ¶
func (*ListOrganizationMachinesRequest) ProtoMessage()
func (*ListOrganizationMachinesRequest) ProtoReflect ¶
func (x *ListOrganizationMachinesRequest) ProtoReflect() protoreflect.Message
func (*ListOrganizationMachinesRequest) Reset ¶
func (x *ListOrganizationMachinesRequest) Reset()
func (*ListOrganizationMachinesRequest) String ¶
func (x *ListOrganizationMachinesRequest) String() string
type ListOrganizationMachinesResponse ¶
type ListOrganizationMachinesResponse struct { OrganizationMachines []*OrganizationMachine `protobuf:"bytes,1,rep,name=organization_machines,json=organizationMachines,proto3" json:"organization_machines,omitempty"` DefaultType string `protobuf:"bytes,2,opt,name=default_type,json=defaultType,proto3" json:"default_type,omitempty"` // contains filtered or unexported fields }
organization_machines - [required] list of machines available for given organization default_type - [required] default machine type for jobs (for example init jobs)
func (*ListOrganizationMachinesResponse) Descriptor
deprecated
func (*ListOrganizationMachinesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationMachinesResponse.ProtoReflect.Descriptor instead.
func (*ListOrganizationMachinesResponse) GetDefaultType ¶
func (x *ListOrganizationMachinesResponse) GetDefaultType() string
func (*ListOrganizationMachinesResponse) GetOrganizationMachines ¶
func (x *ListOrganizationMachinesResponse) GetOrganizationMachines() []*OrganizationMachine
func (*ListOrganizationMachinesResponse) ProtoMessage ¶
func (*ListOrganizationMachinesResponse) ProtoMessage()
func (*ListOrganizationMachinesResponse) ProtoReflect ¶
func (x *ListOrganizationMachinesResponse) ProtoReflect() protoreflect.Message
func (*ListOrganizationMachinesResponse) Reset ¶
func (x *ListOrganizationMachinesResponse) Reset()
func (*ListOrganizationMachinesResponse) String ¶
func (x *ListOrganizationMachinesResponse) String() string
type Machine ¶
type Machine struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Availability *Availability `protobuf:"bytes,2,opt,name=availability,proto3" json:"availability,omitempty"` Platform Machine_Platform `protobuf:"varint,3,opt,name=platform,proto3,enum=InternalApi.Feature.Machine_Platform" json:"platform,omitempty"` Vcpu string `protobuf:"bytes,4,opt,name=vcpu,proto3" json:"vcpu,omitempty"` Ram string `protobuf:"bytes,5,opt,name=ram,proto3" json:"ram,omitempty"` Disk string `protobuf:"bytes,6,opt,name=disk,proto3" json:"disk,omitempty"` DefaultOsImage string `protobuf:"bytes,7,opt,name=default_os_image,json=defaultOsImage,proto3" json:"default_os_image,omitempty"` OsImages []string `protobuf:"bytes,8,rep,name=os_images,json=osImages,proto3" json:"os_images,omitempty"` // contains filtered or unexported fields }
func (*Machine) Descriptor
deprecated
func (*Machine) GetAvailability ¶
func (x *Machine) GetAvailability() *Availability
func (*Machine) GetDefaultOsImage ¶
func (*Machine) GetOsImages ¶
func (*Machine) GetPlatform ¶
func (x *Machine) GetPlatform() Machine_Platform
func (*Machine) ProtoMessage ¶
func (*Machine) ProtoMessage()
func (*Machine) ProtoReflect ¶
func (x *Machine) ProtoReflect() protoreflect.Message
type Machine_Platform ¶
type Machine_Platform int32
const ( Machine_LINUX Machine_Platform = 0 Machine_MAC Machine_Platform = 1 )
func (Machine_Platform) Descriptor ¶
func (Machine_Platform) Descriptor() protoreflect.EnumDescriptor
func (Machine_Platform) Enum ¶
func (x Machine_Platform) Enum() *Machine_Platform
func (Machine_Platform) EnumDescriptor
deprecated
func (Machine_Platform) EnumDescriptor() ([]byte, []int)
Deprecated: Use Machine_Platform.Descriptor instead.
func (Machine_Platform) Number ¶
func (x Machine_Platform) Number() protoreflect.EnumNumber
func (Machine_Platform) String ¶
func (x Machine_Platform) String() string
func (Machine_Platform) Type ¶
func (Machine_Platform) Type() protoreflect.EnumType
type MachinesChanged ¶
type MachinesChanged struct {
// contains filtered or unexported fields
}
Emitted when machines are changed
func (*MachinesChanged) Descriptor
deprecated
func (*MachinesChanged) Descriptor() ([]byte, []int)
Deprecated: Use MachinesChanged.ProtoReflect.Descriptor instead.
func (*MachinesChanged) ProtoMessage ¶
func (*MachinesChanged) ProtoMessage()
func (*MachinesChanged) ProtoReflect ¶
func (x *MachinesChanged) ProtoReflect() protoreflect.Message
func (*MachinesChanged) Reset ¶
func (x *MachinesChanged) Reset()
func (*MachinesChanged) String ¶
func (x *MachinesChanged) String() string
type OrganizationFeature ¶
type OrganizationFeature struct { Feature *Feature `protobuf:"bytes,1,opt,name=feature,proto3" json:"feature,omitempty"` Availability *Availability `protobuf:"bytes,2,opt,name=availability,proto3" json:"availability,omitempty"` ProjectIds []string `protobuf:"bytes,3,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"` RequesterId string `protobuf:"bytes,5,opt,name=requester_id,json=requesterId,proto3" json:"requester_id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
- feature = [required] Feature's description. - availability = [required] Availability set for organization. - project_ids = [optional] Ids of projects to which this feature belongs. Default: feature belongs to all the projects. - requester_id = [required] Id of user which created or lastly updated the feature - created_at = [required] Timestamp of the time when feature was originally created - updated_at = [required] Timestamp of last time when feature was updated
func (*OrganizationFeature) Descriptor
deprecated
func (*OrganizationFeature) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationFeature.ProtoReflect.Descriptor instead.
func (*OrganizationFeature) GetAvailability ¶
func (x *OrganizationFeature) GetAvailability() *Availability
func (*OrganizationFeature) GetCreatedAt ¶
func (x *OrganizationFeature) GetCreatedAt() *timestamp.Timestamp
func (*OrganizationFeature) GetFeature ¶
func (x *OrganizationFeature) GetFeature() *Feature
func (*OrganizationFeature) GetProjectIds ¶
func (x *OrganizationFeature) GetProjectIds() []string
func (*OrganizationFeature) GetRequesterId ¶
func (x *OrganizationFeature) GetRequesterId() string
func (*OrganizationFeature) GetUpdatedAt ¶
func (x *OrganizationFeature) GetUpdatedAt() *timestamp.Timestamp
func (*OrganizationFeature) ProtoMessage ¶
func (*OrganizationFeature) ProtoMessage()
func (*OrganizationFeature) ProtoReflect ¶
func (x *OrganizationFeature) ProtoReflect() protoreflect.Message
func (*OrganizationFeature) Reset ¶
func (x *OrganizationFeature) Reset()
func (*OrganizationFeature) String ¶
func (x *OrganizationFeature) String() string
type OrganizationFeaturesChanged ¶
type OrganizationFeaturesChanged struct { OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // contains filtered or unexported fields }
Emitted when organization features are changed
func (*OrganizationFeaturesChanged) Descriptor
deprecated
func (*OrganizationFeaturesChanged) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationFeaturesChanged.ProtoReflect.Descriptor instead.
func (*OrganizationFeaturesChanged) GetOrgId ¶
func (x *OrganizationFeaturesChanged) GetOrgId() string
func (*OrganizationFeaturesChanged) ProtoMessage ¶
func (*OrganizationFeaturesChanged) ProtoMessage()
func (*OrganizationFeaturesChanged) ProtoReflect ¶
func (x *OrganizationFeaturesChanged) ProtoReflect() protoreflect.Message
func (*OrganizationFeaturesChanged) Reset ¶
func (x *OrganizationFeaturesChanged) Reset()
func (*OrganizationFeaturesChanged) String ¶
func (x *OrganizationFeaturesChanged) String() string
type OrganizationMachine ¶
type OrganizationMachine struct { Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` Availability *Availability `protobuf:"bytes,2,opt,name=availability,proto3" json:"availability,omitempty"` RequesterId string `protobuf:"bytes,3,opt,name=requester_id,json=requesterId,proto3" json:"requester_id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*OrganizationMachine) Descriptor
deprecated
func (*OrganizationMachine) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationMachine.ProtoReflect.Descriptor instead.
func (*OrganizationMachine) GetAvailability ¶
func (x *OrganizationMachine) GetAvailability() *Availability
func (*OrganizationMachine) GetCreatedAt ¶
func (x *OrganizationMachine) GetCreatedAt() *timestamp.Timestamp
func (*OrganizationMachine) GetMachine ¶
func (x *OrganizationMachine) GetMachine() *Machine
func (*OrganizationMachine) GetRequesterId ¶
func (x *OrganizationMachine) GetRequesterId() string
func (*OrganizationMachine) GetUpdatedAt ¶
func (x *OrganizationMachine) GetUpdatedAt() *timestamp.Timestamp
func (*OrganizationMachine) ProtoMessage ¶
func (*OrganizationMachine) ProtoMessage()
func (*OrganizationMachine) ProtoReflect ¶
func (x *OrganizationMachine) ProtoReflect() protoreflect.Message
func (*OrganizationMachine) Reset ¶
func (x *OrganizationMachine) Reset()
func (*OrganizationMachine) String ¶
func (x *OrganizationMachine) String() string
type OrganizationMachinesChanged ¶
type OrganizationMachinesChanged struct { OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // contains filtered or unexported fields }
Emitted when organization machines are changed
func (*OrganizationMachinesChanged) Descriptor
deprecated
func (*OrganizationMachinesChanged) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationMachinesChanged.ProtoReflect.Descriptor instead.
func (*OrganizationMachinesChanged) GetOrgId ¶
func (x *OrganizationMachinesChanged) GetOrgId() string
func (*OrganizationMachinesChanged) ProtoMessage ¶
func (*OrganizationMachinesChanged) ProtoMessage()
func (*OrganizationMachinesChanged) ProtoReflect ¶
func (x *OrganizationMachinesChanged) ProtoReflect() protoreflect.Message
func (*OrganizationMachinesChanged) Reset ¶
func (x *OrganizationMachinesChanged) Reset()
func (*OrganizationMachinesChanged) String ¶
func (x *OrganizationMachinesChanged) String() string
type UnimplementedFeatureServiceServer ¶
type UnimplementedFeatureServiceServer struct{}
UnimplementedFeatureServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFeatureServiceServer) ListFeatures ¶
func (UnimplementedFeatureServiceServer) ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error)
func (UnimplementedFeatureServiceServer) ListMachines ¶
func (UnimplementedFeatureServiceServer) ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error)
func (UnimplementedFeatureServiceServer) ListOrganizationFeatures ¶
func (UnimplementedFeatureServiceServer) ListOrganizationFeatures(context.Context, *ListOrganizationFeaturesRequest) (*ListOrganizationFeaturesResponse, error)
func (UnimplementedFeatureServiceServer) ListOrganizationMachines ¶
func (UnimplementedFeatureServiceServer) ListOrganizationMachines(context.Context, *ListOrganizationMachinesRequest) (*ListOrganizationMachinesResponse, error)
type UnsafeFeatureServiceServer ¶
type UnsafeFeatureServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFeatureServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FeatureServiceServer will result in compilation errors.