Versions in this module Expand all Collapse all v0 v0.1.1 Aug 25, 2021 v0.1.0 Aug 24, 2021 Changes in this version + func Init(home string, options context.Options) (context.Driver, error) — linux/amd64 + func Mounted(mountpoint string) (bool, error) — linux/amd64 + func ProbeFsType(device string) (string, error) — linux/amd64 + type DevStatus struct — linux/amd64 + DeviceID int + HighestMappedSector uint64 + MappedSectors uint64 + Size uint64 + SizeInSectors uint64 + TransactionID uint64 + type DeviceSet struct — linux/amd64 + BaseDeviceFilesystem string + BaseDeviceUUID string + NextDeviceID int + TransactionID uint64 + func NewDeviceSet(root string, doInit bool, options []string, uidMaps, gidMaps []idtools.IDMap) (*DeviceSet, error) + func (devices *DeviceSet) AddDevice(hash, baseHash string, storageOpt map[string]string) error + func (devices *DeviceSet) DataDevicePath() string + func (devices *DeviceSet) DeleteDevice(hash string, syncDelete bool) error + func (devices *DeviceSet) GetDeviceStatus(hash string) (*DevStatus, error) + func (devices *DeviceSet) HasDevice(hash string) bool + func (devices *DeviceSet) List() []string + func (devices *DeviceSet) MetadataDevicePath() string + func (devices *DeviceSet) MountDevice(hash, path string, moptions context.MountOpts) error + func (devices *DeviceSet) ResizePool(size int64) error + func (devices *DeviceSet) Shutdown(home string) error + func (devices *DeviceSet) Status() *Status + func (devices *DeviceSet) UnmountDevice(hash, mountPath string) error + type DiskUsage struct — linux/amd64 + Available uint64 + Total uint64 + Used uint64 + type Driver struct — linux/amd64 + func (d *Driver) AdditionalImageStores() []string + func (d *Driver) Cleanup() error + func (d *Driver) Create(id, parent string, opts *context.CreateOpts) error + func (d *Driver) CreateFromTemplate(id, template string, templateIDMappings *idtools.IDMappings, parent string, ...) error + func (d *Driver) CreateReadWrite(id, parent string, opts *context.CreateOpts) error + func (d *Driver) Exists(id string) bool + func (d *Driver) Get(id string, options context.MountOpts) (string, error) + func (d *Driver) Metadata(id string) (map[string]string, error) + func (d *Driver) Put(id string) error + func (d *Driver) ReadWriteDiskUsage(id string) (*directory.DiskUsage, error) + func (d *Driver) Remove(id string) error + func (d *Driver) Status() [][2]string + func (d *Driver) String() string + type Status struct — linux/amd64 + BaseDeviceFS string + BaseDeviceSize uint64 + Data DiskUsage + DataFile string + DataLoopback string + DeferredDeleteEnabled bool + DeferredDeletedDeviceCount uint + DeferredRemoveEnabled bool + Metadata DiskUsage + MetadataFile string + MetadataLoopback string + MinFreeSpace uint64 + PoolName string + SectorSize uint64 + UdevSyncSupported bool