driver

package
v0.0.0-...-46270a6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DriverVersion string
)

Functions

func GetVersionJSON

func GetVersionJSON() string

GetVersionJSON ...

func MarshalJSON

func MarshalJSON(v interface{}) string

func MountDatasets

func MountDatasets(helper helper.DriverHelper, req *csi.NodePublishVolumeRequest, vmtDetails common.VolumeMountDetails) (int, error)

func ReconcileDatasets

func ReconcileDatasets(helper helper.DriverHelper, vmtDetails common.VolumeMountDetails, targetPath string) (int, error)

func UnMountDatasets

func UnMountDatasets(helper helper.DriverHelper, req *csi.NodeUnpublishVolumeRequest)

UnMountDatasets unmount datasets at target path

Types

type COSDriver

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

COSDriver data structure

func NewCOSDriver

func NewCOSDriver(name, node, version, endpoint string) (*COSDriver, error)

NewCOSDriver returns a new instance of COS driver

func (*COSDriver) ControllerExpandVolume

func (driver *COSDriver) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error)

ControllerExpandVolume ...

func (*COSDriver) ControllerGetCapabilities

ControllerGetCapabilities ...

func (*COSDriver) ControllerGetVolume

func (driver *COSDriver) ControllerGetVolume(ctx context.Context, req *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error)

ControllerGetVolume ...

func (*COSDriver) ControllerPublishVolume

ControllerPublishVolume ...

func (*COSDriver) ControllerUnpublishVolume

ControllerUnpublishVolume ...

func (*COSDriver) CreateSnapshot

func (driver *COSDriver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error)

CreateSnapshot ...

func (*COSDriver) CreateVolume

func (driver *COSDriver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)

CreateVolume ...

func (*COSDriver) DeleteSnapshot

func (driver *COSDriver) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error)

DeleteSnapshot ...

func (*COSDriver) DeleteVolume

func (driver *COSDriver) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)

DeleteVolume ...

func (*COSDriver) GetCapacity

func (driver *COSDriver) GetCapacity(ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)

GetCapacity ...

func (*COSDriver) GetPluginCapabilities

func (driver *COSDriver) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error)

GetPluginCapabilities ...

func (*COSDriver) GetPluginInfo

func (driver *COSDriver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)

GetPluginInfo ...

func (*COSDriver) ListSnapshots

func (driver *COSDriver) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)

ListSnapshots ...

func (*COSDriver) ListVolumes

func (driver *COSDriver) ListVolumes(ctx context.Context, req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)

ListVolumes ...

func (*COSDriver) NodeExpandVolume

func (driver *COSDriver) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)

NodeExpandVolume ...

func (*COSDriver) NodeGetCapabilities

func (driver *COSDriver) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)

NodeGetCapabilities ...

func (*COSDriver) NodeGetInfo

func (driver *COSDriver) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)

NodeGetInfo ...

func (*COSDriver) NodeGetVolumeStats

func (driver *COSDriver) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)

NodeGetVolumeStats ...

func (*COSDriver) NodePublishVolume

func (driver *COSDriver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)

NodePublishVolume ...

func (*COSDriver) NodeStageVolume

func (driver *COSDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)

NodeStageVolume ...

func (*COSDriver) NodeUnpublishVolume

func (driver *COSDriver) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (response *csi.NodeUnpublishVolumeResponse, err error)

NodeUnpublishVolume ...

func (*COSDriver) NodeUnstageVolume

func (driver *COSDriver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)

NodeUnstageVolume ...

func (*COSDriver) Probe

func (driver *COSDriver) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)

Probe ...

func (*COSDriver) Run

func (driver *COSDriver) Run() error

Run COS driver

func (*COSDriver) ValidateVolumeCapabilities

ValidateVolumeCapabilities ...

type ReconcileContext

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

ReconcileContext data structure

func NewReconcileContext

func NewReconcileContext(driver *COSDriver) (*ReconcileContext, error)

func (*ReconcileContext) StartInformers

func (rc *ReconcileContext) StartInformers(stopCh <-chan struct{})

type VersionInfo

type VersionInfo struct {
	DriverVersion string `json:"driverVersion"`
	GoVersion     string `json:"goVersion"`
	Compiler      string `json:"compiler"`
	Platform      string `json:"platform"`
}

VersionInfo ...

func GetVersion

func GetVersion() VersionInfo

GetVersion ...

Jump to

Keyboard shortcuts

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