service

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityServer

type IdentityServer struct {
	*identity.UnimplementedIdentityServer
	// contains filtered or unexported fields
}

IdentityServer struct of sidecar with supported methods of CSI identity server spec and also containing client to csi driver.

func NewIdentityServer

func NewIdentityServer(client *grpc.ClientConn) *IdentityServer

NewIdentityServer creates a new IdentityServer which handles the Identity Service requests from the CSI-Addons specification.

func (*IdentityServer) GetCapabilities

GetCapabilities returns available capabilities from the driver.

func (*IdentityServer) GetIdentity

GetIdentity returns available capabilities from the driver.

func (*IdentityServer) Probe

Probe is called by the CO plugin to validate that the CSI-Addons Node is still healthy.

func (*IdentityServer) RegisterService

func (is *IdentityServer) RegisterService(server grpc.ServiceRegistrar)

type NetworkFenceServer

type NetworkFenceServer struct {
	proto.UnimplementedNetworkFenceServer
	// contains filtered or unexported fields
}

NetworkFenceServer struct of sidecar with supported methods of proto networkFence server spec and controller client to csi driver.

func NewNetworkFenceServer

func NewNetworkFenceServer(c *grpc.ClientConn, kc *kubernetes.Clientset) *NetworkFenceServer

NewNetworkFenceServer creates a new NetworkFenceServer which handles the proto.NetworkFence Service requests.

func (*NetworkFenceServer) FenceClusterNetwork

FenceClusterNetwork fetches required information from kubernetes cluster and calls CSI-Addons FenceClusterNetwork service.

func (*NetworkFenceServer) RegisterService

func (ns *NetworkFenceServer) RegisterService(server grpc.ServiceRegistrar)

RegisterService registers service with the server.

func (*NetworkFenceServer) UnFenceClusterNetwork

func (ns *NetworkFenceServer) UnFenceClusterNetwork(
	ctx context.Context,
	req *proto.NetworkFenceRequest) (*proto.NetworkFenceResponse, error)

UnFenceClusterNetwork fetches required information from kubernetes cluster and calls CSI-Addons UnFenceClusterNetwork service.

type ReclaimSpaceServer

type ReclaimSpaceServer struct {
	proto.UnimplementedReclaimSpaceServer
	// contains filtered or unexported fields
}

ReclaimSpaceServer struct of sidecar with supported methods of proto reclaim space server spec and also containing reclaimspace node and controller client to csi driver.

func NewReclaimSpaceServer

func NewReclaimSpaceServer(c *grpc.ClientConn, kc *kubernetes.Clientset, sp string) *ReclaimSpaceServer

NewReclaimSpaceServer creates a new ReclaimSpaceServer which handles the proto.ReclaimSpace Service requests.

func (*ReclaimSpaceServer) ControllerReclaimSpace

func (rs *ReclaimSpaceServer) ControllerReclaimSpace(
	ctx context.Context,
	req *proto.ReclaimSpaceRequest) (*proto.ReclaimSpaceResponse, error)

ControllerReclaimSpace fetches required information from kubernetes cluster and calls CSI-Addons ControllerReclaimSpace service.

func (*ReclaimSpaceServer) NodeReclaimSpace

NodeReclaimSpace fetches required information from kubernetes cluster and calls CSI-Addons NodeReclaimSpace service.

func (*ReclaimSpaceServer) RegisterService

func (rs *ReclaimSpaceServer) RegisterService(server grpc.ServiceRegistrar)

RegisterService registers service with the server.

Jump to

Keyboard shortcuts

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