driver

package
v0.0.0-...-963c87b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KiB represents a kibibyte
	KiB = 1024
	// MiB represents a mebibyte
	MiB = KiB * 1024
	// GiB represents a gibibyte
	GiB = MiB * 1024
	// TiB represents a tebibyte
	TiB = GiB * 1024
)

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the current version

Types

type Driver

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

Driver struct contains all relevant Driver information

func NewDriver

func NewDriver(url, endpoint, account string, mounter *mount.SafeFormatAndMount, ovcJWT string, verbose bool, attacher bool) (*Driver, error)

NewDriver creates a new driver

func (*Driver) ControllerExpandVolume

ControllerExpandVolume expands the volume.

func (*Driver) ControllerGetCapabilities

ControllerGetCapabilities returns the capabilities of the controller service.

func (*Driver) ControllerPublishVolume

ControllerPublishVolume attaches the given volume to the node

func (*Driver) ControllerUnpublishVolume

ControllerUnpublishVolume detaches the given volume from the node

func (*Driver) CreateSnapshot

CreateSnapshot creates a snaphot of the volume Currently not supported by the OVC API

func (*Driver) CreateVolume

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

CreateVolume creates a new volume from the given request. The function is idempotent.

func (*Driver) DeleteSnapshot

DeleteSnapshot deletes a snaphot Currently not supported by the OVC API

func (*Driver) DeleteVolume

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

DeleteVolume deletes the given volume.

func (*Driver) GetCapacity

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

GetCapacity returns the capacity of the storage pool

func (*Driver) GetPluginCapabilities

GetPluginCapabilities returns available capabilities of the plugin

func (*Driver) GetPluginInfo

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

GetPluginInfo returns metadata of the plugin

func (*Driver) ListSnapshots

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

ListSnapshots lists all snaphot Currently not supported by the OVC API

func (*Driver) ListVolumes

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

ListVolumes returns a list of all requested volumes

func (*Driver) NodeExpandVolume

NodeExpandVolume expands the volume.

func (*Driver) NodeGetCapabilities

NodeGetCapabilities returns the supported capabilities of the node server

func (*Driver) NodeGetInfo

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

NodeGetInfo returns the supported capabilities of the node server

func (*Driver) NodeGetVolumeStats

NodeGetVolumeStats get the volumestats of a node Currently not implemented

func (*Driver) NodePublishVolume

NodePublishVolume mounts the volume mounted to the staging path to the target path

func (*Driver) NodeStageVolume

NodeStageVolume mounts the volume to a staging path on the node. This is called by the CO before NodePublishVolume and is used to temporary mount the volume to a staging path. Once mounted, NodePublishVolume will make sure to mount it to the appropriate path

func (*Driver) NodeUnpublishVolume

NodeUnpublishVolume unmounts the volume from the target path

func (*Driver) NodeUnstageVolume

NodeUnstageVolume unstages the volume from the staging path

func (*Driver) Probe

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

Probe returns the health and readiness of the plugin

func (*Driver) Run

func (d *Driver) Run() error

Run runs the driver

func (*Driver) Stop

func (d *Driver) Stop()

Stop stops the plugin

func (*Driver) ValidateVolumeCapabilities

ValidateVolumeCapabilities checks whether the volume capabilities requested are supported.

Jump to

Keyboard shortcuts

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