v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DrainService_Init_FullMethodName        = "/api.plugins.proto.v1.DrainService/Init"
	DrainService_IsSupported_FullMethodName = "/api.plugins.proto.v1.DrainService/IsSupported"
	DrainService_IsHealthy_FullMethodName   = "/api.plugins.proto.v1.DrainService/IsHealthy"
	DrainService_IsDrainOk_FullMethodName   = "/api.plugins.proto.v1.DrainService/IsDrainOk"
	DrainService_PreDrain_FullMethodName    = "/api.plugins.proto.v1.DrainService/PreDrain"
	DrainService_PostDrain_FullMethodName   = "/api.plugins.proto.v1.DrainService/PostDrain"
)

Variables

View Source
var DrainService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.plugins.proto.v1.DrainService",
	HandlerType: (*DrainServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _DrainService_Init_Handler,
		},
		{
			MethodName: "IsSupported",
			Handler:    _DrainService_IsSupported_Handler,
		},
		{
			MethodName: "IsHealthy",
			Handler:    _DrainService_IsHealthy_Handler,
		},
		{
			MethodName: "IsDrainOk",
			Handler:    _DrainService_IsDrainOk_Handler,
		},
		{
			MethodName: "PreDrain",
			Handler:    _DrainService_PreDrain_Handler,
		},
		{
			MethodName: "PostDrain",
			Handler:    _DrainService_PostDrain_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/plugins/proto/v1/drain_plugin.proto",
}

DrainService_ServiceDesc is the grpc.ServiceDesc for DrainService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_plugins_proto_v1_drain_plugin_proto protoreflect.FileDescriptor

Functions

func RegisterDrainServiceServer

func RegisterDrainServiceServer(s grpc.ServiceRegistrar, srv DrainServiceServer)

Types

type DrainServiceClient

type DrainServiceClient interface {
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
	IsSupported(ctx context.Context, in *IsSupportedRequest, opts ...grpc.CallOption) (*IsSupportedResponse, error)
	IsHealthy(ctx context.Context, in *IsHealthyRequest, opts ...grpc.CallOption) (*IsHealthyResponse, error)
	IsDrainOk(ctx context.Context, in *IsDrainOkRequest, opts ...grpc.CallOption) (*IsDrainOkResponse, error)
	PreDrain(ctx context.Context, in *PreDrainRequest, opts ...grpc.CallOption) (*PreDrainResponse, error)
	PostDrain(ctx context.Context, in *PostDrainRequest, opts ...grpc.CallOption) (*PostDrainResponse, error)
}

DrainServiceClient is the client API for DrainService 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.

type DrainServiceServer

DrainServiceServer is the server API for DrainService service. All implementations should embed UnimplementedDrainServiceServer for forward compatibility.

type InitRequest

type InitRequest struct {
	// contains filtered or unexported fields
}

func (*InitRequest) Descriptor deprecated

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

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect

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

func (*InitRequest) Reset

func (x *InitRequest) Reset()

func (*InitRequest) String

func (x *InitRequest) String() string

type InitResponse

type InitResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*InitResponse) Descriptor deprecated

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

Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.

func (*InitResponse) GetId

func (x *InitResponse) GetId() string

func (*InitResponse) ProtoMessage

func (*InitResponse) ProtoMessage()

func (*InitResponse) ProtoReflect

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

func (*InitResponse) Reset

func (x *InitResponse) Reset()

func (*InitResponse) String

func (x *InitResponse) String() string

type IsDrainOkRequest

type IsDrainOkRequest struct {
	NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	// contains filtered or unexported fields
}

func (*IsDrainOkRequest) Descriptor deprecated

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

Deprecated: Use IsDrainOkRequest.ProtoReflect.Descriptor instead.

func (*IsDrainOkRequest) GetNodeName

func (x *IsDrainOkRequest) GetNodeName() string

func (*IsDrainOkRequest) ProtoMessage

func (*IsDrainOkRequest) ProtoMessage()

func (*IsDrainOkRequest) ProtoReflect

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

func (*IsDrainOkRequest) Reset

func (x *IsDrainOkRequest) Reset()

func (*IsDrainOkRequest) String

func (x *IsDrainOkRequest) String() string

type IsDrainOkResponse

type IsDrainOkResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*IsDrainOkResponse) Descriptor deprecated

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

Deprecated: Use IsDrainOkResponse.ProtoReflect.Descriptor instead.

func (*IsDrainOkResponse) GetOk

func (x *IsDrainOkResponse) GetOk() bool

func (*IsDrainOkResponse) ProtoMessage

func (*IsDrainOkResponse) ProtoMessage()

func (*IsDrainOkResponse) ProtoReflect

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

func (*IsDrainOkResponse) Reset

func (x *IsDrainOkResponse) Reset()

func (*IsDrainOkResponse) String

func (x *IsDrainOkResponse) String() string

type IsHealthyRequest

type IsHealthyRequest struct {
	// contains filtered or unexported fields
}

func (*IsHealthyRequest) Descriptor deprecated

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

Deprecated: Use IsHealthyRequest.ProtoReflect.Descriptor instead.

func (*IsHealthyRequest) ProtoMessage

func (*IsHealthyRequest) ProtoMessage()

func (*IsHealthyRequest) ProtoReflect

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

func (*IsHealthyRequest) Reset

func (x *IsHealthyRequest) Reset()

func (*IsHealthyRequest) String

func (x *IsHealthyRequest) String() string

type IsHealthyResponse

type IsHealthyResponse struct {
	Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`
	// contains filtered or unexported fields
}

func (*IsHealthyResponse) Descriptor deprecated

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

Deprecated: Use IsHealthyResponse.ProtoReflect.Descriptor instead.

func (*IsHealthyResponse) GetHealthy

func (x *IsHealthyResponse) GetHealthy() bool

func (*IsHealthyResponse) ProtoMessage

func (*IsHealthyResponse) ProtoMessage()

func (*IsHealthyResponse) ProtoReflect

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

func (*IsHealthyResponse) Reset

func (x *IsHealthyResponse) Reset()

func (*IsHealthyResponse) String

func (x *IsHealthyResponse) String() string

type IsSupportedRequest

type IsSupportedRequest struct {
	// contains filtered or unexported fields
}

func (*IsSupportedRequest) Descriptor deprecated

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

Deprecated: Use IsSupportedRequest.ProtoReflect.Descriptor instead.

func (*IsSupportedRequest) ProtoMessage

func (*IsSupportedRequest) ProtoMessage()

func (*IsSupportedRequest) ProtoReflect

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

func (*IsSupportedRequest) Reset

func (x *IsSupportedRequest) Reset()

func (*IsSupportedRequest) String

func (x *IsSupportedRequest) String() string

type IsSupportedResponse

type IsSupportedResponse struct {
	Supported bool `protobuf:"varint,1,opt,name=supported,proto3" json:"supported,omitempty"`
	// contains filtered or unexported fields
}

func (*IsSupportedResponse) Descriptor deprecated

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

Deprecated: Use IsSupportedResponse.ProtoReflect.Descriptor instead.

func (*IsSupportedResponse) GetSupported

func (x *IsSupportedResponse) GetSupported() bool

func (*IsSupportedResponse) ProtoMessage

func (*IsSupportedResponse) ProtoMessage()

func (*IsSupportedResponse) ProtoReflect

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

func (*IsSupportedResponse) Reset

func (x *IsSupportedResponse) Reset()

func (*IsSupportedResponse) String

func (x *IsSupportedResponse) String() string

type PostDrainRequest

type PostDrainRequest struct {
	NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	// contains filtered or unexported fields
}

func (*PostDrainRequest) Descriptor deprecated

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

Deprecated: Use PostDrainRequest.ProtoReflect.Descriptor instead.

func (*PostDrainRequest) GetNodeName

func (x *PostDrainRequest) GetNodeName() string

func (*PostDrainRequest) ProtoMessage

func (*PostDrainRequest) ProtoMessage()

func (*PostDrainRequest) ProtoReflect

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

func (*PostDrainRequest) Reset

func (x *PostDrainRequest) Reset()

func (*PostDrainRequest) String

func (x *PostDrainRequest) String() string

type PostDrainResponse

type PostDrainResponse struct {
	// contains filtered or unexported fields
}

func (*PostDrainResponse) Descriptor deprecated

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

Deprecated: Use PostDrainResponse.ProtoReflect.Descriptor instead.

func (*PostDrainResponse) ProtoMessage

func (*PostDrainResponse) ProtoMessage()

func (*PostDrainResponse) ProtoReflect

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

func (*PostDrainResponse) Reset

func (x *PostDrainResponse) Reset()

func (*PostDrainResponse) String

func (x *PostDrainResponse) String() string

type PreDrainRequest

type PreDrainRequest struct {
	NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	// contains filtered or unexported fields
}

func (*PreDrainRequest) Descriptor deprecated

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

Deprecated: Use PreDrainRequest.ProtoReflect.Descriptor instead.

func (*PreDrainRequest) GetNodeName

func (x *PreDrainRequest) GetNodeName() string

func (*PreDrainRequest) ProtoMessage

func (*PreDrainRequest) ProtoMessage()

func (*PreDrainRequest) ProtoReflect

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

func (*PreDrainRequest) Reset

func (x *PreDrainRequest) Reset()

func (*PreDrainRequest) String

func (x *PreDrainRequest) String() string

type PreDrainResponse

type PreDrainResponse struct {
	// contains filtered or unexported fields
}

func (*PreDrainResponse) Descriptor deprecated

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

Deprecated: Use PreDrainResponse.ProtoReflect.Descriptor instead.

func (*PreDrainResponse) ProtoMessage

func (*PreDrainResponse) ProtoMessage()

func (*PreDrainResponse) ProtoReflect

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

func (*PreDrainResponse) Reset

func (x *PreDrainResponse) Reset()

func (*PreDrainResponse) String

func (x *PreDrainResponse) String() string

type UnimplementedDrainServiceServer

type UnimplementedDrainServiceServer struct{}

UnimplementedDrainServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDrainServiceServer) Init

func (UnimplementedDrainServiceServer) IsDrainOk

func (UnimplementedDrainServiceServer) IsHealthy

func (UnimplementedDrainServiceServer) IsSupported

func (UnimplementedDrainServiceServer) PostDrain

func (UnimplementedDrainServiceServer) PreDrain

type UnsafeDrainServiceServer

type UnsafeDrainServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDrainServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DrainServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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