Documentation ¶
Index ¶
- Variables
- func RegisterFenceControllerServer(s grpc.ServiceRegistrar, srv FenceControllerServer)
- type CIDR
- type FenceClusterNetworkRequest
- func (*FenceClusterNetworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FenceClusterNetworkRequest) GetCidrs() []*CIDR
- func (x *FenceClusterNetworkRequest) GetParameters() map[string]string
- func (x *FenceClusterNetworkRequest) GetSecrets() map[string]string
- func (*FenceClusterNetworkRequest) ProtoMessage()
- func (x *FenceClusterNetworkRequest) ProtoReflect() protoreflect.Message
- func (x *FenceClusterNetworkRequest) Reset()
- func (x *FenceClusterNetworkRequest) String() string
- type FenceClusterNetworkResponse
- type FenceControllerClient
- type FenceControllerServer
- type ListClusterFenceRequest
- func (*ListClusterFenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListClusterFenceRequest) GetParameters() map[string]string
- func (x *ListClusterFenceRequest) GetSecrets() map[string]string
- func (*ListClusterFenceRequest) ProtoMessage()
- func (x *ListClusterFenceRequest) ProtoReflect() protoreflect.Message
- func (x *ListClusterFenceRequest) Reset()
- func (x *ListClusterFenceRequest) String() string
- type ListClusterFenceResponse
- func (*ListClusterFenceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListClusterFenceResponse) GetCidrs() []*CIDR
- func (*ListClusterFenceResponse) ProtoMessage()
- func (x *ListClusterFenceResponse) ProtoReflect() protoreflect.Message
- func (x *ListClusterFenceResponse) Reset()
- func (x *ListClusterFenceResponse) String() string
- type UnfenceClusterNetworkRequest
- func (*UnfenceClusterNetworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnfenceClusterNetworkRequest) GetCidrs() []*CIDR
- func (x *UnfenceClusterNetworkRequest) GetParameters() map[string]string
- func (x *UnfenceClusterNetworkRequest) GetSecrets() map[string]string
- func (*UnfenceClusterNetworkRequest) ProtoMessage()
- func (x *UnfenceClusterNetworkRequest) ProtoReflect() protoreflect.Message
- func (x *UnfenceClusterNetworkRequest) Reset()
- func (x *UnfenceClusterNetworkRequest) String() string
- type UnfenceClusterNetworkResponse
- func (*UnfenceClusterNetworkResponse) Descriptor() ([]byte, []int)deprecated
- func (*UnfenceClusterNetworkResponse) ProtoMessage()
- func (x *UnfenceClusterNetworkResponse) ProtoReflect() protoreflect.Message
- func (x *UnfenceClusterNetworkResponse) Reset()
- func (x *UnfenceClusterNetworkResponse) String() string
- type UnimplementedFenceControllerServer
- func (UnimplementedFenceControllerServer) FenceClusterNetwork(context.Context, *FenceClusterNetworkRequest) (*FenceClusterNetworkResponse, error)
- func (UnimplementedFenceControllerServer) ListClusterFence(context.Context, *ListClusterFenceRequest) (*ListClusterFenceResponse, error)
- func (UnimplementedFenceControllerServer) UnfenceClusterNetwork(context.Context, *UnfenceClusterNetworkRequest) (*UnfenceClusterNetworkResponse, error)
- type UnsafeFenceControllerServer
Constants ¶
This section is empty.
Variables ¶
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)
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) ProtoMessage ¶
func (*CIDR) ProtoMessage()
func (*CIDR) ProtoReflect ¶
func (x *CIDR) ProtoReflect() protoreflect.Message
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 (x *FenceClusterNetworkRequest) ProtoReflect() protoreflect.Message
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 (x *FenceClusterNetworkResponse) ProtoReflect() protoreflect.Message
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.
func NewFenceControllerClient ¶
func NewFenceControllerClient(cc grpc.ClientConnInterface) FenceControllerClient
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 (x *UnfenceClusterNetworkRequest) ProtoReflect() protoreflect.Message
func (*UnfenceClusterNetworkRequest) Reset ¶
func (x *UnfenceClusterNetworkRequest) Reset()
func (*UnfenceClusterNetworkRequest) String ¶
func (x *UnfenceClusterNetworkRequest) String() 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 (x *UnfenceClusterNetworkResponse) ProtoReflect() protoreflect.Message
func (*UnfenceClusterNetworkResponse) Reset ¶
func (x *UnfenceClusterNetworkResponse) Reset()
func (*UnfenceClusterNetworkResponse) String ¶
func (x *UnfenceClusterNetworkResponse) String() string
type UnimplementedFenceControllerServer ¶
type UnimplementedFenceControllerServer struct { }
UnimplementedFenceControllerServer must be embedded to have forward compatible implementations.
func (UnimplementedFenceControllerServer) FenceClusterNetwork ¶
func (UnimplementedFenceControllerServer) FenceClusterNetwork(context.Context, *FenceClusterNetworkRequest) (*FenceClusterNetworkResponse, error)
func (UnimplementedFenceControllerServer) ListClusterFence ¶
func (UnimplementedFenceControllerServer) ListClusterFence(context.Context, *ListClusterFenceRequest) (*ListClusterFenceResponse, error)
func (UnimplementedFenceControllerServer) UnfenceClusterNetwork ¶
func (UnimplementedFenceControllerServer) UnfenceClusterNetwork(context.Context, *UnfenceClusterNetworkRequest) (*UnfenceClusterNetworkResponse, error)
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.