Documentation
¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type GetNodePodsRequest
- func (*GetNodePodsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNodePodsRequest) GetNodeName() string
- func (*GetNodePodsRequest) ProtoMessage()
- func (x *GetNodePodsRequest) ProtoReflect() protoreflect.Message
- func (x *GetNodePodsRequest) Reset()
- func (x *GetNodePodsRequest) String() string
- type GetNodePodsResponse
- func (*GetNodePodsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNodePodsResponse) GetPods() []*Pod
- func (*GetNodePodsResponse) ProtoMessage()
- func (x *GetNodePodsResponse) ProtoReflect() protoreflect.Message
- func (x *GetNodePodsResponse) Reset()
- func (x *GetNodePodsResponse) String() string
- type GetNodesRequest
- type GetNodesResponse
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetAllocateable() *model.Resources
- func (x *Node) GetNodeName() string
- func (x *Node) GetUsage() *model.Resources
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type Pod
- func (*Pod) Descriptor() ([]byte, []int)deprecated
- func (x *Pod) GetCapsuleName() string
- func (x *Pod) GetNamespace() string
- func (x *Pod) GetPodName() string
- func (x *Pod) GetRequested() *model.Resources
- func (*Pod) ProtoMessage()
- func (x *Pod) ProtoReflect() protoreflect.Message
- func (x *Pod) Reset()
- func (x *Pod) String() string
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_operator_api_v1_cluster_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.operator.cluster.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNodes", Handler: _Service_GetNodes_Handler, }, { MethodName: "GetNodePods", Handler: _Service_GetNodePods_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "operator/api/v1/cluster/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type GetNodePodsRequest ¶
type GetNodePodsRequest struct { NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // contains filtered or unexported fields }
func (*GetNodePodsRequest) Descriptor
deprecated
func (*GetNodePodsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNodePodsRequest.ProtoReflect.Descriptor instead.
func (*GetNodePodsRequest) GetNodeName ¶
func (x *GetNodePodsRequest) GetNodeName() string
func (*GetNodePodsRequest) ProtoMessage ¶
func (*GetNodePodsRequest) ProtoMessage()
func (*GetNodePodsRequest) ProtoReflect ¶
func (x *GetNodePodsRequest) ProtoReflect() protoreflect.Message
func (*GetNodePodsRequest) Reset ¶
func (x *GetNodePodsRequest) Reset()
func (*GetNodePodsRequest) String ¶
func (x *GetNodePodsRequest) String() string
type GetNodePodsResponse ¶
type GetNodePodsResponse struct { Pods []*Pod `protobuf:"bytes,1,rep,name=pods,proto3" json:"pods,omitempty"` // contains filtered or unexported fields }
func (*GetNodePodsResponse) Descriptor
deprecated
func (*GetNodePodsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNodePodsResponse.ProtoReflect.Descriptor instead.
func (*GetNodePodsResponse) GetPods ¶
func (x *GetNodePodsResponse) GetPods() []*Pod
func (*GetNodePodsResponse) ProtoMessage ¶
func (*GetNodePodsResponse) ProtoMessage()
func (*GetNodePodsResponse) ProtoReflect ¶
func (x *GetNodePodsResponse) ProtoReflect() protoreflect.Message
func (*GetNodePodsResponse) Reset ¶
func (x *GetNodePodsResponse) Reset()
func (*GetNodePodsResponse) String ¶
func (x *GetNodePodsResponse) String() string
type GetNodesRequest ¶
type GetNodesRequest struct {
// contains filtered or unexported fields
}
func (*GetNodesRequest) Descriptor
deprecated
func (*GetNodesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNodesRequest.ProtoReflect.Descriptor instead.
func (*GetNodesRequest) ProtoMessage ¶
func (*GetNodesRequest) ProtoMessage()
func (*GetNodesRequest) ProtoReflect ¶
func (x *GetNodesRequest) ProtoReflect() protoreflect.Message
func (*GetNodesRequest) Reset ¶
func (x *GetNodesRequest) Reset()
func (*GetNodesRequest) String ¶
func (x *GetNodesRequest) String() string
type GetNodesResponse ¶
type GetNodesResponse struct { Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*GetNodesResponse) Descriptor
deprecated
func (*GetNodesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNodesResponse.ProtoReflect.Descriptor instead.
func (*GetNodesResponse) GetNodes ¶
func (x *GetNodesResponse) GetNodes() []*Node
func (*GetNodesResponse) ProtoMessage ¶
func (*GetNodesResponse) ProtoMessage()
func (*GetNodesResponse) ProtoReflect ¶
func (x *GetNodesResponse) ProtoReflect() protoreflect.Message
func (*GetNodesResponse) Reset ¶
func (x *GetNodesResponse) Reset()
func (*GetNodesResponse) String ¶
func (x *GetNodesResponse) String() string
type Node ¶
type Node struct { NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` Allocateable *model.Resources `protobuf:"bytes,2,opt,name=allocateable,proto3" json:"allocateable,omitempty"` Usage *model.Resources `protobuf:"bytes,3,opt,name=usage,proto3" json:"usage,omitempty"` // contains filtered or unexported fields }
func (*Node) Descriptor
deprecated
func (*Node) GetAllocateable ¶
func (*Node) GetNodeName ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type Pod ¶
type Pod struct { PodName string `protobuf:"bytes,1,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Requested *model.Resources `protobuf:"bytes,3,opt,name=requested,proto3" json:"requested,omitempty"` CapsuleName string `protobuf:"bytes,4,opt,name=capsule_name,json=capsuleName,proto3" json:"capsule_name,omitempty"` // contains filtered or unexported fields }
func (*Pod) Descriptor
deprecated
func (*Pod) GetCapsuleName ¶
func (*Pod) GetNamespace ¶
func (*Pod) GetPodName ¶
func (*Pod) GetRequested ¶
func (*Pod) ProtoMessage ¶
func (*Pod) ProtoMessage()
func (*Pod) ProtoReflect ¶
func (x *Pod) ProtoReflect() protoreflect.Message
type ServiceClient ¶
type ServiceClient interface { GetNodes(ctx context.Context, in *GetNodesRequest, opts ...grpc.CallOption) (*GetNodesResponse, error) GetNodePods(ctx context.Context, in *GetNodePodsRequest, opts ...grpc.CallOption) (*GetNodePodsResponse, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { GetNodes(context.Context, *GetNodesRequest) (*GetNodesResponse, error) GetNodePods(context.Context, *GetNodePodsRequest) (*GetNodePodsResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) GetNodePods ¶
func (UnimplementedServiceServer) GetNodePods(context.Context, *GetNodePodsRequest) (*GetNodePodsResponse, error)
func (UnimplementedServiceServer) GetNodes ¶
func (UnimplementedServiceServer) GetNodes(context.Context, *GetNodesRequest) (*GetNodesResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.