driver

package
v4.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package driver provides csi driver with controller, node, identity services

Index

Constants

View Source
const (
	// RWX defines access mode RWX
	RWX = "ReadWriteMany"
	// Block defines volume mode block
	Block = "Block"
	// FileSystem defines volume mode filesystem
	FileSystem = "FileSystem"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

Driver defines csi driver

func NewDriver

func NewDriver(name, version string, k8sUtils k8sutils.Interface, nodeName string) *Driver

NewDriver used to inits a new driver

func (*Driver) ControllerExpandVolume

ControllerExpandVolume used to controller expand volume

func (*Driver) ControllerGetCapabilities

ControllerGetCapabilities used to controller get capabilities

func (*Driver) ControllerGetVolume

ControllerGetVolume is to get volume info, but unimplemented

func (*Driver) ControllerPublishVolume

ControllerPublishVolume used to controller publish volume

func (*Driver) ControllerUnpublishVolume

ControllerUnpublishVolume used to controller unpublish volume

func (*Driver) CreateSnapshot

func (d *Driver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (
	*csi.CreateSnapshotResponse, error)

CreateSnapshot used to create snapshot for volume

func (*Driver) CreateVolume

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

CreateVolume used to create volume

func (*Driver) DeleteSnapshot

func (d *Driver) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (
	*csi.DeleteSnapshotResponse, error)

DeleteSnapshot used to delete snapshot

func (*Driver) DeleteVolume

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

DeleteVolume used to delete volume

func (*Driver) GetCapacity

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

GetCapacity used to get volume capacity

func (*Driver) GetPluginCapabilities

GetPluginCapabilities used to get plugin capabilities

func (*Driver) GetPluginInfo

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

GetPluginInfo used to get plugin info

func (*Driver) ListSnapshots

func (d *Driver) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)

ListSnapshots used to list snapshots

func (*Driver) ListVolumes

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

ListVolumes used to list volumes

func (*Driver) NodeExpandVolume

func (d *Driver) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (
	*csi.NodeExpandVolumeResponse, error)

NodeExpandVolume used to node expand volume

func (*Driver) NodeGetCapabilities

NodeGetCapabilities used to get node capabilities

func (*Driver) NodeGetInfo

func (d *Driver) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)

NodeGetInfo used to get node info

func (*Driver) NodeGetVolumeStats

NodeGetVolumeStats used to get node volume status

func (*Driver) NodePublishVolume

NodePublishVolume used to node publish volume

func (*Driver) NodeStageVolume

NodeStageVolume used to stage volume

func (*Driver) NodeUnpublishVolume

NodeUnpublishVolume used to node unpublish volume

func (*Driver) NodeUnstageVolume

NodeUnstageVolume used to unstage volume

func (*Driver) Probe

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

Probe used to health check

func (*Driver) ValidateVolumeCapabilities

ValidateVolumeCapabilities used to validate volume capabilities

Jump to

Keyboard shortcuts

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