storage

package
v0.13.11 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Create       = "Create"
	Remove       = "Remove"
	Attach       = "Attach"
	Mount        = "Mount"
	Path         = "Path"
	Unmount      = "Unmount"
	Get          = "Get"
	List         = "List"
	Capabilities = "Capabilities"
)

Variables

This section is empty.

Functions

func DoVolumeActivate

func DoVolumeActivate(volume model.Volume, storagePool model.StoragePool, progress *progress.Progress, client *engineCli.Client) error

func DoVolumeRemove

func DoVolumeRemove(volume model.Volume, storagePool model.StoragePool, progress *progress.Progress, dockerClient *engineCli.Client, ca *cache.Cache, resourceID string) error

func IsRancher added in v0.13.5

func IsRancher(volume model.Volume) (bool, error)

IsRancher checks if volume driver is rancher managed driver

func IsRancherVolume added in v0.8.3

func IsRancherVolume(volume model.Volume) (bool, error)

IsRancherVolume checks if a volume to be considered as a flex volume if it is in rancherDrivers and the capability is flex raise an error if its rancher-managed driver but the socket file is not available

func IsVolumeActive

func IsVolumeActive(volume model.Volume, storagePool model.StoragePool, dockerClient *engineCli.Client) (bool, error)

func IsVolumeRemoved

func IsVolumeRemoved(volume model.Volume, storagePool model.StoragePool, client *engineCli.Client) (bool, error)

func VolumeActivateDocker added in v0.11.21

func VolumeActivateDocker(volume model.Volume, storagePool model.StoragePool, progress *progress.Progress, client *engineCli.Client) error

func VolumeActivateFlex added in v0.11.21

func VolumeActivateFlex(volume model.Volume) error

func VolumeRemoveDocker added in v0.11.21

func VolumeRemoveDocker(volume model.Volume, storagePool model.StoragePool, progress *progress.Progress, dockerClient *engineCli.Client, ca *cache.Cache, resourceID string) error

func VolumeRemoveFlex added in v0.11.21

func VolumeRemoveFlex(volume model.Volume) error

Types

type Capability added in v0.11.21

type Capability struct {
	Scope string
}

Capability represents the list of capabilities a volume driver can return

type Response added in v0.11.21

type Response struct {
	Mountpoint   string
	Err          string
	Volumes      []*Volume
	Volume       *Volume
	Capabilities Capability
}

Response is the strucutre that the plugin's responses are serialized to.

func CallRancherStorageVolumePlugin added in v0.11.21

func CallRancherStorageVolumePlugin(volume model.Volume, action string, payload interface{}) (Response, error)

type Volume added in v0.11.21

type Volume struct {
	Name       string
	Mountpoint string
	Status     map[string]interface{}
}

Volume represents a volume object for use with `Get` and `List` requests

Jump to

Keyboard shortcuts

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