cluster

package
v0.0.0-...-af36fda Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_operator_api_v1_cluster_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetAllocateable

func (x *Node) GetAllocateable() *model.Resources

func (*Node) GetNodeName

func (x *Node) GetNodeName() string

func (*Node) GetUsage

func (x *Node) GetUsage() *model.Resources

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

func (x *Node) ProtoReflect() protoreflect.Message

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Pod.ProtoReflect.Descriptor instead.

func (*Pod) GetCapsuleName

func (x *Pod) GetCapsuleName() string

func (*Pod) GetNamespace

func (x *Pod) GetNamespace() string

func (*Pod) GetPodName

func (x *Pod) GetPodName() string

func (*Pod) GetRequested

func (x *Pod) GetRequested() *model.Resources

func (*Pod) ProtoMessage

func (*Pod) ProtoMessage()

func (*Pod) ProtoReflect

func (x *Pod) ProtoReflect() protoreflect.Message

func (*Pod) Reset

func (x *Pod) Reset()

func (*Pod) String

func (x *Pod) String() string

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) GetNodes

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL