Documentation ¶
Index ¶
- func RegisterEstimatorServer(s *grpc.Server, srv EstimatorServer)
- type EstimatorClient
- type EstimatorServer
- type MockEstimatorClient
- func (_m *MockEstimatorClient) GetUnschedulableReplicas(ctx context.Context, in *pb.UnschedulableReplicasRequest, ...) (*pb.UnschedulableReplicasResponse, error)
- func (_m *MockEstimatorClient) MaxAvailableReplicas(ctx context.Context, in *pb.MaxAvailableReplicasRequest, ...) (*pb.MaxAvailableReplicasResponse, error)
- type UnimplementedEstimatorServer
- func (*UnimplementedEstimatorServer) GetUnschedulableReplicas(ctx context.Context, req *pb.UnschedulableReplicasRequest) (*pb.UnschedulableReplicasResponse, error)
- func (*UnimplementedEstimatorServer) MaxAvailableReplicas(ctx context.Context, req *pb.MaxAvailableReplicasRequest) (*pb.MaxAvailableReplicasResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEstimatorServer ¶
func RegisterEstimatorServer(s *grpc.Server, srv EstimatorServer)
Types ¶
type EstimatorClient ¶
type EstimatorClient interface { MaxAvailableReplicas(ctx context.Context, in *pb.MaxAvailableReplicasRequest, opts ...grpc.CallOption) (*pb.MaxAvailableReplicasResponse, error) GetUnschedulableReplicas(ctx context.Context, in *pb.UnschedulableReplicasRequest, opts ...grpc.CallOption) (*pb.UnschedulableReplicasResponse, error) }
EstimatorClient is the client API for Estimator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEstimatorClient ¶
func NewEstimatorClient(cc *grpc.ClientConn) EstimatorClient
type EstimatorServer ¶
type EstimatorServer interface { MaxAvailableReplicas(context.Context, *pb.MaxAvailableReplicasRequest) (*pb.MaxAvailableReplicasResponse, error) GetUnschedulableReplicas(context.Context, *pb.UnschedulableReplicasRequest) (*pb.UnschedulableReplicasResponse, error) }
EstimatorServer is the server API for Estimator service.
type MockEstimatorClient ¶
MockEstimatorClient is an autogenerated mock type for the EstimatorClient type
func (*MockEstimatorClient) GetUnschedulableReplicas ¶
func (_m *MockEstimatorClient) GetUnschedulableReplicas(ctx context.Context, in *pb.UnschedulableReplicasRequest, opts ...grpc.CallOption) (*pb.UnschedulableReplicasResponse, error)
GetUnschedulableReplicas provides a mock function with given fields: ctx, in, opts
func (*MockEstimatorClient) MaxAvailableReplicas ¶
func (_m *MockEstimatorClient) MaxAvailableReplicas(ctx context.Context, in *pb.MaxAvailableReplicasRequest, opts ...grpc.CallOption) (*pb.MaxAvailableReplicasResponse, error)
MaxAvailableReplicas provides a mock function with given fields: ctx, in, opts
type UnimplementedEstimatorServer ¶
type UnimplementedEstimatorServer struct { }
UnimplementedEstimatorServer can be embedded to have forward compatible implementations.
func (*UnimplementedEstimatorServer) GetUnschedulableReplicas ¶
func (*UnimplementedEstimatorServer) GetUnschedulableReplicas(ctx context.Context, req *pb.UnschedulableReplicasRequest) (*pb.UnschedulableReplicasResponse, error)
func (*UnimplementedEstimatorServer) MaxAvailableReplicas ¶
func (*UnimplementedEstimatorServer) MaxAvailableReplicas(ctx context.Context, req *pb.MaxAvailableReplicasRequest) (*pb.MaxAvailableReplicasResponse, error)
Click to show internal directories.
Click to hide internal directories.