protos

package
v0.0.0-...-95ec5f3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cluster_autoscaler_expander_grpcplugin_protos_expander_proto protoreflect.FileDescriptor

Functions

func RegisterExpanderServer

func RegisterExpanderServer(s *grpc.Server, srv ExpanderServer)

Types

type BestOptionsRequest

type BestOptionsRequest struct {
	Options []*Option `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
	// key is node id from options
	NodeMap map[string]*v1.Node `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BestOptionsRequest) Descriptor deprecated

func (*BestOptionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BestOptionsRequest.ProtoReflect.Descriptor instead.

func (*BestOptionsRequest) GetNodeMap

func (x *BestOptionsRequest) GetNodeMap() map[string]*v1.Node

func (*BestOptionsRequest) GetOptions

func (x *BestOptionsRequest) GetOptions() []*Option

func (*BestOptionsRequest) ProtoMessage

func (*BestOptionsRequest) ProtoMessage()

func (*BestOptionsRequest) ProtoReflect

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

func (*BestOptionsRequest) Reset

func (x *BestOptionsRequest) Reset()

func (*BestOptionsRequest) String

func (x *BestOptionsRequest) String() string

type BestOptionsResponse

type BestOptionsResponse struct {
	Options []*Option `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*BestOptionsResponse) Descriptor deprecated

func (*BestOptionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BestOptionsResponse.ProtoReflect.Descriptor instead.

func (*BestOptionsResponse) GetOptions

func (x *BestOptionsResponse) GetOptions() []*Option

func (*BestOptionsResponse) ProtoMessage

func (*BestOptionsResponse) ProtoMessage()

func (*BestOptionsResponse) ProtoReflect

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

func (*BestOptionsResponse) Reset

func (x *BestOptionsResponse) Reset()

func (*BestOptionsResponse) String

func (x *BestOptionsResponse) String() string

type ExpanderClient

type ExpanderClient interface {
	BestOptions(ctx context.Context, in *BestOptionsRequest, opts ...grpc.CallOption) (*BestOptionsResponse, error)
}

ExpanderClient is the client API for Expander service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewExpanderClient

func NewExpanderClient(cc grpc.ClientConnInterface) ExpanderClient

type ExpanderServer

type ExpanderServer interface {
	BestOptions(context.Context, *BestOptionsRequest) (*BestOptionsResponse, error)
}

ExpanderServer is the server API for Expander service.

type Option

type Option struct {

	// only need the ID of node to uniquely identify the nodeGroup, used in the nodeInfo map.
	NodeGroupId string    `protobuf:"bytes,1,opt,name=nodeGroupId,proto3" json:"nodeGroupId,omitempty"`
	NodeCount   int32     `protobuf:"varint,2,opt,name=nodeCount,proto3" json:"nodeCount,omitempty"`
	Debug       string    `protobuf:"bytes,3,opt,name=debug,proto3" json:"debug,omitempty"`
	Pod         []*v1.Pod `protobuf:"bytes,4,rep,name=pod,proto3" json:"pod,omitempty"`
	// contains filtered or unexported fields
}

func (*Option) Descriptor deprecated

func (*Option) Descriptor() ([]byte, []int)

Deprecated: Use Option.ProtoReflect.Descriptor instead.

func (*Option) GetDebug

func (x *Option) GetDebug() string

func (*Option) GetNodeCount

func (x *Option) GetNodeCount() int32

func (*Option) GetNodeGroupId

func (x *Option) GetNodeGroupId() string

func (*Option) GetPod

func (x *Option) GetPod() []*v1.Pod

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) ProtoReflect

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

func (*Option) Reset

func (x *Option) Reset()

func (*Option) String

func (x *Option) String() string

type UnimplementedExpanderServer

type UnimplementedExpanderServer struct {
}

UnimplementedExpanderServer can be embedded to have forward compatible implementations.

func (*UnimplementedExpanderServer) BestOptions

Jump to

Keyboard shortcuts

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