iscsi

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver(nodeID, endpoint string) *driver

func NewNodeServer

func NewNodeServer(d *driver) *nodeServer

func ParseEndpoint

func ParseEndpoint(ep string) (string, string, error)

Types

type ControllerServer

type ControllerServer struct {
	Driver *driver
}

func NewControllerServer

func NewControllerServer(d *driver) *ControllerServer

func (*ControllerServer) ControllerExpandVolume

func (*ControllerServer) ControllerGetCapabilities

ControllerGetCapabilities implements the default GRPC callout. Default supports all capabilities.

func (*ControllerServer) ControllerGetVolume

func (*ControllerServer) ControllerPublishVolume

func (*ControllerServer) CreateSnapshot

func (*ControllerServer) CreateVolume

func (*ControllerServer) DeleteSnapshot

func (*ControllerServer) DeleteVolume

func (*ControllerServer) GetCapacity

func (*ControllerServer) ListSnapshots

func (*ControllerServer) ListVolumes

type ISCSIUtil

type ISCSIUtil struct{}

func (*ISCSIUtil) AttachDisk

func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error)

func (*ISCSIUtil) DetachDisk

func (util *ISCSIUtil) DetachDisk(c iscsiDiskUnmounter, targetPath string) error

type IdentityServer

type IdentityServer struct {
	Driver *driver
}

func NewDefaultIdentityServer

func NewDefaultIdentityServer(d *driver) *IdentityServer

func (*IdentityServer) GetPluginCapabilities

func (*IdentityServer) GetPluginInfo

func (*IdentityServer) Probe

type NonBlockingGRPCServer

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

Defines Non blocking GRPC server interfaces.

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() NonBlockingGRPCServer

Jump to

Keyboard shortcuts

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