Documentation ¶
Index ¶
- Variables
- func RegisterExpanderServer(s *grpc.Server, srv ExpanderServer)
- type BestOptionsRequest
- func (*BestOptionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BestOptionsRequest) GetNodeMap() map[string]*v1.Node
- func (x *BestOptionsRequest) GetOptions() []*Option
- func (*BestOptionsRequest) ProtoMessage()
- func (x *BestOptionsRequest) ProtoReflect() protoreflect.Message
- func (x *BestOptionsRequest) Reset()
- func (x *BestOptionsRequest) String() string
- type BestOptionsResponse
- func (*BestOptionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BestOptionsResponse) GetOptions() []*Option
- func (*BestOptionsResponse) ProtoMessage()
- func (x *BestOptionsResponse) ProtoReflect() protoreflect.Message
- func (x *BestOptionsResponse) Reset()
- func (x *BestOptionsResponse) String() string
- type ExpanderClient
- type ExpanderServer
- type Option
- func (*Option) Descriptor() ([]byte, []int)deprecated
- func (x *Option) GetDebug() string
- func (x *Option) GetNodeCount() int32
- func (x *Option) GetNodeGroupId() string
- func (x *Option) GetPod() []*v1.Pod
- func (*Option) ProtoMessage()
- func (x *Option) ProtoReflect() protoreflect.Message
- func (x *Option) Reset()
- func (x *Option) String() string
- type UnimplementedExpanderServer
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) GetNodeCount ¶
func (*Option) GetNodeGroupId ¶
func (*Option) ProtoMessage ¶
func (*Option) ProtoMessage()
func (*Option) ProtoReflect ¶
func (x *Option) ProtoReflect() protoreflect.Message
type UnimplementedExpanderServer ¶
type UnimplementedExpanderServer struct { }
UnimplementedExpanderServer can be embedded to have forward compatible implementations.
func (*UnimplementedExpanderServer) BestOptions ¶
func (*UnimplementedExpanderServer) BestOptions(context.Context, *BestOptionsRequest) (*BestOptionsResponse, error)
Click to show internal directories.
Click to hide internal directories.