common

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddN

func AddN(val int, oList ...increasable)

func Capabilities

func Capabilities() *volume.CapabilitiesResponse

Capabilities wrapper around github.com/docker/go-plugins-helpers/volume

func Get

func Get(d Driver, vName string) (Volume, Mount, error)

Get wrapper around github.com/docker/go-plugins-helpers/volume

func List

func List(d Driver) (*volume.ListResponse, error)

List wrapper around github.com/docker/go-plugins-helpers/volume

func MountExist

func MountExist(d Driver, vName string) (Volume, Mount, error)

MountExist wrapper around github.com/docker/go-plugins-helpers/volume

func Remove

func Remove(d Driver, vName string) error

Remove wrapper around github.com/docker/go-plugins-helpers/volume

func SetN

func SetN(val int, oList ...increasable)

func Unmount

func Unmount(d Driver, vName string) error

Unmount wrapper around github.com/docker/go-plugins-helpers/volume

Types

type Driver

type Driver interface {
	GetLock() *sync.RWMutex
	GetVolumes() map[string]Volume
	GetMounts() map[string]Mount
	SaveConfig() error
	RunCmd(string) error
}

Driver needed interface for some commons interactions

type Mount

type Mount interface {
	GetPath() string
	// contains filtered or unexported methods
}

Mount needed interface for some commons interactions

type Volume

type Volume interface {
	GetMount() string
	GetRemote() string
	GetStatus() map[string]interface{}
	// contains filtered or unexported methods
}

Volume needed interface for some commons interactions

Jump to

Keyboard shortcuts

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