Documentation ¶
Index ¶
- func InitDiff(home string, options []string) (graphdriver.Driver, error)
- func InitFilter(home string, options []string) (graphdriver.Driver, error)
- type WindowsGraphDriver
- func (d *WindowsGraphDriver) ApplyDiff(id, parent string, diff archive.ArchiveReader) (size int64, err error)
- func (d *WindowsGraphDriver) Changes(id, parent string) ([]archive.Change, error)
- func (d *WindowsGraphDriver) Cleanup() error
- func (d *WindowsGraphDriver) CopyDiff(sourceId, id string, parentLayerPaths []string) error
- func (d *WindowsGraphDriver) Create(id, parent string) error
- func (d *WindowsGraphDriver) Diff(id, parent string) (arch archive.Archive, err error)
- func (d *WindowsGraphDriver) DiffSize(id, parent string) (size int64, err error)
- func (d *WindowsGraphDriver) Exists(id string) bool
- func (d *WindowsGraphDriver) Export(id string, parentLayerPaths []string) (arch archive.Archive, err error)
- func (d *WindowsGraphDriver) Get(id, mountLabel string) (string, error)
- func (d *WindowsGraphDriver) GetMetadata(id string) (map[string]string, error)
- func (d *WindowsGraphDriver) Import(id string, layerData archive.ArchiveReader, parentLayerPaths []string) (size int64, err error)
- func (d *WindowsGraphDriver) Info() hcsshim.DriverInfo
- func (d *WindowsGraphDriver) LayerIdsToPaths(ids []string) []string
- func (d *WindowsGraphDriver) Put(id string) error
- func (d *WindowsGraphDriver) Remove(id string) error
- func (d *WindowsGraphDriver) Status() [][2]string
- func (d *WindowsGraphDriver) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDiff ¶
func InitDiff(home string, options []string) (graphdriver.Driver, error)
New returns a new Windows differencing disk driver.
func InitFilter ¶
func InitFilter(home string, options []string) (graphdriver.Driver, error)
New returns a new Windows storage filter driver.
Types ¶
type WindowsGraphDriver ¶
type WindowsGraphDriver struct { sync.Mutex // Protects concurrent modification to active // contains filtered or unexported fields }
func (*WindowsGraphDriver) ApplyDiff ¶
func (d *WindowsGraphDriver) ApplyDiff(id, parent string, diff archive.ArchiveReader) (size int64, err error)
ApplyDiff extracts the changeset from the given diff into the layer with the specified id and parent, returning the size of the new layer in bytes.
func (*WindowsGraphDriver) Changes ¶
func (d *WindowsGraphDriver) Changes(id, parent string) ([]archive.Change, error)
Changes produces a list of changes between the specified layer and its parent layer. If parent is "", then all changes will be ADD changes.
func (*WindowsGraphDriver) Cleanup ¶
func (d *WindowsGraphDriver) Cleanup() error
func (*WindowsGraphDriver) CopyDiff ¶
func (d *WindowsGraphDriver) CopyDiff(sourceId, id string, parentLayerPaths []string) error
func (*WindowsGraphDriver) Create ¶
func (d *WindowsGraphDriver) Create(id, parent string) error
func (*WindowsGraphDriver) Diff ¶
func (d *WindowsGraphDriver) Diff(id, parent string) (arch archive.Archive, err error)
Diff produces an archive of the changes between the specified layer and its parent layer which may be "".
func (*WindowsGraphDriver) DiffSize ¶
func (d *WindowsGraphDriver) DiffSize(id, parent string) (size int64, err error)
DiffSize calculates the changes between the specified layer and its parent and returns the size in bytes of the changes relative to its base filesystem directory.
func (*WindowsGraphDriver) Exists ¶
func (d *WindowsGraphDriver) Exists(id string) bool
Exists returns true if the given id is registered with this driver
func (*WindowsGraphDriver) Get ¶
func (d *WindowsGraphDriver) Get(id, mountLabel string) (string, error)
Get returns the rootfs path for the id. This will mount the dir at it's given path
func (*WindowsGraphDriver) GetMetadata ¶
func (d *WindowsGraphDriver) GetMetadata(id string) (map[string]string, error)
func (*WindowsGraphDriver) Import ¶
func (d *WindowsGraphDriver) Import(id string, layerData archive.ArchiveReader, parentLayerPaths []string) (size int64, err error)
func (*WindowsGraphDriver) Info ¶
func (d *WindowsGraphDriver) Info() hcsshim.DriverInfo
func (*WindowsGraphDriver) LayerIdsToPaths ¶
func (d *WindowsGraphDriver) LayerIdsToPaths(ids []string) []string
func (*WindowsGraphDriver) Put ¶
func (d *WindowsGraphDriver) Put(id string) error
func (*WindowsGraphDriver) Remove ¶
func (d *WindowsGraphDriver) Remove(id string) error
Remove unmounts and removes the dir information
func (*WindowsGraphDriver) Status ¶
func (d *WindowsGraphDriver) Status() [][2]string
func (*WindowsGraphDriver) String ¶
func (d *WindowsGraphDriver) String() string