Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterMDBServiceServer(s grpc.ServiceRegistrar, srv MDBServiceServer)
- type ClusterType
- func (ClusterType) Descriptor() protoreflect.EnumDescriptor
- func (x ClusterType) Enum() *ClusterType
- func (ClusterType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClusterType) Number() protoreflect.EnumNumber
- func (x ClusterType) String() string
- func (ClusterType) Type() protoreflect.EnumType
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetCurrentMachine() *Machine
- func (x *Config) GetIssueId() int32
- func (x *Config) GetIssueType() MachineErrors
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type GetMachineRequest
- type GetMachineResponse
- func (*GetMachineResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMachineResponse) GetDetails() *Machine
- func (*GetMachineResponse) ProtoMessage()
- func (x *GetMachineResponse) ProtoReflect() protoreflect.Message
- func (x *GetMachineResponse) Reset()
- func (x *GetMachineResponse) String() string
- type ListMachinesRequest
- func (*ListMachinesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMachinesRequest) GetIpv4() uint32
- func (*ListMachinesRequest) ProtoMessage()
- func (x *ListMachinesRequest) ProtoReflect() protoreflect.Message
- func (x *ListMachinesRequest) Reset()
- func (x *ListMachinesRequest) String() string
- 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 MDBServiceClient
- type MDBServiceServer
- type Machine
- func (*Machine) Descriptor() ([]byte, []int)deprecated
- func (x *Machine) GetClusterType() ClusterType
- func (x *Machine) GetConnectivity() MachineConnectivity
- func (x *Machine) GetController() string
- func (x *Machine) GetHostname() string
- func (x *Machine) GetIpv4() uint32
- func (x *Machine) GetK3SVersion() string
- func (x *Machine) GetLastUpdated() int64
- func (x *Machine) GetMac() string
- func (x *Machine) GetMarkedForDelete() bool
- func (x *Machine) GetStability() MachineStability
- func (x *Machine) GetType() MachineType
- func (x *Machine) GetUse() MachineUse
- func (x *Machine) GetVersion() string
- func (*Machine) ProtoMessage()
- func (x *Machine) ProtoReflect() protoreflect.Message
- func (x *Machine) Reset()
- func (x *Machine) String() string
- type MachineConnectivity
- func (MachineConnectivity) Descriptor() protoreflect.EnumDescriptor
- func (x MachineConnectivity) Enum() *MachineConnectivity
- func (MachineConnectivity) EnumDescriptor() ([]byte, []int)deprecated
- func (x MachineConnectivity) Number() protoreflect.EnumNumber
- func (x MachineConnectivity) String() string
- func (MachineConnectivity) Type() protoreflect.EnumType
- type MachineErrors
- func (MachineErrors) Descriptor() protoreflect.EnumDescriptor
- func (x MachineErrors) Enum() *MachineErrors
- func (MachineErrors) EnumDescriptor() ([]byte, []int)deprecated
- func (x MachineErrors) Number() protoreflect.EnumNumber
- func (x MachineErrors) String() string
- func (MachineErrors) Type() protoreflect.EnumType
- type MachineStability
- func (MachineStability) Descriptor() protoreflect.EnumDescriptor
- func (x MachineStability) Enum() *MachineStability
- func (MachineStability) EnumDescriptor() ([]byte, []int)deprecated
- func (x MachineStability) Number() protoreflect.EnumNumber
- func (x MachineStability) String() string
- func (MachineStability) Type() protoreflect.EnumType
- type MachineType
- func (MachineType) Descriptor() protoreflect.EnumDescriptor
- func (x MachineType) Enum() *MachineType
- func (MachineType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MachineType) Number() protoreflect.EnumNumber
- func (x MachineType) String() string
- func (MachineType) Type() protoreflect.EnumType
- type MachineUse
- type Mdb
- type UnimplementedMDBServiceServer
- func (UnimplementedMDBServiceServer) GetMachine(context.Context, *GetMachineRequest) (*GetMachineResponse, error)
- func (UnimplementedMDBServiceServer) ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error)
- func (UnimplementedMDBServiceServer) UpdateMachine(context.Context, *UpdateMachineRequest) (*UpdateMachineResponse, error)
- type UnsafeMDBServiceServer
- type UpdateMachineRequest
- func (*UpdateMachineRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMachineRequest) GetHostname() string
- func (x *UpdateMachineRequest) GetIpv4() uint32
- func (x *UpdateMachineRequest) GetNewK3SVersion() string
- func (x *UpdateMachineRequest) GetNewStability() MachineStability
- func (x *UpdateMachineRequest) GetNewType() MachineType
- func (x *UpdateMachineRequest) GetNewUse() MachineUse
- func (x *UpdateMachineRequest) GetNewVersion() string
- func (x *UpdateMachineRequest) GetRemove() bool
- func (x *UpdateMachineRequest) GetUpdate() bool
- func (*UpdateMachineRequest) ProtoMessage()
- func (x *UpdateMachineRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMachineRequest) Reset()
- func (x *UpdateMachineRequest) String() string
- type UpdateMachineResponse
Constants ¶
const ( MDBService_ListMachines_FullMethodName = "/mdb.MDBService/ListMachines" MDBService_UpdateMachine_FullMethodName = "/mdb.MDBService/UpdateMachine" MDBService_GetMachine_FullMethodName = "/mdb.MDBService/GetMachine" )
Variables ¶
var ( MachineType_name = map[int32]string{ 0: "MACHINE_TYPE_UNKNOWN", 1: "MACHINE_TYPE_RASPBERRY_PI", 2: "MACHINE_TYPE_IOT_DEVICE", 3: "MACHINE_TYPE_INTEL", 4: "MACHINE_TYPE_APPLE", 5: "MACHINE_TYPE_PHONE", 6: "MACHINE_TYPE_TABLET", 7: "MACHINE_TYPE_AMD", } MachineType_value = map[string]int32{ "MACHINE_TYPE_UNKNOWN": 0, "MACHINE_TYPE_RASPBERRY_PI": 1, "MACHINE_TYPE_IOT_DEVICE": 2, "MACHINE_TYPE_INTEL": 3, "MACHINE_TYPE_APPLE": 4, "MACHINE_TYPE_PHONE": 5, "MACHINE_TYPE_TABLET": 6, "MACHINE_TYPE_AMD": 7, } )
Enum value maps for MachineType.
var ( ClusterType_name = map[int32]string{ 0: "CLUSTER_TYPE_UNKNONW", 1: "CLUSTER_TYPE_LEAD", 2: "CLUSTER_TYPE_FOLLOWER", } ClusterType_value = map[string]int32{ "CLUSTER_TYPE_UNKNONW": 0, "CLUSTER_TYPE_LEAD": 1, "CLUSTER_TYPE_FOLLOWER": 2, } )
Enum value maps for ClusterType.
var ( MachineUse_name = map[int32]string{ 0: "MACHINE_USE_UNKNOWN", 1: "MACHINE_USE_DEV_DESKTOP", 2: "MACHINE_USE_DEV_SERVER", 3: "MACHINE_USE_KUBERNETES_CLUSTER", 4: "MACHINE_USE_LOCAL_CLUSTER", 5: "MACHINE_USE_NOT_IN_USE", 6: "MACHINE_USE_PI_SERVER", } MachineUse_value = map[string]int32{ "MACHINE_USE_UNKNOWN": 0, "MACHINE_USE_DEV_DESKTOP": 1, "MACHINE_USE_DEV_SERVER": 2, "MACHINE_USE_KUBERNETES_CLUSTER": 3, "MACHINE_USE_LOCAL_CLUSTER": 4, "MACHINE_USE_NOT_IN_USE": 5, "MACHINE_USE_PI_SERVER": 6, } )
Enum value maps for MachineUse.
var ( MachineErrors_name = map[int32]string{ 0: "MACHINE_ERROR_NONE", 1: "MACHINE_ERROR_MISSING_TYPE", 2: "MACHINE_ERROR_UNSTABLE_IP", 3: "MACHINE_ERROR_MISSING_USE", 4: "MACHINE_ERROR_CLUSTER_MISSING_TYPE", } MachineErrors_value = map[string]int32{ "MACHINE_ERROR_NONE": 0, "MACHINE_ERROR_MISSING_TYPE": 1, "MACHINE_ERROR_UNSTABLE_IP": 2, "MACHINE_ERROR_MISSING_USE": 3, "MACHINE_ERROR_CLUSTER_MISSING_TYPE": 4, } )
Enum value maps for MachineErrors.
var ( MachineStability_name = map[int32]string{ 0: "MACHINE_STABILITY_UNKNOWN", 1: "MACHINE_STABILITY_STAY_UP", 2: "MACHINE_STABILITY_SHUTDOWN_ON_LEAVE", 3: "MACHINE_STABILITY_SHUTDOWN_ON_OFFICE_DOWN", } MachineStability_value = map[string]int32{ "MACHINE_STABILITY_UNKNOWN": 0, "MACHINE_STABILITY_STAY_UP": 1, "MACHINE_STABILITY_SHUTDOWN_ON_LEAVE": 2, "MACHINE_STABILITY_SHUTDOWN_ON_OFFICE_DOWN": 3, } )
Enum value maps for MachineStability.
var ( MachineConnectivity_name = map[int32]string{ 0: "MACHINE_CONNECTIVITY_UNKNOWN", 1: "MACHINE_CONNECTIVITY_WIRED", 2: "MACHINE_CONNECTIVITY_EPHEMERAL", } MachineConnectivity_value = map[string]int32{ "MACHINE_CONNECTIVITY_UNKNOWN": 0, "MACHINE_CONNECTIVITY_WIRED": 1, "MACHINE_CONNECTIVITY_EPHEMERAL": 2, } )
Enum value maps for MachineConnectivity.
var File_mdb_proto protoreflect.FileDescriptor
var MDBService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mdb.MDBService", HandlerType: (*MDBServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListMachines", Handler: _MDBService_ListMachines_Handler, }, { MethodName: "UpdateMachine", Handler: _MDBService_UpdateMachine_Handler, }, { MethodName: "GetMachine", Handler: _MDBService_GetMachine_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mdb.proto", }
MDBService_ServiceDesc is the grpc.ServiceDesc for MDBService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMDBServiceServer ¶
func RegisterMDBServiceServer(s grpc.ServiceRegistrar, srv MDBServiceServer)
Types ¶
type ClusterType ¶ added in v0.103.0
type ClusterType int32
const ( ClusterType_CLUSTER_TYPE_UNKNONW ClusterType = 0 ClusterType_CLUSTER_TYPE_LEAD ClusterType = 1 ClusterType_CLUSTER_TYPE_FOLLOWER ClusterType = 2 )
func (ClusterType) Descriptor ¶ added in v0.103.0
func (ClusterType) Descriptor() protoreflect.EnumDescriptor
func (ClusterType) Enum ¶ added in v0.103.0
func (x ClusterType) Enum() *ClusterType
func (ClusterType) EnumDescriptor
deprecated
added in
v0.103.0
func (ClusterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClusterType.Descriptor instead.
func (ClusterType) Number ¶ added in v0.103.0
func (x ClusterType) Number() protoreflect.EnumNumber
func (ClusterType) String ¶ added in v0.103.0
func (x ClusterType) String() string
func (ClusterType) Type ¶ added in v0.103.0
func (ClusterType) Type() protoreflect.EnumType
type Config ¶ added in v0.31.0
type Config struct {
CurrentMachine *Machine `protobuf:"bytes,1,opt,name=current_machine,json=currentMachine,proto3" json:"current_machine,omitempty"`
IssueId int32 `protobuf:"varint,2,opt,name=issue_id,json=issueId,proto3" json:"issue_id,omitempty"`
IssueType MachineErrors `protobuf:"varint,3,opt,name=issue_type,json=issueType,proto3,enum=mdb.MachineErrors" json:"issue_type,omitempty"`
// contains filtered or unexported fields
}
func (*Config) Descriptor
deprecated
added in
v0.31.0
func (*Config) GetCurrentMachine ¶ added in v0.31.0
func (*Config) GetIssueId ¶ added in v0.31.0
func (*Config) GetIssueType ¶ added in v0.88.0
func (x *Config) GetIssueType() MachineErrors
func (*Config) ProtoMessage ¶ added in v0.31.0
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶ added in v0.31.0
func (x *Config) ProtoReflect() protoreflect.Message
type GetMachineRequest ¶ added in v0.114.0
type GetMachineRequest struct {
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
// contains filtered or unexported fields
}
func (*GetMachineRequest) Descriptor
deprecated
added in
v0.114.0
func (*GetMachineRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMachineRequest.ProtoReflect.Descriptor instead.
func (*GetMachineRequest) GetHostname ¶ added in v0.114.0
func (x *GetMachineRequest) GetHostname() string
func (*GetMachineRequest) ProtoMessage ¶ added in v0.114.0
func (*GetMachineRequest) ProtoMessage()
func (*GetMachineRequest) ProtoReflect ¶ added in v0.114.0
func (x *GetMachineRequest) ProtoReflect() protoreflect.Message
func (*GetMachineRequest) Reset ¶ added in v0.114.0
func (x *GetMachineRequest) Reset()
func (*GetMachineRequest) String ¶ added in v0.114.0
func (x *GetMachineRequest) String() string
type GetMachineResponse ¶ added in v0.114.0
type GetMachineResponse struct {
Details *Machine `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
// contains filtered or unexported fields
}
func (*GetMachineResponse) Descriptor
deprecated
added in
v0.114.0
func (*GetMachineResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMachineResponse.ProtoReflect.Descriptor instead.
func (*GetMachineResponse) GetDetails ¶ added in v0.114.0
func (x *GetMachineResponse) GetDetails() *Machine
func (*GetMachineResponse) ProtoMessage ¶ added in v0.114.0
func (*GetMachineResponse) ProtoMessage()
func (*GetMachineResponse) ProtoReflect ¶ added in v0.114.0
func (x *GetMachineResponse) ProtoReflect() protoreflect.Message
func (*GetMachineResponse) Reset ¶ added in v0.114.0
func (x *GetMachineResponse) Reset()
func (*GetMachineResponse) String ¶ added in v0.114.0
func (x *GetMachineResponse) String() string
type ListMachinesRequest ¶
type ListMachinesRequest struct {
Ipv4 uint32 `protobuf:"fixed32,1,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
// contains filtered or unexported fields
}
func (*ListMachinesRequest) Descriptor
deprecated
func (*ListMachinesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMachinesRequest.ProtoReflect.Descriptor instead.
func (*ListMachinesRequest) GetIpv4 ¶
func (x *ListMachinesRequest) GetIpv4() uint32
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 MDBServiceClient ¶
type MDBServiceClient interface {
ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error)
UpdateMachine(ctx context.Context, in *UpdateMachineRequest, opts ...grpc.CallOption) (*UpdateMachineResponse, error)
GetMachine(ctx context.Context, in *GetMachineRequest, opts ...grpc.CallOption) (*GetMachineResponse, error)
}
MDBServiceClient is the client API for MDBService 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 NewMDBServiceClient ¶
func NewMDBServiceClient(cc grpc.ClientConnInterface) MDBServiceClient
type MDBServiceServer ¶
type MDBServiceServer interface {
ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error)
UpdateMachine(context.Context, *UpdateMachineRequest) (*UpdateMachineResponse, error)
GetMachine(context.Context, *GetMachineRequest) (*GetMachineResponse, error)
}
MDBServiceServer is the server API for MDBService service. All implementations should embed UnimplementedMDBServiceServer for forward compatibility
type Machine ¶
type Machine struct {
Ipv4 uint32 `protobuf:"fixed32,1,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
Mac string `protobuf:"bytes,3,opt,name=mac,proto3" json:"mac,omitempty"`
Controller string `protobuf:"bytes,4,opt,name=controller,proto3" json:"controller,omitempty"`
// These are the user specified eleemnts
Type MachineType `protobuf:"varint,5,opt,name=type,proto3,enum=mdb.MachineType" json:"type,omitempty"`
Use MachineUse `protobuf:"varint,6,opt,name=use,proto3,enum=mdb.MachineUse" json:"use,omitempty"`
Connectivity MachineConnectivity `protobuf:"varint,8,opt,name=connectivity,proto3,enum=mdb.MachineConnectivity" json:"connectivity,omitempty"`
ClusterType ClusterType `protobuf:"varint,11,opt,name=cluster_type,json=clusterType,proto3,enum=mdb.ClusterType" json:"cluster_type,omitempty"`
MarkedForDelete bool `protobuf:"varint,7,opt,name=marked_for_delete,json=markedForDelete,proto3" json:"marked_for_delete,omitempty"`
Version string `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"`
LastUpdated int64 `protobuf:"varint,10,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
K3SVersion string `protobuf:"bytes,12,opt,name=k3s_version,json=k3sVersion,proto3" json:"k3s_version,omitempty"`
Stability MachineStability `protobuf:"varint,13,opt,name=stability,proto3,enum=mdb.MachineStability" json:"stability,omitempty"`
// contains filtered or unexported fields
}
func (*Machine) Descriptor
deprecated
func (*Machine) GetClusterType ¶ added in v0.103.0
func (x *Machine) GetClusterType() ClusterType
func (*Machine) GetConnectivity ¶ added in v0.94.0
func (x *Machine) GetConnectivity() MachineConnectivity
func (*Machine) GetController ¶ added in v0.30.0
func (*Machine) GetHostname ¶
func (*Machine) GetK3SVersion ¶ added in v0.108.0
func (*Machine) GetLastUpdated ¶ added in v0.98.0
func (*Machine) GetMarkedForDelete ¶ added in v0.93.0
func (*Machine) GetStability ¶ added in v0.114.0
func (x *Machine) GetStability() MachineStability
func (*Machine) GetType ¶ added in v0.31.0
func (x *Machine) GetType() MachineType
func (*Machine) GetUse ¶ added in v0.77.0
func (x *Machine) GetUse() MachineUse
func (*Machine) GetVersion ¶ added in v0.98.0
func (*Machine) ProtoMessage ¶
func (*Machine) ProtoMessage()
func (*Machine) ProtoReflect ¶
func (x *Machine) ProtoReflect() protoreflect.Message
type MachineConnectivity ¶ added in v0.94.0
type MachineConnectivity int32
const ( MachineConnectivity_MACHINE_CONNECTIVITY_UNKNOWN MachineConnectivity = 0 MachineConnectivity_MACHINE_CONNECTIVITY_WIRED MachineConnectivity = 1 MachineConnectivity_MACHINE_CONNECTIVITY_EPHEMERAL MachineConnectivity = 2 )
func (MachineConnectivity) Descriptor ¶ added in v0.94.0
func (MachineConnectivity) Descriptor() protoreflect.EnumDescriptor
func (MachineConnectivity) Enum ¶ added in v0.94.0
func (x MachineConnectivity) Enum() *MachineConnectivity
func (MachineConnectivity) EnumDescriptor
deprecated
added in
v0.94.0
func (MachineConnectivity) EnumDescriptor() ([]byte, []int)
Deprecated: Use MachineConnectivity.Descriptor instead.
func (MachineConnectivity) Number ¶ added in v0.94.0
func (x MachineConnectivity) Number() protoreflect.EnumNumber
func (MachineConnectivity) String ¶ added in v0.94.0
func (x MachineConnectivity) String() string
func (MachineConnectivity) Type ¶ added in v0.94.0
func (MachineConnectivity) Type() protoreflect.EnumType
type MachineErrors ¶ added in v0.36.0
type MachineErrors int32
const ( MachineErrors_MACHINE_ERROR_NONE MachineErrors = 0 MachineErrors_MACHINE_ERROR_MISSING_TYPE MachineErrors = 1 MachineErrors_MACHINE_ERROR_UNSTABLE_IP MachineErrors = 2 MachineErrors_MACHINE_ERROR_MISSING_USE MachineErrors = 3 MachineErrors_MACHINE_ERROR_CLUSTER_MISSING_TYPE MachineErrors = 4 )
func (MachineErrors) Descriptor ¶ added in v0.36.0
func (MachineErrors) Descriptor() protoreflect.EnumDescriptor
func (MachineErrors) Enum ¶ added in v0.36.0
func (x MachineErrors) Enum() *MachineErrors
func (MachineErrors) EnumDescriptor
deprecated
added in
v0.36.0
func (MachineErrors) EnumDescriptor() ([]byte, []int)
Deprecated: Use MachineErrors.Descriptor instead.
func (MachineErrors) Number ¶ added in v0.36.0
func (x MachineErrors) Number() protoreflect.EnumNumber
func (MachineErrors) String ¶ added in v0.36.0
func (x MachineErrors) String() string
func (MachineErrors) Type ¶ added in v0.36.0
func (MachineErrors) Type() protoreflect.EnumType
type MachineStability ¶ added in v0.114.0
type MachineStability int32
const ( MachineStability_MACHINE_STABILITY_UNKNOWN MachineStability = 0 MachineStability_MACHINE_STABILITY_STAY_UP MachineStability = 1 MachineStability_MACHINE_STABILITY_SHUTDOWN_ON_LEAVE MachineStability = 2 MachineStability_MACHINE_STABILITY_SHUTDOWN_ON_OFFICE_DOWN MachineStability = 3 )
func (MachineStability) Descriptor ¶ added in v0.114.0
func (MachineStability) Descriptor() protoreflect.EnumDescriptor
func (MachineStability) Enum ¶ added in v0.114.0
func (x MachineStability) Enum() *MachineStability
func (MachineStability) EnumDescriptor
deprecated
added in
v0.114.0
func (MachineStability) EnumDescriptor() ([]byte, []int)
Deprecated: Use MachineStability.Descriptor instead.
func (MachineStability) Number ¶ added in v0.114.0
func (x MachineStability) Number() protoreflect.EnumNumber
func (MachineStability) String ¶ added in v0.114.0
func (x MachineStability) String() string
func (MachineStability) Type ¶ added in v0.114.0
func (MachineStability) Type() protoreflect.EnumType
type MachineType ¶ added in v0.31.0
type MachineType int32
const ( MachineType_MACHINE_TYPE_UNKNOWN MachineType = 0 MachineType_MACHINE_TYPE_RASPBERRY_PI MachineType = 1 MachineType_MACHINE_TYPE_IOT_DEVICE MachineType = 2 MachineType_MACHINE_TYPE_INTEL MachineType = 3 MachineType_MACHINE_TYPE_APPLE MachineType = 4 MachineType_MACHINE_TYPE_PHONE MachineType = 5 MachineType_MACHINE_TYPE_TABLET MachineType = 6 MachineType_MACHINE_TYPE_AMD MachineType = 7 )
func (MachineType) Descriptor ¶ added in v0.31.0
func (MachineType) Descriptor() protoreflect.EnumDescriptor
func (MachineType) Enum ¶ added in v0.31.0
func (x MachineType) Enum() *MachineType
func (MachineType) EnumDescriptor
deprecated
added in
v0.31.0
func (MachineType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MachineType.Descriptor instead.
func (MachineType) Number ¶ added in v0.31.0
func (x MachineType) Number() protoreflect.EnumNumber
func (MachineType) String ¶ added in v0.31.0
func (x MachineType) String() string
func (MachineType) Type ¶ added in v0.31.0
func (MachineType) Type() protoreflect.EnumType
type MachineUse ¶ added in v0.77.0
type MachineUse int32
const ( MachineUse_MACHINE_USE_UNKNOWN MachineUse = 0 MachineUse_MACHINE_USE_DEV_DESKTOP MachineUse = 1 MachineUse_MACHINE_USE_DEV_SERVER MachineUse = 2 MachineUse_MACHINE_USE_KUBERNETES_CLUSTER MachineUse = 3 MachineUse_MACHINE_USE_LOCAL_CLUSTER MachineUse = 4 MachineUse_MACHINE_USE_NOT_IN_USE MachineUse = 5 MachineUse_MACHINE_USE_PI_SERVER MachineUse = 6 )
func (MachineUse) Descriptor ¶ added in v0.77.0
func (MachineUse) Descriptor() protoreflect.EnumDescriptor
func (MachineUse) Enum ¶ added in v0.77.0
func (x MachineUse) Enum() *MachineUse
func (MachineUse) EnumDescriptor
deprecated
added in
v0.77.0
func (MachineUse) EnumDescriptor() ([]byte, []int)
Deprecated: Use MachineUse.Descriptor instead.
func (MachineUse) Number ¶ added in v0.77.0
func (x MachineUse) Number() protoreflect.EnumNumber
func (MachineUse) String ¶ added in v0.77.0
func (x MachineUse) String() string
func (MachineUse) Type ¶ added in v0.77.0
func (MachineUse) Type() protoreflect.EnumType
type Mdb ¶ added in v0.31.0
type Mdb struct {
Machines []*Machine `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"`
Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*Mdb) Descriptor
deprecated
added in
v0.31.0
func (*Mdb) GetMachines ¶ added in v0.31.0
func (*Mdb) ProtoMessage ¶ added in v0.31.0
func (*Mdb) ProtoMessage()
func (*Mdb) ProtoReflect ¶ added in v0.31.0
func (x *Mdb) ProtoReflect() protoreflect.Message
type UnimplementedMDBServiceServer ¶
type UnimplementedMDBServiceServer struct {
}
UnimplementedMDBServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedMDBServiceServer) GetMachine ¶ added in v0.114.0
func (UnimplementedMDBServiceServer) GetMachine(context.Context, *GetMachineRequest) (*GetMachineResponse, error)
func (UnimplementedMDBServiceServer) ListMachines ¶
func (UnimplementedMDBServiceServer) ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error)
func (UnimplementedMDBServiceServer) UpdateMachine ¶ added in v0.38.0
func (UnimplementedMDBServiceServer) UpdateMachine(context.Context, *UpdateMachineRequest) (*UpdateMachineResponse, error)
type UnsafeMDBServiceServer ¶
type UnsafeMDBServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMDBServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MDBServiceServer will result in compilation errors.
type UpdateMachineRequest ¶ added in v0.38.0
type UpdateMachineRequest struct {
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
NewType MachineType `protobuf:"varint,2,opt,name=new_type,json=newType,proto3,enum=mdb.MachineType" json:"new_type,omitempty"`
NewUse MachineUse `protobuf:"varint,7,opt,name=new_use,json=newUse,proto3,enum=mdb.MachineUse" json:"new_use,omitempty"`
Ipv4 uint32 `protobuf:"fixed32,3,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
Remove bool `protobuf:"varint,4,opt,name=remove,proto3" json:"remove,omitempty"`
Update bool `protobuf:"varint,5,opt,name=update,proto3" json:"update,omitempty"`
NewVersion string `protobuf:"bytes,6,opt,name=new_version,json=newVersion,proto3" json:"new_version,omitempty"`
NewK3SVersion string `protobuf:"bytes,8,opt,name=new_k3s_version,json=newK3sVersion,proto3" json:"new_k3s_version,omitempty"`
NewStability MachineStability `protobuf:"varint,9,opt,name=new_stability,json=newStability,proto3,enum=mdb.MachineStability" json:"new_stability,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateMachineRequest) Descriptor
deprecated
added in
v0.38.0
func (*UpdateMachineRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMachineRequest.ProtoReflect.Descriptor instead.
func (*UpdateMachineRequest) GetHostname ¶ added in v0.38.0
func (x *UpdateMachineRequest) GetHostname() string
func (*UpdateMachineRequest) GetIpv4 ¶ added in v0.96.0
func (x *UpdateMachineRequest) GetIpv4() uint32
func (*UpdateMachineRequest) GetNewK3SVersion ¶ added in v0.108.0
func (x *UpdateMachineRequest) GetNewK3SVersion() string
func (*UpdateMachineRequest) GetNewStability ¶ added in v0.114.0
func (x *UpdateMachineRequest) GetNewStability() MachineStability
func (*UpdateMachineRequest) GetNewType ¶ added in v0.38.0
func (x *UpdateMachineRequest) GetNewType() MachineType
func (*UpdateMachineRequest) GetNewUse ¶ added in v0.106.0
func (x *UpdateMachineRequest) GetNewUse() MachineUse
func (*UpdateMachineRequest) GetNewVersion ¶ added in v0.106.0
func (x *UpdateMachineRequest) GetNewVersion() string
func (*UpdateMachineRequest) GetRemove ¶ added in v0.96.0
func (x *UpdateMachineRequest) GetRemove() bool
func (*UpdateMachineRequest) GetUpdate ¶ added in v0.106.0
func (x *UpdateMachineRequest) GetUpdate() bool
func (*UpdateMachineRequest) ProtoMessage ¶ added in v0.38.0
func (*UpdateMachineRequest) ProtoMessage()
func (*UpdateMachineRequest) ProtoReflect ¶ added in v0.38.0
func (x *UpdateMachineRequest) ProtoReflect() protoreflect.Message
func (*UpdateMachineRequest) Reset ¶ added in v0.38.0
func (x *UpdateMachineRequest) Reset()
func (*UpdateMachineRequest) String ¶ added in v0.38.0
func (x *UpdateMachineRequest) String() string
type UpdateMachineResponse ¶ added in v0.38.0
type UpdateMachineResponse struct {
// contains filtered or unexported fields
}
func (*UpdateMachineResponse) Descriptor
deprecated
added in
v0.38.0
func (*UpdateMachineResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMachineResponse.ProtoReflect.Descriptor instead.
func (*UpdateMachineResponse) ProtoMessage ¶ added in v0.38.0
func (*UpdateMachineResponse) ProtoMessage()
func (*UpdateMachineResponse) ProtoReflect ¶ added in v0.38.0
func (x *UpdateMachineResponse) ProtoReflect() protoreflect.Message
func (*UpdateMachineResponse) Reset ¶ added in v0.38.0
func (x *UpdateMachineResponse) Reset()
func (*UpdateMachineResponse) String ¶ added in v0.38.0
func (x *UpdateMachineResponse) String() string