csi

package
v0.0.0-...-a80f512 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDriverName = "secrets.kubedoop.dev"
)

Variables

This section is empty.

Functions

func CheckDynamicPV

func CheckDynamicPV(name string) (bool, error)

Types

type ControllerServer

type ControllerServer struct {
	csi.UnimplementedControllerServer
	// contains filtered or unexported fields
}

func NewControllerServer

func NewControllerServer(client client.Client) *ControllerServer

func (*ControllerServer) ControllerGetCapabilities

func (*ControllerServer) ControllerPublishVolume

func (*ControllerServer) ControllerUnpublishVolume

func (*ControllerServer) CreateVolume

func (*ControllerServer) DeleteVolume

func (*ControllerServer) ListVolumes

func (*ControllerServer) ValidateVolumeCapabilities

type Driver

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

func NewDriver

func NewDriver(
	name string,
	nodeID string,
	endpoint string,
	client client.Client,
) *Driver

func (*Driver) Run

func (d *Driver) Run(ctx context.Context, testMode bool) error

func (*Driver) Stop

func (d *Driver) Stop()

type IdentityServer

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

func NewIdentityServer

func NewIdentityServer(name, version string) *IdentityServer

func (*IdentityServer) GetPluginCapabilities

func (*IdentityServer) GetPluginInfo

func (*IdentityServer) Probe

func (i *IdentityServer) Probe(ctx context.Context, request *csi.ProbeRequest) (*csi.ProbeResponse, error)

type NodeServer

type NodeServer struct {
	csi.UnimplementedNodeServer
	// contains filtered or unexported fields
}

func NewNodeServer

func NewNodeServer(
	nodeId string,
	mounter mount.Interface,
	client client.Client,
) *NodeServer

func (*NodeServer) NodeGetCapabilities

func (*NodeServer) NodeGetInfo

func (n *NodeServer) NodeGetInfo(ctx context.Context, request *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)

func (*NodeServer) NodePublishVolume

func (n *NodeServer) NodePublishVolume(ctx context.Context, request *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)

func (*NodeServer) NodeStageVolume

func (n *NodeServer) NodeStageVolume(ctx context.Context, request *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)

func (*NodeServer) NodeUnpublishVolume

NodeUnpublishVolume unpublishes the volume from the node. unmount the volume from the target path, and remove the target path

func (*NodeServer) NodeUnstageVolume

func (n *NodeServer) NodeUnstageVolume(ctx context.Context, request *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)

type NonBlockingServer

type NonBlockingServer interface {
	// Start services at the endpoint
	Start(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer, testMode bool)
	// Wait Waits for the service to stop
	Wait()
	// Stop Stops the service gracefully
	Stop()
	// ForceStop Stops the service forcefully
	ForceStop()
}

NonBlockingServer Defines Non blocking GRPC server interfaces

func NewNonBlockingServer

func NewNonBlockingServer() NonBlockingServer

Directories

Path Synopsis
ca

Jump to

Keyboard shortcuts

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