Documentation ¶
Index ¶
- type Repository
- 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
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) 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 ¶ added in v1.4.0
func (v *Volume) Export(resource, name string) (io.ReadCloser, error)
func (*Volume) RemoveContainer ¶
Click to show internal directories.
Click to hide internal directories.