Documentation ¶
Index ¶
- func CreateBlock(block, fstype, mountLabel string, size uint64) error
- func GetImage(blockBase, mntBase, id, fstype, mountLabel string, uid, gid int) error
- func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (graphdriver.Driver, error)
- func PutImage(mntBase, id string) error
- type Driver
- func (d *Driver) Cleanup() error
- func (d *Driver) Create(id, parent, mountLabel string) error
- func (d *Driver) Exists(id string) bool
- func (d *Driver) Get(id, mountLabel string) (string, error)
- func (d *Driver) GetMetadata(id string) (map[string]string, error)
- func (d *Driver) Put(id string) error
- func (d *Driver) Remove(id string) error
- func (d *Driver) Status() [][2]string
- func (d *Driver) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlock ¶
Types ¶
type Driver ¶
type Driver struct { sync.Mutex // Protects concurrent modification to active // contains filtered or unexported fields }
Driver holds information about the driver, home directory of the driver. Driver implements graphdriver.ProtoDriver. It uses only basic vfs operations. In order to support layering, the block is created via reflink with the the parent layer Driver must be wrapped in NaiveDiffDriver to be used as a graphdriver.Driver
func (*Driver) Cleanup ¶
Cleanup is used to implement graphdriver.ProtoDriver. There is no cleanup required for this driver.
func (*Driver) Create ¶
Create prepares the filesystem for the rawblock driver and copies the block from the parent.
func (*Driver) GetMetadata ¶
GetMetadata is used for implementing the graphdriver.ProtoDriver interface.
Click to show internal directories.
Click to hide internal directories.