package volumes
import "github.com/docker/docker/volumes"
Index ¶
- type Repository
- func NewRepository(configPath string, driver graphdriver.Driver) (*Repository, 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
- type Volume
- func (v *Volume) AddContainer(containerId string)
- func (v *Volume) Containers() []string
- func (v *Volume) Export(resource, name string) (io.ReadCloser, error)
- func (v *Volume) FromDisk() error
- func (v *Volume) IsDir() (bool, error)
- func (v *Volume) RemoveContainer(containerId string)
- func (v *Volume) ToDisk() error
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(configPath string, driver graphdriver.Driver) (*Repository, 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
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) Export ¶
func (v *Volume) Export(resource, name string) (io.ReadCloser, error)
func (*Volume) FromDisk ¶
func (*Volume) IsDir ¶
func (*Volume) RemoveContainer ¶
func (*Volume) ToDisk ¶
Source Files ¶
- Version
- v1.6.1
- Published
- May 7, 2015
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 7 minutes ago –
Tools for package owners.