Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServerProtoServer(s grpc.ServiceRegistrar, srv ServerProtoServer)
- type Glance
- func (*Glance) Descriptor() ([]byte, []int)deprecated
- func (x *Glance) GetDir() *GlanceDirReq
- func (x *Glance) GetFile() *GlanceFileReq
- func (x *Glance) GetSys() *GlanceSysReq
- func (*Glance) ProtoMessage()
- func (x *Glance) ProtoReflect() protoreflect.Message
- func (x *Glance) Reset()
- func (x *Glance) String() string
- type GlanceAllocatable
- func (*GlanceAllocatable) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceAllocatable) GetMemory() int64
- func (x *GlanceAllocatable) GetMilliCPU() int64
- func (x *GlanceAllocatable) GetStorage() int64
- func (*GlanceAllocatable) ProtoMessage()
- func (x *GlanceAllocatable) ProtoReflect() protoreflect.Message
- func (x *GlanceAllocatable) Reset()
- func (x *GlanceAllocatable) String() string
- type GlanceCPU
- type GlanceDirRep
- type GlanceDirReq
- type GlanceEntry
- func (*GlanceEntry) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceEntry) GetGroup() string
- func (x *GlanceEntry) GetIsDir() bool
- func (x *GlanceEntry) GetMode() string
- func (x *GlanceEntry) GetName() string
- func (x *GlanceEntry) GetSize() int64
- func (x *GlanceEntry) GetTime() string
- func (x *GlanceEntry) GetUser() string
- func (*GlanceEntry) ProtoMessage()
- func (x *GlanceEntry) ProtoReflect() protoreflect.Message
- func (x *GlanceEntry) Reset()
- func (x *GlanceEntry) String() string
- type GlanceFileRep
- func (*GlanceFileRep) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceFileRep) GetContent() string
- func (x *GlanceFileRep) GetReadable() bool
- func (*GlanceFileRep) ProtoMessage()
- func (x *GlanceFileRep) ProtoReflect() protoreflect.Message
- func (x *GlanceFileRep) Reset()
- func (x *GlanceFileRep) String() string
- type GlanceFileReq
- func (*GlanceFileReq) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceFileReq) GetMaxSize() int64
- func (x *GlanceFileReq) GetPath() string
- func (*GlanceFileReq) ProtoMessage()
- func (x *GlanceFileReq) ProtoReflect() protoreflect.Message
- func (x *GlanceFileReq) Reset()
- func (x *GlanceFileReq) String() string
- type GlanceMemory
- func (*GlanceMemory) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceMemory) GetTotal() string
- func (x *GlanceMemory) GetUsed() string
- func (*GlanceMemory) ProtoMessage()
- func (x *GlanceMemory) ProtoReflect() protoreflect.Message
- func (x *GlanceMemory) Reset()
- func (x *GlanceMemory) String() string
- type GlanceMetadata
- type GlanceReply
- func (*GlanceReply) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceReply) GetDir() *GlanceDirRep
- func (x *GlanceReply) GetError() string
- func (x *GlanceReply) GetFile() *GlanceFileRep
- func (x *GlanceReply) GetSys() *GlanceSysRep
- func (*GlanceReply) ProtoMessage()
- func (x *GlanceReply) ProtoReflect() protoreflect.Message
- func (x *GlanceReply) Reset()
- func (x *GlanceReply) String() string
- type GlanceRequest
- func (*GlanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceRequest) GetApiVersion() string
- func (x *GlanceRequest) GetKind() string
- func (x *GlanceRequest) GetMetadata() *GlanceMetadata
- func (x *GlanceRequest) GetSpec() *GlanceSpec
- func (*GlanceRequest) ProtoMessage()
- func (x *GlanceRequest) ProtoReflect() protoreflect.Message
- func (x *GlanceRequest) Reset()
- func (x *GlanceRequest) String() string
- type GlanceRequested
- func (*GlanceRequested) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceRequested) GetMemory() int64
- func (x *GlanceRequested) GetMilliCPU() int64
- func (x *GlanceRequested) GetStorage() int64
- func (*GlanceRequested) ProtoMessage()
- func (x *GlanceRequested) ProtoReflect() protoreflect.Message
- func (x *GlanceRequested) Reset()
- func (x *GlanceRequested) String() string
- type GlanceResource
- func (*GlanceResource) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceResource) GetAllocatable() *GlanceAllocatable
- func (x *GlanceResource) GetRequested() *GlanceRequested
- func (*GlanceResource) ProtoMessage()
- func (x *GlanceResource) ProtoReflect() protoreflect.Message
- func (x *GlanceResource) Reset()
- func (x *GlanceResource) String() string
- type GlanceSpec
- type GlanceStats
- func (*GlanceStats) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceStats) GetCpu() *GlanceCPU
- func (x *GlanceStats) GetHost() string
- func (x *GlanceStats) GetMemory() *GlanceMemory
- func (x *GlanceStats) GetOs() string
- func (x *GlanceStats) GetStorage() *GlanceStorage
- func (*GlanceStats) ProtoMessage()
- func (x *GlanceStats) ProtoReflect() protoreflect.Message
- func (x *GlanceStats) Reset()
- func (x *GlanceStats) String() string
- type GlanceStorage
- func (*GlanceStorage) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceStorage) GetTotal() string
- func (x *GlanceStorage) GetUsed() string
- func (*GlanceStorage) ProtoMessage()
- func (x *GlanceStorage) ProtoReflect() protoreflect.Message
- func (x *GlanceStorage) Reset()
- func (x *GlanceStorage) String() string
- type GlanceSysRep
- func (*GlanceSysRep) Descriptor() ([]byte, []int)deprecated
- func (x *GlanceSysRep) GetResource() *GlanceResource
- func (x *GlanceSysRep) GetStats() *GlanceStats
- func (*GlanceSysRep) ProtoMessage()
- func (x *GlanceSysRep) ProtoReflect() protoreflect.Message
- func (x *GlanceSysRep) Reset()
- func (x *GlanceSysRep) String() string
- type GlanceSysReq
- type ServerProtoClient
- type ServerProtoServer
- type ServerProto_SendGlanceClient
- type ServerProto_SendGlanceServer
- type ServerProto_SendTaskClient
- type ServerProto_SendTaskServer
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetCommands() []string
- func (x *Task) GetFile() *TaskFile
- func (x *Task) GetLog() *TaskLog
- func (x *Task) GetName() string
- func (x *Task) GetParams() []*TaskParam
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type TaskFile
- type TaskLog
- type TaskMetadata
- type TaskOutput
- func (*TaskOutput) Descriptor() ([]byte, []int)deprecated
- func (x *TaskOutput) GetMessage() string
- func (x *TaskOutput) GetPos() int64
- func (x *TaskOutput) GetTime() int64
- func (*TaskOutput) ProtoMessage()
- func (x *TaskOutput) ProtoReflect() protoreflect.Message
- func (x *TaskOutput) Reset()
- func (x *TaskOutput) String() string
- type TaskParam
- type TaskReply
- type TaskRequest
- func (*TaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TaskRequest) GetApiVersion() string
- func (x *TaskRequest) GetKind() string
- func (x *TaskRequest) GetMetadata() *TaskMetadata
- func (x *TaskRequest) GetSpec() *TaskSpec
- func (*TaskRequest) ProtoMessage()
- func (x *TaskRequest) ProtoReflect() protoreflect.Message
- func (x *TaskRequest) Reset()
- func (x *TaskRequest) String() string
- type TaskSpec
- type UnimplementedServerProtoServer
- type UnsafeServerProtoServer
Constants ¶
const ( ServerProto_SendTask_FullMethodName = "/runner.ServerProto/SendTask" ServerProto_SendGlance_FullMethodName = "/runner.ServerProto/SendGlance" )
Variables ¶
var File_runner_proto_runner_proto protoreflect.FileDescriptor
var ServerProto_ServiceDesc = grpc.ServiceDesc{ ServiceName: "runner.ServerProto", HandlerType: (*ServerProtoServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "SendTask", Handler: _ServerProto_SendTask_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "SendGlance", Handler: _ServerProto_SendGlance_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "runner/proto/runner.proto", }
ServerProto_ServiceDesc is the grpc.ServiceDesc for ServerProto service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerProtoServer ¶
func RegisterServerProtoServer(s grpc.ServiceRegistrar, srv ServerProtoServer)
Types ¶
type Glance ¶ added in v1.28.0
type Glance struct { Dir *GlanceDirReq `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"` File *GlanceFileReq `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` Sys *GlanceSysReq `protobuf:"bytes,3,opt,name=sys,proto3" json:"sys,omitempty"` // contains filtered or unexported fields }
func (*Glance) Descriptor
deprecated
added in
v1.28.0
func (*Glance) GetDir ¶ added in v1.28.0
func (x *Glance) GetDir() *GlanceDirReq
func (*Glance) GetFile ¶ added in v1.28.0
func (x *Glance) GetFile() *GlanceFileReq
func (*Glance) GetSys ¶ added in v1.28.0
func (x *Glance) GetSys() *GlanceSysReq
func (*Glance) ProtoMessage ¶ added in v1.28.0
func (*Glance) ProtoMessage()
func (*Glance) ProtoReflect ¶ added in v1.28.0
func (x *Glance) ProtoReflect() protoreflect.Message
type GlanceAllocatable ¶ added in v1.28.0
type GlanceAllocatable struct { MilliCPU int64 `protobuf:"varint,1,opt,name=milliCPU,proto3" json:"milliCPU,omitempty"` Memory int64 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"` Storage int64 `protobuf:"varint,3,opt,name=storage,proto3" json:"storage,omitempty"` // contains filtered or unexported fields }
func (*GlanceAllocatable) Descriptor
deprecated
added in
v1.28.0
func (*GlanceAllocatable) Descriptor() ([]byte, []int)
Deprecated: Use GlanceAllocatable.ProtoReflect.Descriptor instead.
func (*GlanceAllocatable) GetMemory ¶ added in v1.28.0
func (x *GlanceAllocatable) GetMemory() int64
func (*GlanceAllocatable) GetMilliCPU ¶ added in v1.28.0
func (x *GlanceAllocatable) GetMilliCPU() int64
func (*GlanceAllocatable) GetStorage ¶ added in v1.28.0
func (x *GlanceAllocatable) GetStorage() int64
func (*GlanceAllocatable) ProtoMessage ¶ added in v1.28.0
func (*GlanceAllocatable) ProtoMessage()
func (*GlanceAllocatable) ProtoReflect ¶ added in v1.28.0
func (x *GlanceAllocatable) ProtoReflect() protoreflect.Message
func (*GlanceAllocatable) Reset ¶ added in v1.28.0
func (x *GlanceAllocatable) Reset()
func (*GlanceAllocatable) String ¶ added in v1.28.0
func (x *GlanceAllocatable) String() string
type GlanceCPU ¶ added in v1.28.0
type GlanceCPU struct { Total string `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"` Used string `protobuf:"bytes,2,opt,name=used,proto3" json:"used,omitempty"` // contains filtered or unexported fields }
func (*GlanceCPU) Descriptor
deprecated
added in
v1.28.0
func (*GlanceCPU) ProtoMessage ¶ added in v1.28.0
func (*GlanceCPU) ProtoMessage()
func (*GlanceCPU) ProtoReflect ¶ added in v1.28.0
func (x *GlanceCPU) ProtoReflect() protoreflect.Message
type GlanceDirRep ¶ added in v1.28.0
type GlanceDirRep struct { Entries []*GlanceEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
func (*GlanceDirRep) Descriptor
deprecated
added in
v1.28.0
func (*GlanceDirRep) Descriptor() ([]byte, []int)
Deprecated: Use GlanceDirRep.ProtoReflect.Descriptor instead.
func (*GlanceDirRep) GetEntries ¶ added in v1.28.0
func (x *GlanceDirRep) GetEntries() []*GlanceEntry
func (*GlanceDirRep) ProtoMessage ¶ added in v1.28.0
func (*GlanceDirRep) ProtoMessage()
func (*GlanceDirRep) ProtoReflect ¶ added in v1.28.0
func (x *GlanceDirRep) ProtoReflect() protoreflect.Message
func (*GlanceDirRep) Reset ¶ added in v1.28.0
func (x *GlanceDirRep) Reset()
func (*GlanceDirRep) String ¶ added in v1.28.0
func (x *GlanceDirRep) String() string
type GlanceDirReq ¶ added in v1.28.0
type GlanceDirReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*GlanceDirReq) Descriptor
deprecated
added in
v1.28.0
func (*GlanceDirReq) Descriptor() ([]byte, []int)
Deprecated: Use GlanceDirReq.ProtoReflect.Descriptor instead.
func (*GlanceDirReq) GetPath ¶ added in v1.28.0
func (x *GlanceDirReq) GetPath() string
func (*GlanceDirReq) ProtoMessage ¶ added in v1.28.0
func (*GlanceDirReq) ProtoMessage()
func (*GlanceDirReq) ProtoReflect ¶ added in v1.28.0
func (x *GlanceDirReq) ProtoReflect() protoreflect.Message
func (*GlanceDirReq) Reset ¶ added in v1.28.0
func (x *GlanceDirReq) Reset()
func (*GlanceDirReq) String ¶ added in v1.28.0
func (x *GlanceDirReq) String() string
type GlanceEntry ¶ added in v1.28.0
type GlanceEntry struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` IsDir bool `protobuf:"varint,2,opt,name=isDir,proto3" json:"isDir,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Time string `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` Group string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"` Mode string `protobuf:"bytes,7,opt,name=mode,proto3" json:"mode,omitempty"` // contains filtered or unexported fields }
func (*GlanceEntry) Descriptor
deprecated
added in
v1.28.0
func (*GlanceEntry) Descriptor() ([]byte, []int)
Deprecated: Use GlanceEntry.ProtoReflect.Descriptor instead.
func (*GlanceEntry) GetGroup ¶ added in v1.28.0
func (x *GlanceEntry) GetGroup() string
func (*GlanceEntry) GetIsDir ¶ added in v1.28.0
func (x *GlanceEntry) GetIsDir() bool
func (*GlanceEntry) GetMode ¶ added in v1.28.0
func (x *GlanceEntry) GetMode() string
func (*GlanceEntry) GetName ¶ added in v1.28.0
func (x *GlanceEntry) GetName() string
func (*GlanceEntry) GetSize ¶ added in v1.28.0
func (x *GlanceEntry) GetSize() int64
func (*GlanceEntry) GetTime ¶ added in v1.28.0
func (x *GlanceEntry) GetTime() string
func (*GlanceEntry) GetUser ¶ added in v1.28.0
func (x *GlanceEntry) GetUser() string
func (*GlanceEntry) ProtoMessage ¶ added in v1.28.0
func (*GlanceEntry) ProtoMessage()
func (*GlanceEntry) ProtoReflect ¶ added in v1.28.0
func (x *GlanceEntry) ProtoReflect() protoreflect.Message
func (*GlanceEntry) Reset ¶ added in v1.28.0
func (x *GlanceEntry) Reset()
func (*GlanceEntry) String ¶ added in v1.28.0
func (x *GlanceEntry) String() string
type GlanceFileRep ¶ added in v1.28.0
type GlanceFileRep struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Readable bool `protobuf:"varint,2,opt,name=readable,proto3" json:"readable,omitempty"` // contains filtered or unexported fields }
func (*GlanceFileRep) Descriptor
deprecated
added in
v1.28.0
func (*GlanceFileRep) Descriptor() ([]byte, []int)
Deprecated: Use GlanceFileRep.ProtoReflect.Descriptor instead.
func (*GlanceFileRep) GetContent ¶ added in v1.28.0
func (x *GlanceFileRep) GetContent() string
func (*GlanceFileRep) GetReadable ¶ added in v1.28.0
func (x *GlanceFileRep) GetReadable() bool
func (*GlanceFileRep) ProtoMessage ¶ added in v1.28.0
func (*GlanceFileRep) ProtoMessage()
func (*GlanceFileRep) ProtoReflect ¶ added in v1.28.0
func (x *GlanceFileRep) ProtoReflect() protoreflect.Message
func (*GlanceFileRep) Reset ¶ added in v1.28.0
func (x *GlanceFileRep) Reset()
func (*GlanceFileRep) String ¶ added in v1.28.0
func (x *GlanceFileRep) String() string
type GlanceFileReq ¶ added in v1.28.0
type GlanceFileReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` MaxSize int64 `protobuf:"varint,2,opt,name=maxSize,proto3" json:"maxSize,omitempty"` // contains filtered or unexported fields }
func (*GlanceFileReq) Descriptor
deprecated
added in
v1.28.0
func (*GlanceFileReq) Descriptor() ([]byte, []int)
Deprecated: Use GlanceFileReq.ProtoReflect.Descriptor instead.
func (*GlanceFileReq) GetMaxSize ¶ added in v1.28.0
func (x *GlanceFileReq) GetMaxSize() int64
func (*GlanceFileReq) GetPath ¶ added in v1.28.0
func (x *GlanceFileReq) GetPath() string
func (*GlanceFileReq) ProtoMessage ¶ added in v1.28.0
func (*GlanceFileReq) ProtoMessage()
func (*GlanceFileReq) ProtoReflect ¶ added in v1.28.0
func (x *GlanceFileReq) ProtoReflect() protoreflect.Message
func (*GlanceFileReq) Reset ¶ added in v1.28.0
func (x *GlanceFileReq) Reset()
func (*GlanceFileReq) String ¶ added in v1.28.0
func (x *GlanceFileReq) String() string
type GlanceMemory ¶ added in v1.28.0
type GlanceMemory struct { Total string `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"` Used string `protobuf:"bytes,2,opt,name=used,proto3" json:"used,omitempty"` // contains filtered or unexported fields }
func (*GlanceMemory) Descriptor
deprecated
added in
v1.28.0
func (*GlanceMemory) Descriptor() ([]byte, []int)
Deprecated: Use GlanceMemory.ProtoReflect.Descriptor instead.
func (*GlanceMemory) GetTotal ¶ added in v1.28.0
func (x *GlanceMemory) GetTotal() string
func (*GlanceMemory) GetUsed ¶ added in v1.28.0
func (x *GlanceMemory) GetUsed() string
func (*GlanceMemory) ProtoMessage ¶ added in v1.28.0
func (*GlanceMemory) ProtoMessage()
func (*GlanceMemory) ProtoReflect ¶ added in v1.28.0
func (x *GlanceMemory) ProtoReflect() protoreflect.Message
func (*GlanceMemory) Reset ¶ added in v1.28.0
func (x *GlanceMemory) Reset()
func (*GlanceMemory) String ¶ added in v1.28.0
func (x *GlanceMemory) String() string
type GlanceMetadata ¶ added in v1.28.0
type GlanceMetadata struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GlanceMetadata) Descriptor
deprecated
added in
v1.28.0
func (*GlanceMetadata) Descriptor() ([]byte, []int)
Deprecated: Use GlanceMetadata.ProtoReflect.Descriptor instead.
func (*GlanceMetadata) GetName ¶ added in v1.28.0
func (x *GlanceMetadata) GetName() string
func (*GlanceMetadata) ProtoMessage ¶ added in v1.28.0
func (*GlanceMetadata) ProtoMessage()
func (*GlanceMetadata) ProtoReflect ¶ added in v1.28.0
func (x *GlanceMetadata) ProtoReflect() protoreflect.Message
func (*GlanceMetadata) Reset ¶ added in v1.28.0
func (x *GlanceMetadata) Reset()
func (*GlanceMetadata) String ¶ added in v1.28.0
func (x *GlanceMetadata) String() string
type GlanceReply ¶ added in v1.28.0
type GlanceReply struct { Dir *GlanceDirRep `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"` File *GlanceFileRep `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` Sys *GlanceSysRep `protobuf:"bytes,3,opt,name=sys,proto3" json:"sys,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*GlanceReply) Descriptor
deprecated
added in
v1.28.0
func (*GlanceReply) Descriptor() ([]byte, []int)
Deprecated: Use GlanceReply.ProtoReflect.Descriptor instead.
func (*GlanceReply) GetDir ¶ added in v1.28.0
func (x *GlanceReply) GetDir() *GlanceDirRep
func (*GlanceReply) GetError ¶ added in v1.28.0
func (x *GlanceReply) GetError() string
func (*GlanceReply) GetFile ¶ added in v1.28.0
func (x *GlanceReply) GetFile() *GlanceFileRep
func (*GlanceReply) GetSys ¶ added in v1.28.0
func (x *GlanceReply) GetSys() *GlanceSysRep
func (*GlanceReply) ProtoMessage ¶ added in v1.28.0
func (*GlanceReply) ProtoMessage()
func (*GlanceReply) ProtoReflect ¶ added in v1.28.0
func (x *GlanceReply) ProtoReflect() protoreflect.Message
func (*GlanceReply) Reset ¶ added in v1.28.0
func (x *GlanceReply) Reset()
func (*GlanceReply) String ¶ added in v1.28.0
func (x *GlanceReply) String() string
type GlanceRequest ¶ added in v1.28.0
type GlanceRequest struct { ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Metadata *GlanceMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` Spec *GlanceSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
func (*GlanceRequest) Descriptor
deprecated
added in
v1.28.0
func (*GlanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GlanceRequest.ProtoReflect.Descriptor instead.
func (*GlanceRequest) GetApiVersion ¶ added in v1.28.0
func (x *GlanceRequest) GetApiVersion() string
func (*GlanceRequest) GetKind ¶ added in v1.28.0
func (x *GlanceRequest) GetKind() string
func (*GlanceRequest) GetMetadata ¶ added in v1.28.0
func (x *GlanceRequest) GetMetadata() *GlanceMetadata
func (*GlanceRequest) GetSpec ¶ added in v1.28.0
func (x *GlanceRequest) GetSpec() *GlanceSpec
func (*GlanceRequest) ProtoMessage ¶ added in v1.28.0
func (*GlanceRequest) ProtoMessage()
func (*GlanceRequest) ProtoReflect ¶ added in v1.28.0
func (x *GlanceRequest) ProtoReflect() protoreflect.Message
func (*GlanceRequest) Reset ¶ added in v1.28.0
func (x *GlanceRequest) Reset()
func (*GlanceRequest) String ¶ added in v1.28.0
func (x *GlanceRequest) String() string
type GlanceRequested ¶ added in v1.28.0
type GlanceRequested struct { MilliCPU int64 `protobuf:"varint,1,opt,name=milliCPU,proto3" json:"milliCPU,omitempty"` Memory int64 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"` Storage int64 `protobuf:"varint,3,opt,name=storage,proto3" json:"storage,omitempty"` // contains filtered or unexported fields }
func (*GlanceRequested) Descriptor
deprecated
added in
v1.28.0
func (*GlanceRequested) Descriptor() ([]byte, []int)
Deprecated: Use GlanceRequested.ProtoReflect.Descriptor instead.
func (*GlanceRequested) GetMemory ¶ added in v1.28.0
func (x *GlanceRequested) GetMemory() int64
func (*GlanceRequested) GetMilliCPU ¶ added in v1.28.0
func (x *GlanceRequested) GetMilliCPU() int64
func (*GlanceRequested) GetStorage ¶ added in v1.28.0
func (x *GlanceRequested) GetStorage() int64
func (*GlanceRequested) ProtoMessage ¶ added in v1.28.0
func (*GlanceRequested) ProtoMessage()
func (*GlanceRequested) ProtoReflect ¶ added in v1.28.0
func (x *GlanceRequested) ProtoReflect() protoreflect.Message
func (*GlanceRequested) Reset ¶ added in v1.28.0
func (x *GlanceRequested) Reset()
func (*GlanceRequested) String ¶ added in v1.28.0
func (x *GlanceRequested) String() string
type GlanceResource ¶ added in v1.28.0
type GlanceResource struct { Allocatable *GlanceAllocatable `protobuf:"bytes,1,opt,name=allocatable,proto3" json:"allocatable,omitempty"` Requested *GlanceRequested `protobuf:"bytes,2,opt,name=requested,proto3" json:"requested,omitempty"` // contains filtered or unexported fields }
func (*GlanceResource) Descriptor
deprecated
added in
v1.28.0
func (*GlanceResource) Descriptor() ([]byte, []int)
Deprecated: Use GlanceResource.ProtoReflect.Descriptor instead.
func (*GlanceResource) GetAllocatable ¶ added in v1.28.0
func (x *GlanceResource) GetAllocatable() *GlanceAllocatable
func (*GlanceResource) GetRequested ¶ added in v1.28.0
func (x *GlanceResource) GetRequested() *GlanceRequested
func (*GlanceResource) ProtoMessage ¶ added in v1.28.0
func (*GlanceResource) ProtoMessage()
func (*GlanceResource) ProtoReflect ¶ added in v1.28.0
func (x *GlanceResource) ProtoReflect() protoreflect.Message
func (*GlanceResource) Reset ¶ added in v1.28.0
func (x *GlanceResource) Reset()
func (*GlanceResource) String ¶ added in v1.28.0
func (x *GlanceResource) String() string
type GlanceSpec ¶ added in v1.28.0
type GlanceSpec struct { Glance *Glance `protobuf:"bytes,1,opt,name=glance,proto3" json:"glance,omitempty"` // contains filtered or unexported fields }
func (*GlanceSpec) Descriptor
deprecated
added in
v1.28.0
func (*GlanceSpec) Descriptor() ([]byte, []int)
Deprecated: Use GlanceSpec.ProtoReflect.Descriptor instead.
func (*GlanceSpec) GetGlance ¶ added in v1.28.0
func (x *GlanceSpec) GetGlance() *Glance
func (*GlanceSpec) ProtoMessage ¶ added in v1.28.0
func (*GlanceSpec) ProtoMessage()
func (*GlanceSpec) ProtoReflect ¶ added in v1.28.0
func (x *GlanceSpec) ProtoReflect() protoreflect.Message
func (*GlanceSpec) Reset ¶ added in v1.28.0
func (x *GlanceSpec) Reset()
func (*GlanceSpec) String ¶ added in v1.28.0
func (x *GlanceSpec) String() string
type GlanceStats ¶ added in v1.28.0
type GlanceStats struct { Cpu *GlanceCPU `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Memory *GlanceMemory `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"` Os string `protobuf:"bytes,4,opt,name=os,proto3" json:"os,omitempty"` Storage *GlanceStorage `protobuf:"bytes,5,opt,name=storage,proto3" json:"storage,omitempty"` // contains filtered or unexported fields }
func (*GlanceStats) Descriptor
deprecated
added in
v1.28.0
func (*GlanceStats) Descriptor() ([]byte, []int)
Deprecated: Use GlanceStats.ProtoReflect.Descriptor instead.
func (*GlanceStats) GetCpu ¶ added in v1.28.0
func (x *GlanceStats) GetCpu() *GlanceCPU
func (*GlanceStats) GetHost ¶ added in v1.28.0
func (x *GlanceStats) GetHost() string
func (*GlanceStats) GetMemory ¶ added in v1.28.0
func (x *GlanceStats) GetMemory() *GlanceMemory
func (*GlanceStats) GetOs ¶ added in v1.28.0
func (x *GlanceStats) GetOs() string
func (*GlanceStats) GetStorage ¶ added in v1.28.0
func (x *GlanceStats) GetStorage() *GlanceStorage
func (*GlanceStats) ProtoMessage ¶ added in v1.28.0
func (*GlanceStats) ProtoMessage()
func (*GlanceStats) ProtoReflect ¶ added in v1.28.0
func (x *GlanceStats) ProtoReflect() protoreflect.Message
func (*GlanceStats) Reset ¶ added in v1.28.0
func (x *GlanceStats) Reset()
func (*GlanceStats) String ¶ added in v1.28.0
func (x *GlanceStats) String() string
type GlanceStorage ¶ added in v1.28.0
type GlanceStorage struct { Total string `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"` Used string `protobuf:"bytes,2,opt,name=used,proto3" json:"used,omitempty"` // contains filtered or unexported fields }
func (*GlanceStorage) Descriptor
deprecated
added in
v1.28.0
func (*GlanceStorage) Descriptor() ([]byte, []int)
Deprecated: Use GlanceStorage.ProtoReflect.Descriptor instead.
func (*GlanceStorage) GetTotal ¶ added in v1.28.0
func (x *GlanceStorage) GetTotal() string
func (*GlanceStorage) GetUsed ¶ added in v1.28.0
func (x *GlanceStorage) GetUsed() string
func (*GlanceStorage) ProtoMessage ¶ added in v1.28.0
func (*GlanceStorage) ProtoMessage()
func (*GlanceStorage) ProtoReflect ¶ added in v1.28.0
func (x *GlanceStorage) ProtoReflect() protoreflect.Message
func (*GlanceStorage) Reset ¶ added in v1.28.0
func (x *GlanceStorage) Reset()
func (*GlanceStorage) String ¶ added in v1.28.0
func (x *GlanceStorage) String() string
type GlanceSysRep ¶ added in v1.28.0
type GlanceSysRep struct { Resource *GlanceResource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Stats *GlanceStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*GlanceSysRep) Descriptor
deprecated
added in
v1.28.0
func (*GlanceSysRep) Descriptor() ([]byte, []int)
Deprecated: Use GlanceSysRep.ProtoReflect.Descriptor instead.
func (*GlanceSysRep) GetResource ¶ added in v1.28.0
func (x *GlanceSysRep) GetResource() *GlanceResource
func (*GlanceSysRep) GetStats ¶ added in v1.28.0
func (x *GlanceSysRep) GetStats() *GlanceStats
func (*GlanceSysRep) ProtoMessage ¶ added in v1.28.0
func (*GlanceSysRep) ProtoMessage()
func (*GlanceSysRep) ProtoReflect ¶ added in v1.28.0
func (x *GlanceSysRep) ProtoReflect() protoreflect.Message
func (*GlanceSysRep) Reset ¶ added in v1.28.0
func (x *GlanceSysRep) Reset()
func (*GlanceSysRep) String ¶ added in v1.28.0
func (x *GlanceSysRep) String() string
type GlanceSysReq ¶ added in v1.28.0
type GlanceSysReq struct { Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` // contains filtered or unexported fields }
func (*GlanceSysReq) Descriptor
deprecated
added in
v1.28.0
func (*GlanceSysReq) Descriptor() ([]byte, []int)
Deprecated: Use GlanceSysReq.ProtoReflect.Descriptor instead.
func (*GlanceSysReq) GetEnable ¶ added in v1.28.0
func (x *GlanceSysReq) GetEnable() bool
func (*GlanceSysReq) ProtoMessage ¶ added in v1.28.0
func (*GlanceSysReq) ProtoMessage()
func (*GlanceSysReq) ProtoReflect ¶ added in v1.28.0
func (x *GlanceSysReq) ProtoReflect() protoreflect.Message
func (*GlanceSysReq) Reset ¶ added in v1.28.0
func (x *GlanceSysReq) Reset()
func (*GlanceSysReq) String ¶ added in v1.28.0
func (x *GlanceSysReq) String() string
type ServerProtoClient ¶
type ServerProtoClient interface { SendTask(ctx context.Context, opts ...grpc.CallOption) (ServerProto_SendTaskClient, error) SendGlance(ctx context.Context, opts ...grpc.CallOption) (ServerProto_SendGlanceClient, error) }
ServerProtoClient is the client API for ServerProto 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 NewServerProtoClient ¶
func NewServerProtoClient(cc grpc.ClientConnInterface) ServerProtoClient
type ServerProtoServer ¶
type ServerProtoServer interface { SendTask(ServerProto_SendTaskServer) error SendGlance(ServerProto_SendGlanceServer) error // contains filtered or unexported methods }
ServerProtoServer is the server API for ServerProto service. All implementations must embed UnimplementedServerProtoServer for forward compatibility
type ServerProto_SendGlanceClient ¶ added in v1.28.0
type ServerProto_SendGlanceClient interface { Send(*GlanceRequest) error Recv() (*GlanceReply, error) grpc.ClientStream }
type ServerProto_SendGlanceServer ¶ added in v1.28.0
type ServerProto_SendGlanceServer interface { Send(*GlanceReply) error Recv() (*GlanceRequest, error) grpc.ServerStream }
type ServerProto_SendTaskClient ¶ added in v1.28.0
type ServerProto_SendTaskClient interface { Send(*TaskRequest) error Recv() (*TaskReply, error) grpc.ClientStream }
type ServerProto_SendTaskServer ¶ added in v1.28.0
type ServerProto_SendTaskServer interface { Send(*TaskReply) error Recv() (*TaskRequest, error) grpc.ServerStream }
type Task ¶
type Task struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` File *TaskFile `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` Params []*TaskParam `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` Commands []string `protobuf:"bytes,4,rep,name=commands,proto3" json:"commands,omitempty"` Log *TaskLog `protobuf:"bytes,5,opt,name=log,proto3" json:"log,omitempty"` // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) GetCommands ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type TaskFile ¶ added in v1.28.0
type TaskFile struct { Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Gzip bool `protobuf:"varint,2,opt,name=gzip,proto3" json:"gzip,omitempty"` // contains filtered or unexported fields }
func (*TaskFile) Descriptor
deprecated
added in
v1.28.0
func (*TaskFile) GetContent ¶ added in v1.28.0
func (*TaskFile) ProtoMessage ¶ added in v1.28.0
func (*TaskFile) ProtoMessage()
func (*TaskFile) ProtoReflect ¶ added in v1.28.0
func (x *TaskFile) ProtoReflect() protoreflect.Message
type TaskLog ¶ added in v1.30.0
type TaskLog struct { Width int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` // contains filtered or unexported fields }
func (*TaskLog) Descriptor
deprecated
added in
v1.30.0
func (*TaskLog) ProtoMessage ¶ added in v1.30.0
func (*TaskLog) ProtoMessage()
func (*TaskLog) ProtoReflect ¶ added in v1.30.0
func (x *TaskLog) ProtoReflect() protoreflect.Message
type TaskMetadata ¶ added in v1.28.0
type TaskMetadata struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*TaskMetadata) Descriptor
deprecated
added in
v1.28.0
func (*TaskMetadata) Descriptor() ([]byte, []int)
Deprecated: Use TaskMetadata.ProtoReflect.Descriptor instead.
func (*TaskMetadata) GetName ¶ added in v1.28.0
func (x *TaskMetadata) GetName() string
func (*TaskMetadata) ProtoMessage ¶ added in v1.28.0
func (*TaskMetadata) ProtoMessage()
func (*TaskMetadata) ProtoReflect ¶ added in v1.28.0
func (x *TaskMetadata) ProtoReflect() protoreflect.Message
func (*TaskMetadata) Reset ¶ added in v1.28.0
func (x *TaskMetadata) Reset()
func (*TaskMetadata) String ¶ added in v1.28.0
func (x *TaskMetadata) String() string
type TaskOutput ¶ added in v1.28.0
type TaskOutput struct { Pos int64 `protobuf:"varint,1,opt,name=pos,proto3" json:"pos,omitempty"` Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TaskOutput) Descriptor
deprecated
added in
v1.28.0
func (*TaskOutput) Descriptor() ([]byte, []int)
Deprecated: Use TaskOutput.ProtoReflect.Descriptor instead.
func (*TaskOutput) GetMessage ¶ added in v1.28.0
func (x *TaskOutput) GetMessage() string
func (*TaskOutput) GetPos ¶ added in v1.28.0
func (x *TaskOutput) GetPos() int64
func (*TaskOutput) GetTime ¶ added in v1.28.0
func (x *TaskOutput) GetTime() int64
func (*TaskOutput) ProtoMessage ¶ added in v1.28.0
func (*TaskOutput) ProtoMessage()
func (*TaskOutput) ProtoReflect ¶ added in v1.28.0
func (x *TaskOutput) ProtoReflect() protoreflect.Message
func (*TaskOutput) Reset ¶ added in v1.28.0
func (x *TaskOutput) Reset()
func (*TaskOutput) String ¶ added in v1.28.0
func (x *TaskOutput) String() string
type TaskParam ¶ added in v1.28.0
type TaskParam struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TaskParam) Descriptor
deprecated
added in
v1.28.0
func (*TaskParam) ProtoMessage ¶ added in v1.28.0
func (*TaskParam) ProtoMessage()
func (*TaskParam) ProtoReflect ¶ added in v1.28.0
func (x *TaskParam) ProtoReflect() protoreflect.Message
type TaskReply ¶ added in v1.28.0
type TaskReply struct { Output *TaskOutput `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*TaskReply) Descriptor
deprecated
added in
v1.28.0
func (*TaskReply) GetOutput ¶ added in v1.28.0
func (x *TaskReply) GetOutput() *TaskOutput
func (*TaskReply) ProtoMessage ¶ added in v1.28.0
func (*TaskReply) ProtoMessage()
func (*TaskReply) ProtoReflect ¶ added in v1.28.0
func (x *TaskReply) ProtoReflect() protoreflect.Message
type TaskRequest ¶ added in v1.28.0
type TaskRequest struct { ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Metadata *TaskMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` Spec *TaskSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
func (*TaskRequest) Descriptor
deprecated
added in
v1.28.0
func (*TaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use TaskRequest.ProtoReflect.Descriptor instead.
func (*TaskRequest) GetApiVersion ¶ added in v1.28.0
func (x *TaskRequest) GetApiVersion() string
func (*TaskRequest) GetKind ¶ added in v1.28.0
func (x *TaskRequest) GetKind() string
func (*TaskRequest) GetMetadata ¶ added in v1.28.0
func (x *TaskRequest) GetMetadata() *TaskMetadata
func (*TaskRequest) GetSpec ¶ added in v1.28.0
func (x *TaskRequest) GetSpec() *TaskSpec
func (*TaskRequest) ProtoMessage ¶ added in v1.28.0
func (*TaskRequest) ProtoMessage()
func (*TaskRequest) ProtoReflect ¶ added in v1.28.0
func (x *TaskRequest) ProtoReflect() protoreflect.Message
func (*TaskRequest) Reset ¶ added in v1.28.0
func (x *TaskRequest) Reset()
func (*TaskRequest) String ¶ added in v1.28.0
func (x *TaskRequest) String() string
type TaskSpec ¶ added in v1.28.0
type TaskSpec struct { Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` // contains filtered or unexported fields }
func (*TaskSpec) Descriptor
deprecated
added in
v1.28.0
func (*TaskSpec) ProtoMessage ¶ added in v1.28.0
func (*TaskSpec) ProtoMessage()
func (*TaskSpec) ProtoReflect ¶ added in v1.28.0
func (x *TaskSpec) ProtoReflect() protoreflect.Message
type UnimplementedServerProtoServer ¶
type UnimplementedServerProtoServer struct { }
UnimplementedServerProtoServer must be embedded to have forward compatible implementations.
func (UnimplementedServerProtoServer) SendGlance ¶ added in v1.28.0
func (UnimplementedServerProtoServer) SendGlance(ServerProto_SendGlanceServer) error
func (UnimplementedServerProtoServer) SendTask ¶ added in v1.28.0
func (UnimplementedServerProtoServer) SendTask(ServerProto_SendTaskServer) error
type UnsafeServerProtoServer ¶
type UnsafeServerProtoServer interface {
// contains filtered or unexported methods
}
UnsafeServerProtoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerProtoServer will result in compilation errors.