Documentation ¶
Index ¶
- Variables
- func Init(home string, options []string) (graphdriver.Driver, error)
- func Mounted(mountpoint string) (bool, error)
- func ProbeFsType(device string) (string, error)
- type DevInfo
- type DevStatus
- type DeviceSet
- func (devices *DeviceSet) AddDevice(hash, baseHash string) error
- func (devices *DeviceSet) DMLog(level int, file string, line int, dmError int, message string)
- func (devices *DeviceSet) DeleteDevice(hash string) error
- func (devices *DeviceSet) GetDeviceStatus(hash string) (*DevStatus, error)
- func (devices *DeviceSet) HasActivatedDevice(hash string) bool
- func (devices *DeviceSet) HasDevice(hash string) bool
- func (devices *DeviceSet) List() []string
- func (devices *DeviceSet) MountDevice(hash, path, mountLabel string) error
- func (devices *DeviceSet) ResizePool(size int64) error
- func (devices *DeviceSet) Shutdown() error
- func (devices *DeviceSet) Status() *Status
- func (devices *DeviceSet) UnmountDevice(hash string) error
- type DiskUsage
- type Driver
- func (d *Driver) Cleanup() error
- func (d *Driver) Create(id, parent string) error
- func (d *Driver) Exists(id string) bool
- func (d *Driver) Get(id, mountLabel string) (string, error)
- func (d *Driver) Put(id string)
- func (d *Driver) Remove(id string) error
- func (d *Driver) Status() [][2]string
- func (d *Driver) String() string
- type MetaData
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultDataLoopbackSize int64 = 100 * 1024 * 1024 * 1024 DefaultMetaDataLoopbackSize int64 = 2 * 1024 * 1024 * 1024 DefaultBaseFsSize uint64 = 10 * 1024 * 1024 * 1024 DefaultThinpBlockSize uint32 = 128 // 64K = 128 512b sectors )
Functions ¶
func ProbeFsType ¶
Types ¶
type DevInfo ¶
type DeviceSet ¶
type DeviceSet struct { MetaData `json:"-"` sync.Mutex `json:"-"` // Protects Devices map and serializes calls into libdevmapper TransactionId uint64 `json:"-"` NewTransactionId uint64 `json:"-"` NextDeviceId int `json:"next_device_id"` // contains filtered or unexported fields }
func NewDeviceSet ¶
func (*DeviceSet) DeleteDevice ¶
func (*DeviceSet) GetDeviceStatus ¶
func (*DeviceSet) HasActivatedDevice ¶
func (*DeviceSet) MountDevice ¶
func (*DeviceSet) ResizePool ¶
func (*DeviceSet) UnmountDevice ¶
Click to show internal directories.
Click to hide internal directories.