package volumes

import "github.com/docker/docker/volumes"

Index

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) 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

Source Files

repository.go volume.go

Version
v1.3.0
Published
Oct 15, 2014
Platform
js/wasm
Imports
10 packages
Last checked
3 minutes ago

Tools for package owners.