service

package
v1.12.0 Latest Latest
Warning

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

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

Documentation

Index

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

type MockEstimatorClient struct {
	mock.Mock
}

MockEstimatorClient is an autogenerated mock type for the EstimatorClient type

func (*MockEstimatorClient) GetUnschedulableReplicas

GetUnschedulableReplicas provides a mock function with given fields: ctx, in, opts

func (*MockEstimatorClient) MaxAvailableReplicas

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

Jump to

Keyboard shortcuts

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