package volumes
import "github.com/docker/docker/volumes"
Index ¶
- type Repository
- func NewRepository(configPath string, driver graphdriver.Driver) (*Repository, error)
- func (r *Repository) Add(volume *Volume) error
- func (r *Repository) Delete(path string) error
- func (r *Repository) FindOrCreateVolume(path string, writable bool) (*Volume, error)
- func (r *Repository) Get(path string) *Volume
- func (r *Repository) Remove(volume *Volume)
- type Volume
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 (*Volume) Containers ¶
func (*Volume) FromDisk ¶
func (*Volume) IsDir ¶
func (*Volume) RemoveContainer ¶
func (*Volume) ToDisk ¶
Source Files ¶
- Version
- v1.3.0
- Published
- Oct 15, 2014
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 3 minutes ago –
Tools for package owners.