driver

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxNameLength int = 128
)

Variables

This section is empty.

Functions

func ConvertVolumeCapabilityFromv0Tov1

func ConvertVolumeCapabilityFromv0Tov1(capability *csi_v0.VolumeCapability) (*csi.VolumeCapability, error)

func GetShareNameFromSnapshotId

func GetShareNameFromSnapshotId(snapshotId string) (string, error)

func GetSnapshotIDFromSnapshotName

func GetSnapshotIDFromSnapshotName(hsSnapName, sourceVolumeID string) string

generate snapshot ID to be stored by the CO <created snapshot name>|<sharepath or filepath>

func GetSnapshotNameFromSnapshotId

func GetSnapshotNameFromSnapshotId(snapshotId string) (string, error)

func GetVolumeNameFromPath

func GetVolumeNameFromPath(path string) string

func IsValueInList

func IsValueInList(value string, list []string) bool

Types

type CSIDriver

type CSIDriver struct {
	NodeID string
	// contains filtered or unexported fields
}

func NewCSIDriver

func NewCSIDriver(endpoint, username, password, tlsVerifyStr string) *CSIDriver

func (*CSIDriver) Address

func (c *CSIDriver) Address() string

func (*CSIDriver) Close

func (c *CSIDriver) Close()

func (*CSIDriver) ControllerExpandVolume

func (*CSIDriver) ControllerPublishVolume

func (*CSIDriver) CreateSnapshot

func (*CSIDriver) CreateVolume

func (d *CSIDriver) CreateVolume(
	ctx context.Context,
	req *csi.CreateVolumeRequest) (
	*csi.CreateVolumeResponse, error)

func (*CSIDriver) DeleteSnapshot

func (*CSIDriver) DeleteVolume

func (d *CSIDriver) DeleteVolume(
	ctx context.Context,
	req *csi.DeleteVolumeRequest) (
	*csi.DeleteVolumeResponse, error)

func (*CSIDriver) EnsureBackingShareMounted

func (d *CSIDriver) EnsureBackingShareMounted(backingShareName string) error

func (*CSIDriver) GetCapacity

func (d *CSIDriver) GetCapacity(
	ctx context.Context,
	req *csi.GetCapacityRequest) (
	*csi.GetCapacityResponse, error)

func (*CSIDriver) GetHammerspaceClient

func (c *CSIDriver) GetHammerspaceClient() *client.HammerspaceClient

func (*CSIDriver) GetPluginCapabilities

func (*CSIDriver) GetPluginInfo

func (d *CSIDriver) GetPluginInfo(
	ctx context.Context,
	req *csi.GetPluginInfoRequest) (
	*csi.GetPluginInfoResponse, error)

func (*CSIDriver) IsRunning

func (c *CSIDriver) IsRunning() bool

func (*CSIDriver) ListSnapshots

func (*CSIDriver) ListVolumes

func (d *CSIDriver) ListVolumes(
	ctx context.Context,
	req *csi.ListVolumesRequest) (
	*csi.ListVolumesResponse, error)

func (*CSIDriver) MountShareAtBestDataportal

func (d *CSIDriver) MountShareAtBestDataportal(shareExportPath, targetPath string, mountFlags []string) error

func (*CSIDriver) NodeExpandVolume

func (*CSIDriver) NodeGetCapabilities

func (*CSIDriver) NodeGetInfo

func (*CSIDriver) NodeGetVolumeStats

func (*CSIDriver) NodePublishVolume

func (*CSIDriver) NodeStageVolume

func (*CSIDriver) NodeUnpublishVolume

func (*CSIDriver) NodeUnstageVolume

func (*CSIDriver) Probe

func (d *CSIDriver) Probe(
	ctx context.Context,
	req *csi.ProbeRequest) (
	*csi.ProbeResponse, error)

func (*CSIDriver) Start

func (c *CSIDriver) Start(l net.Listener) error

func (*CSIDriver) Stop

func (c *CSIDriver) Stop()

func (*CSIDriver) UnmountBackingShareIfUnused

func (d *CSIDriver) UnmountBackingShareIfUnused(backingShareName string) (bool, error)

type CSIDriver_v0Support

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

func NewCSIDriver_v0Support

func NewCSIDriver_v0Support(driver *CSIDriver) *CSIDriver_v0Support

func (*CSIDriver_v0Support) Address

func (c *CSIDriver_v0Support) Address() string

func (*CSIDriver_v0Support) Close

func (c *CSIDriver_v0Support) Close()

func (*CSIDriver_v0Support) CreateSnapshot

func (*CSIDriver_v0Support) CreateVolume

func (*CSIDriver_v0Support) DeleteSnapshot

func (*CSIDriver_v0Support) DeleteVolume

func (*CSIDriver_v0Support) GetCapacity

func (*CSIDriver_v0Support) GetPluginCapabilities

func (*CSIDriver_v0Support) GetPluginInfo

func (*CSIDriver_v0Support) IsRunning

func (c *CSIDriver_v0Support) IsRunning() bool

func (*CSIDriver_v0Support) ListSnapshots

func (*CSIDriver_v0Support) ListVolumes

func (*CSIDriver_v0Support) NodeGetCapabilities

func (*CSIDriver_v0Support) NodeGetId

func (*CSIDriver_v0Support) NodeGetInfo

func (*CSIDriver_v0Support) NodePublishVolume

func (*CSIDriver_v0Support) NodeStageVolume

func (*CSIDriver_v0Support) NodeUnpublishVolume

func (*CSIDriver_v0Support) NodeUnstageVolume

func (*CSIDriver_v0Support) Probe

func (*CSIDriver_v0Support) Start

func (c *CSIDriver_v0Support) Start(l net.Listener) error

func (*CSIDriver_v0Support) Stop

func (c *CSIDriver_v0Support) Stop()

Jump to

Keyboard shortcuts

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