volumes

package
v1.2.1-0...-8128339 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2014 License: Apache-2.0 Imports: 9 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) Get

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

func (*Repository) NewVolume

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

func (*Repository) Remove

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

type Volume

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

func (*Volume) AddContainer

func (v *Volume) AddContainer(containerId string)

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