volumeplugin

package
v0.9.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RancherUUID    = "rancher-uuid"
	DefaultBasedir = "/var/lib/rancher/volumes"
	DefaultFsType  = "ext4"
	DefaultScope   = "flex"
)

Variables

This section is empty.

Functions

func ExtendHandler added in v0.6.5

func ExtendHandler(h *volume.Handler, d ExtDriver)

func ForceSymlinkInDockerPlugins added in v0.6.5

func ForceSymlinkInDockerPlugins(driver string) error

func RancherSocketFile added in v0.6.5

func RancherSocketFile(driver string) string

Types

type AttachRequest added in v0.6.5

type AttachRequest struct {
	Name string
	ID   string
}

type CmdOutput

type CmdOutput struct {
	Status  string
	Message string
	Options map[string]string
	Device  string `json:"device"`
}

type ExtDriver added in v0.6.5

type ExtDriver interface {
	Attach(AttachRequest) volume.Response
}

type RancherState

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

func NewRancherState

func NewRancherState(driver string, client *client.RancherClient) (*RancherState, error)

func (*RancherState) Get

func (r *RancherState) Get(name string) (*volume.Volume, *client.Volume, error)

func (*RancherState) IsCreated

func (r *RancherState) IsCreated(name string) (bool, error)

func (*RancherState) List

func (r *RancherState) List() ([]*volume.Volume, error)

func (*RancherState) Save

func (r *RancherState) Save(name string, options map[string]string, try int) error

type RancherStorageDriver

type RancherStorageDriver struct {
	DriverName      string
	Basedir         string
	Scope           string
	CreateSupported bool
	Command         string

	FsType string

	SaveOnAttach bool

	Rancher bool
	// contains filtered or unexported fields
}

func NewRancherStorageDriver

func NewRancherStorageDriver(driver string, client *client.RancherClient, cli *dockerClient.Client) (*RancherStorageDriver, error)

func (*RancherStorageDriver) Attach added in v0.6.5

func (*RancherStorageDriver) Capabilities

func (*RancherStorageDriver) Create

func (d *RancherStorageDriver) Create(request volume.Request) volume.Response

func (*RancherStorageDriver) Get

func (*RancherStorageDriver) List

func (*RancherStorageDriver) ListAllVolumes added in v0.9.0

func (d *RancherStorageDriver) ListAllVolumes() ([]*volume.Volume, error)

func (*RancherStorageDriver) Mount

func (*RancherStorageDriver) Path

func (*RancherStorageDriver) Remove

func (d *RancherStorageDriver) Remove(request volume.Request) volume.Response

func (*RancherStorageDriver) Unmount

Jump to

Keyboard shortcuts

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