drivers

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DriversDir = "/drivers"

DriversDir driver location, configure with -ldflags -X github.com/ondat/discoblocks/pkg/drivers.DriversDir=/yourpath

Functions

This section is empty.

Types

type Driver

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

Driver is the bridge to WASI modules

func GetDriver

func GetDriver(name string) *Driver

GetDriver returns given service

func (*Driver) GetCSIDriverDetails added in v0.0.5

func (d *Driver) GetCSIDriverDetails() (string, map[string]string, error)

GetCSIDriverDetails returns the labels of CSI driver Pod

func (*Driver) GetMountCommand added in v0.0.5

func (d *Driver) GetMountCommand() (string, error)

GetMountCommand creates a PersistentVolumeClaim for driver

func (*Driver) GetPVCStub

func (d *Driver) GetPVCStub(name, namespace, storageClassName string) (*corev1.PersistentVolumeClaim, error)

GetPVCStub creates a PersistentVolumeClaim for driver

func (*Driver) GetResizeCommand added in v0.0.5

func (d *Driver) GetResizeCommand() (string, error)

GetResizeCommand gets resize command to execute on the host

func (*Driver) IsStorageClassValid

func (d *Driver) IsStorageClassValid(sc *storagev1.StorageClass) (bool, error)

IsStorageClassValid validates StorageClass

func (*Driver) WaitForVolumeAttachmentMeta added in v0.0.5

func (d *Driver) WaitForVolumeAttachmentMeta() (string, error)

WaitForVolumeAttachmentMeta defines wait for device info of plugin

Jump to

Keyboard shortcuts

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