volumes

package
v1.4.1-0...-aca8e46 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2014 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(configPath string, driver graphdriver.Driver) (*Repository, error)

func (*Repository) Add

func (r *Repository) Add(volume *Volume) error

func (*Repository) Delete

func (r *Repository) Delete(path string) error

func (*Repository) FindOrCreateVolume

func (r *Repository) FindOrCreateVolume(path string, writable bool) (*Volume, error)

func (*Repository) Get

func (r *Repository) Get(path string) *Volume

func (*Repository) Remove

func (r *Repository) Remove(volume *Volume)

type Volume

type Volume struct {
	ID          string
	Path        string
	IsBindMount bool
	Writable    bool
	// contains filtered or unexported fields
}

func (*Volume) AddContainer

func (v *Volume) AddContainer(containerId string)

func (*Volume) Containers

func (v *Volume) Containers() []string

func (*Volume) Export

func (v *Volume) Export(resource, name string) (io.ReadCloser, error)

func (*Volume) FromDisk

func (v *Volume) FromDisk() error

func (*Volume) IsDir

func (v *Volume) IsDir() (bool, error)

func (*Volume) RemoveContainer

func (v *Volume) RemoveContainer(containerId string)

func (*Volume) ToDisk

func (v *Volume) ToDisk() error

Jump to

Keyboard shortcuts

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