fence

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FenceController_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "fence.FenceController",
	HandlerType: (*FenceControllerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FenceClusterNetwork",
			Handler:    _FenceController_FenceClusterNetwork_Handler,
		},
		{
			MethodName: "UnfenceClusterNetwork",
			Handler:    _FenceController_UnfenceClusterNetwork_Handler,
		},
		{
			MethodName: "ListClusterFence",
			Handler:    _FenceController_ListClusterFence_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "fence/fence.proto",
}

FenceController_ServiceDesc is the grpc.ServiceDesc for FenceController 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_fence_fence_proto protoreflect.FileDescriptor

Functions

func RegisterFenceControllerServer

func RegisterFenceControllerServer(s grpc.ServiceRegistrar, srv FenceControllerServer)

Types

type CIDR

type CIDR struct {

	// CIDR block
	Cidr string `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
	// contains filtered or unexported fields
}

CIDR holds a CIDR block.

func (*CIDR) Descriptor deprecated

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

Deprecated: Use CIDR.ProtoReflect.Descriptor instead.

func (*CIDR) GetCidr

func (x *CIDR) GetCidr() string

func (*CIDR) ProtoMessage

func (*CIDR) ProtoMessage()

func (*CIDR) ProtoReflect

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

func (*CIDR) Reset

func (x *CIDR) Reset()

func (*CIDR) String

func (x *CIDR) String() string

type FenceClusterNetworkRequest

type FenceClusterNetworkRequest struct {

	// Plugin specific parameters passed in as opaque key-value pairs.
	Parameters map[string]string `` /* 161-byte string literal not displayed */
	// Secrets required by the plugin to complete the request.
	Secrets map[string]string `` /* 155-byte string literal not displayed */
	// list of CIDR blocks on which the fencing operation is expected to be
	// performed.
	Cidrs []*CIDR `protobuf:"bytes,3,rep,name=cidrs,proto3" json:"cidrs,omitempty"`
	// contains filtered or unexported fields
}

FenceClusterNetworkRequest contains the information needed to identify the storage cluster so that the appropriate fencing operation can be performed.

func (*FenceClusterNetworkRequest) Descriptor deprecated

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

Deprecated: Use FenceClusterNetworkRequest.ProtoReflect.Descriptor instead.

func (*FenceClusterNetworkRequest) GetCidrs

func (x *FenceClusterNetworkRequest) GetCidrs() []*CIDR

func (*FenceClusterNetworkRequest) GetParameters

func (x *FenceClusterNetworkRequest) GetParameters() map[string]string

func (*FenceClusterNetworkRequest) GetSecrets

func (x *FenceClusterNetworkRequest) GetSecrets() map[string]string

func (*FenceClusterNetworkRequest) ProtoMessage

func (*FenceClusterNetworkRequest) ProtoMessage()

func (*FenceClusterNetworkRequest) ProtoReflect

func (*FenceClusterNetworkRequest) Reset

func (x *FenceClusterNetworkRequest) Reset()

func (*FenceClusterNetworkRequest) String

func (x *FenceClusterNetworkRequest) String() string

type FenceClusterNetworkResponse

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

FenceClusterNetworkResponse is returned by the CSI-driver as a result of the FenceClusterNetworkRequest call.

func (*FenceClusterNetworkResponse) Descriptor deprecated

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

Deprecated: Use FenceClusterNetworkResponse.ProtoReflect.Descriptor instead.

func (*FenceClusterNetworkResponse) ProtoMessage

func (*FenceClusterNetworkResponse) ProtoMessage()

func (*FenceClusterNetworkResponse) ProtoReflect

func (*FenceClusterNetworkResponse) Reset

func (x *FenceClusterNetworkResponse) Reset()

func (*FenceClusterNetworkResponse) String

func (x *FenceClusterNetworkResponse) String() string

type FenceControllerClient

type FenceControllerClient interface {
	// FenceClusterNetwork RPC call to perform a fencing operation.
	FenceClusterNetwork(ctx context.Context, in *FenceClusterNetworkRequest, opts ...grpc.CallOption) (*FenceClusterNetworkResponse, error)
	// UnfenceClusterNetwork RPC call to remove a list of CIDR blocks from the
	// list of blocklisted/fenced clients.
	UnfenceClusterNetwork(ctx context.Context, in *UnfenceClusterNetworkRequest, opts ...grpc.CallOption) (*UnfenceClusterNetworkResponse, error)
	// ListClusterFence RPC call to provide a list of blocklisted/fenced clients.
	ListClusterFence(ctx context.Context, in *ListClusterFenceRequest, opts ...grpc.CallOption) (*ListClusterFenceResponse, error)
}

FenceControllerClient is the client API for FenceController 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 FenceControllerServer

type FenceControllerServer interface {
	// FenceClusterNetwork RPC call to perform a fencing operation.
	FenceClusterNetwork(context.Context, *FenceClusterNetworkRequest) (*FenceClusterNetworkResponse, error)
	// UnfenceClusterNetwork RPC call to remove a list of CIDR blocks from the
	// list of blocklisted/fenced clients.
	UnfenceClusterNetwork(context.Context, *UnfenceClusterNetworkRequest) (*UnfenceClusterNetworkResponse, error)
	// ListClusterFence RPC call to provide a list of blocklisted/fenced clients.
	ListClusterFence(context.Context, *ListClusterFenceRequest) (*ListClusterFenceResponse, error)
	// contains filtered or unexported methods
}

FenceControllerServer is the server API for FenceController service. All implementations must embed UnimplementedFenceControllerServer for forward compatibility

type ListClusterFenceRequest

type ListClusterFenceRequest struct {

	// Plugin specific parameters passed in as opaque key-value pairs.
	Parameters map[string]string `` /* 161-byte string literal not displayed */
	// Secrets required by the plugin to complete the request.
	Secrets map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

ListClusterFenceRequest contains the information needed to identify the cluster so that the appropriate fenced clients can be listed.

func (*ListClusterFenceRequest) Descriptor deprecated

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

Deprecated: Use ListClusterFenceRequest.ProtoReflect.Descriptor instead.

func (*ListClusterFenceRequest) GetParameters

func (x *ListClusterFenceRequest) GetParameters() map[string]string

func (*ListClusterFenceRequest) GetSecrets

func (x *ListClusterFenceRequest) GetSecrets() map[string]string

func (*ListClusterFenceRequest) ProtoMessage

func (*ListClusterFenceRequest) ProtoMessage()

func (*ListClusterFenceRequest) ProtoReflect

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

func (*ListClusterFenceRequest) Reset

func (x *ListClusterFenceRequest) Reset()

func (*ListClusterFenceRequest) String

func (x *ListClusterFenceRequest) String() string

type ListClusterFenceResponse

type ListClusterFenceResponse struct {

	// list of IPs that are blocklisted by the SP.
	Cidrs []*CIDR `protobuf:"bytes,1,rep,name=cidrs,proto3" json:"cidrs,omitempty"`
	// contains filtered or unexported fields
}

ListClusterFenceResponse holds the information about the result of the ListClusterFenceResponse call.

func (*ListClusterFenceResponse) Descriptor deprecated

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

Deprecated: Use ListClusterFenceResponse.ProtoReflect.Descriptor instead.

func (*ListClusterFenceResponse) GetCidrs

func (x *ListClusterFenceResponse) GetCidrs() []*CIDR

func (*ListClusterFenceResponse) ProtoMessage

func (*ListClusterFenceResponse) ProtoMessage()

func (*ListClusterFenceResponse) ProtoReflect

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

func (*ListClusterFenceResponse) Reset

func (x *ListClusterFenceResponse) Reset()

func (*ListClusterFenceResponse) String

func (x *ListClusterFenceResponse) String() string

type UnfenceClusterNetworkRequest

type UnfenceClusterNetworkRequest struct {

	// Plugin specific parameters passed in as opaque key-value pairs.
	Parameters map[string]string `` /* 161-byte string literal not displayed */
	// Secrets required by the plugin to complete the request.
	Secrets map[string]string `` /* 155-byte string literal not displayed */
	// list of CIDR blocks on which the fencing operation is expected to be
	// performed.
	Cidrs []*CIDR `protobuf:"bytes,3,rep,name=cidrs,proto3" json:"cidrs,omitempty"`
	// contains filtered or unexported fields
}

UnfenceClusterNetworkRequest contains the information needed to identify the cluster so that the appropriate fence operation can be disabled.

func (*UnfenceClusterNetworkRequest) Descriptor deprecated

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

Deprecated: Use UnfenceClusterNetworkRequest.ProtoReflect.Descriptor instead.

func (*UnfenceClusterNetworkRequest) GetCidrs

func (x *UnfenceClusterNetworkRequest) GetCidrs() []*CIDR

func (*UnfenceClusterNetworkRequest) GetParameters

func (x *UnfenceClusterNetworkRequest) GetParameters() map[string]string

func (*UnfenceClusterNetworkRequest) GetSecrets

func (x *UnfenceClusterNetworkRequest) GetSecrets() map[string]string

func (*UnfenceClusterNetworkRequest) ProtoMessage

func (*UnfenceClusterNetworkRequest) ProtoMessage()

func (*UnfenceClusterNetworkRequest) ProtoReflect

func (*UnfenceClusterNetworkRequest) Reset

func (x *UnfenceClusterNetworkRequest) Reset()

func (*UnfenceClusterNetworkRequest) String

type UnfenceClusterNetworkResponse

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

UnfenceClusterNetworkResponse is returned by the CSI-driver as a result of the UnfenceClusterNetworkRequest call.

func (*UnfenceClusterNetworkResponse) Descriptor deprecated

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

Deprecated: Use UnfenceClusterNetworkResponse.ProtoReflect.Descriptor instead.

func (*UnfenceClusterNetworkResponse) ProtoMessage

func (*UnfenceClusterNetworkResponse) ProtoMessage()

func (*UnfenceClusterNetworkResponse) ProtoReflect

func (*UnfenceClusterNetworkResponse) Reset

func (x *UnfenceClusterNetworkResponse) Reset()

func (*UnfenceClusterNetworkResponse) String

type UnimplementedFenceControllerServer

type UnimplementedFenceControllerServer struct {
}

UnimplementedFenceControllerServer must be embedded to have forward compatible implementations.

func (UnimplementedFenceControllerServer) FenceClusterNetwork

func (UnimplementedFenceControllerServer) ListClusterFence

type UnsafeFenceControllerServer

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

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

Jump to

Keyboard shortcuts

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