Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServerProtoServer(s grpc.ServiceRegistrar, srv ServerProtoServer)
- type AllocatableResource
- func (*AllocatableResource) Descriptor() ([]byte, []int)deprecated
- func (x *AllocatableResource) GetMemory() int64
- func (x *AllocatableResource) GetMilliCPU() int64
- func (x *AllocatableResource) GetStorage() int64
- func (*AllocatableResource) ProtoMessage()
- func (x *AllocatableResource) ProtoReflect() protoreflect.Message
- func (x *AllocatableResource) Reset()
- func (x *AllocatableResource) String() string
- type Label
- type Metadata
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetAllocatableResource() *AllocatableResource
- func (x *Node) GetHost() string
- func (x *Node) GetLabel() string
- func (x *Node) GetName() string
- func (x *Node) GetRequestedResource() *RequestedResource
- func (x *Node) GetUnschedulable() bool
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type RequestedResource
- func (*RequestedResource) Descriptor() ([]byte, []int)deprecated
- func (x *RequestedResource) GetMemory() int64
- func (x *RequestedResource) GetMilliCPU() int64
- func (x *RequestedResource) GetStorage() int64
- func (*RequestedResource) ProtoMessage()
- func (x *RequestedResource) ProtoReflect() protoreflect.Message
- func (x *RequestedResource) Reset()
- func (x *RequestedResource) String() string
- type ServerProtoClient
- type ServerProtoServer
- type ServerReply
- type ServerRequest
- func (*ServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerRequest) GetApiVersion() string
- func (x *ServerRequest) GetKind() string
- func (x *ServerRequest) GetMetadata() *Metadata
- func (x *ServerRequest) GetSpec() *Spec
- func (*ServerRequest) ProtoMessage()
- func (x *ServerRequest) ProtoReflect() protoreflect.Message
- func (x *ServerRequest) Reset()
- func (x *ServerRequest) String() string
- type Spec
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetName() string
- func (x *Task) GetNodeName() string
- func (x *Task) GetNodeSelectors() []string
- func (x *Task) GetRequestedResource() *RequestedResource
- func (x *Task) GetToleratesUnschedulable() bool
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type UnimplementedServerProtoServer
- type UnsafeServerProtoServer
Constants ¶
const (
ServerProto_SendServer_FullMethodName = "/scheduler.ServerProto/SendServer"
)
Variables ¶
var File_scheduler_proto_scheduler_proto protoreflect.FileDescriptor
var ServerProto_ServiceDesc = grpc.ServiceDesc{ ServiceName: "scheduler.ServerProto", HandlerType: (*ServerProtoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendServer", Handler: _ServerProto_SendServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "scheduler/proto/scheduler.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 AllocatableResource ¶
type AllocatableResource 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 (*AllocatableResource) Descriptor
deprecated
func (*AllocatableResource) Descriptor() ([]byte, []int)
Deprecated: Use AllocatableResource.ProtoReflect.Descriptor instead.
func (*AllocatableResource) GetMemory ¶
func (x *AllocatableResource) GetMemory() int64
func (*AllocatableResource) GetMilliCPU ¶
func (x *AllocatableResource) GetMilliCPU() int64
func (*AllocatableResource) GetStorage ¶
func (x *AllocatableResource) GetStorage() int64
func (*AllocatableResource) ProtoMessage ¶
func (*AllocatableResource) ProtoMessage()
func (*AllocatableResource) ProtoReflect ¶
func (x *AllocatableResource) ProtoReflect() protoreflect.Message
func (*AllocatableResource) Reset ¶
func (x *AllocatableResource) Reset()
func (*AllocatableResource) String ¶
func (x *AllocatableResource) String() string
type Label ¶
type Label struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Label) Descriptor
deprecated
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
type Metadata ¶
type Metadata struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Node ¶
type Node struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` AllocatableResource *AllocatableResource `protobuf:"bytes,4,opt,name=allocatableResource,proto3" json:"allocatableResource,omitempty"` RequestedResource *RequestedResource `protobuf:"bytes,5,opt,name=requestedResource,proto3" json:"requestedResource,omitempty"` Unschedulable bool `protobuf:"varint,6,opt,name=unschedulable,proto3" json:"unschedulable,omitempty"` // contains filtered or unexported fields }
func (*Node) Descriptor
deprecated
func (*Node) GetAllocatableResource ¶
func (x *Node) GetAllocatableResource() *AllocatableResource
func (*Node) GetRequestedResource ¶
func (x *Node) GetRequestedResource() *RequestedResource
func (*Node) GetUnschedulable ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type RequestedResource ¶
type RequestedResource 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 (*RequestedResource) Descriptor
deprecated
func (*RequestedResource) Descriptor() ([]byte, []int)
Deprecated: Use RequestedResource.ProtoReflect.Descriptor instead.
func (*RequestedResource) GetMemory ¶
func (x *RequestedResource) GetMemory() int64
func (*RequestedResource) GetMilliCPU ¶
func (x *RequestedResource) GetMilliCPU() int64
func (*RequestedResource) GetStorage ¶
func (x *RequestedResource) GetStorage() int64
func (*RequestedResource) ProtoMessage ¶
func (*RequestedResource) ProtoMessage()
func (*RequestedResource) ProtoReflect ¶
func (x *RequestedResource) ProtoReflect() protoreflect.Message
func (*RequestedResource) Reset ¶
func (x *RequestedResource) Reset()
func (*RequestedResource) String ¶
func (x *RequestedResource) String() string
type ServerProtoClient ¶
type ServerProtoClient interface {
SendServer(ctx context.Context, in *ServerRequest, opts ...grpc.CallOption) (*ServerReply, 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.
The service definition.
func NewServerProtoClient ¶
func NewServerProtoClient(cc grpc.ClientConnInterface) ServerProtoClient
type ServerProtoServer ¶
type ServerProtoServer interface { SendServer(context.Context, *ServerRequest) (*ServerReply, error) // contains filtered or unexported methods }
ServerProtoServer is the server API for ServerProto service. All implementations must embed UnimplementedServerProtoServer for forward compatibility
The service definition.
type ServerReply ¶
type ServerReply struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
The response message.
func (*ServerReply) Descriptor
deprecated
func (*ServerReply) Descriptor() ([]byte, []int)
Deprecated: Use ServerReply.ProtoReflect.Descriptor instead.
func (*ServerReply) GetError ¶
func (x *ServerReply) GetError() string
func (*ServerReply) GetName ¶
func (x *ServerReply) GetName() string
func (*ServerReply) ProtoMessage ¶
func (*ServerReply) ProtoMessage()
func (*ServerReply) ProtoReflect ¶
func (x *ServerReply) ProtoReflect() protoreflect.Message
func (*ServerReply) Reset ¶
func (x *ServerReply) Reset()
func (*ServerReply) String ¶
func (x *ServerReply) String() string
type ServerRequest ¶
type ServerRequest 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 *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` Spec *Spec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
The request message.
func (*ServerRequest) Descriptor
deprecated
func (*ServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerRequest.ProtoReflect.Descriptor instead.
func (*ServerRequest) GetApiVersion ¶
func (x *ServerRequest) GetApiVersion() string
func (*ServerRequest) GetKind ¶
func (x *ServerRequest) GetKind() string
func (*ServerRequest) GetMetadata ¶
func (x *ServerRequest) GetMetadata() *Metadata
func (*ServerRequest) GetSpec ¶
func (x *ServerRequest) GetSpec() *Spec
func (*ServerRequest) ProtoMessage ¶
func (*ServerRequest) ProtoMessage()
func (*ServerRequest) ProtoReflect ¶
func (x *ServerRequest) ProtoReflect() protoreflect.Message
func (*ServerRequest) Reset ¶
func (x *ServerRequest) Reset()
func (*ServerRequest) String ¶
func (x *ServerRequest) String() string
type Spec ¶
type Spec struct { Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*Spec) Descriptor
deprecated
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) ProtoReflect ¶
func (x *Spec) ProtoReflect() protoreflect.Message
type Task ¶
type Task struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` NodeName string `protobuf:"bytes,2,opt,name=nodeName,proto3" json:"nodeName,omitempty"` NodeSelectors []string `protobuf:"bytes,3,rep,name=nodeSelectors,proto3" json:"nodeSelectors,omitempty"` RequestedResource *RequestedResource `protobuf:"bytes,4,opt,name=requestedResource,proto3" json:"requestedResource,omitempty"` ToleratesUnschedulable bool `protobuf:"varint,5,opt,name=toleratesUnschedulable,proto3" json:"toleratesUnschedulable,omitempty"` // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) GetNodeName ¶
func (*Task) GetNodeSelectors ¶ added in v1.16.0
func (*Task) GetRequestedResource ¶
func (x *Task) GetRequestedResource() *RequestedResource
func (*Task) GetToleratesUnschedulable ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type UnimplementedServerProtoServer ¶
type UnimplementedServerProtoServer struct { }
UnimplementedServerProtoServer must be embedded to have forward compatible implementations.
func (UnimplementedServerProtoServer) SendServer ¶
func (UnimplementedServerProtoServer) SendServer(context.Context, *ServerRequest) (*ServerReply, 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.