Documentation ¶
Index ¶
- Constants
- func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (graphdriver.Driver, error)
- type Layer0
- func (l *Layer0) ApplyDiff(id string, parent string, diff io.Reader) (size int64, err error)
- func (l *Layer0) Create(id string, parent string, opts *graphdriver.CreateOpts) error
- func (l *Layer0) Exists(id string) bool
- func (l *Layer0) Get(id string, mountLabel string) (containerfs.ContainerFS, error)
- func (l *Layer0) GetMetadata(id string) (map[string]string, error)
- func (l *Layer0) Put(id string) error
- func (l *Layer0) Remove(id string) error
- type Layer0Vol
Constants ¶
View Source
const ( // Name of the driver Name = "layer0" // Type of the driver Type = api.DriverType_DRIVER_TYPE_GRAPH // Layer0VolumeDriver constant Layer0VolumeDriver = "layer0.volume_driver" )
Layer0Graphdriver options. This should be passed in as a st
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Layer0 ¶
type Layer0 struct { sync.Mutex // Driver is an implementation of GraphDriver. Only select methods are overridden graphdriver.Driver // contains filtered or unexported fields }
Layer0 implements the graphdriver interface
func (*Layer0) ApplyDiff ¶
ApplyDiff extracts the changeset between the specified layer and its parent
func (*Layer0) Create ¶
func (l *Layer0) Create(id string, parent string, opts *graphdriver.CreateOpts) error
Create creates a new and empty filesystem layer
func (*Layer0) Get ¶
func (l *Layer0) Get(id string, mountLabel string) (containerfs.ContainerFS, error)
Get returns the mountpoint for the layered filesystem
func (*Layer0) GetMetadata ¶
GetMetadata returns key-value pairs
Click to show internal directories.
Click to hide internal directories.