docker

package
v0.2.0-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProviderName            = "docker"
	MountDirectory          = "/var/lib/rexray/volumes"
	DefaultVolumeSize int64 = 16
)

Variables

This section is empty.

Functions

Types

type Driver

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

func (*Driver) Attach

func (driver *Driver) Attach(volumeName, instanceID string) (string, error)

Attach will attach a volume to an instance

func (*Driver) Create

func (driver *Driver) Create(volumeName string, volumeOpts volume.VolumeOpts) error

Create will create a remote volume

func (*Driver) Detach

func (driver *Driver) Detach(volumeName, instanceID string) error

Remove will remove a remote volume

func (*Driver) Mount

func (driver *Driver) Mount(volumeName, volumeID string, overwriteFs bool, newFsType string) (string, error)

Mount will perform the steps to get an existing Volume with or without a fileystem mounted to a guest

func (*Driver) NetworkName

func (driver *Driver) NetworkName(volumeName, instanceID string) (string, error)

NetworkName will return relevant information about how a volume can be discovered on an OS

func (*Driver) Path

func (driver *Driver) Path(volumeName, volumeID string) (string, error)

Path returns the mounted path of the volume

func (*Driver) Remove

func (driver *Driver) Remove(volumeName string) error

Remove will remove a remote volume

func (*Driver) Unmount

func (driver *Driver) Unmount(volumeName, volumeID string) error

Unmount will perform the steps to unmount and existing volume and detach

Jump to

Keyboard shortcuts

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