Documentation
¶
Overview ¶
Package udiskstest is a fake UDisks2 on a private bus: drives and their volumes a test adds and removes, mounted into directories the test owns, so nothing on the host is ever mounted.
Index ¶
Constants ¶
const ( CallMount = "Mount" CallUnmount = "Unmount" CallUnlock = "Unlock" CallLock = "Lock" CallPowerOff = "PowerOff" CallEject = "Eject" )
The calls Calls records, each followed by a space and the object.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Drive ¶
type Drive struct {
Removable, Ejectable, CanPowerOff bool
}
Drive is a drive the test adds.
type UDisks ¶
type UDisks struct {
// Bus is the private bus the fake owns its name on.
Bus *dbustest.Bus
// Calls lists the method calls, "Mount <object>" and the like, in
// order.
Calls dbustest.Var[[]string]
// Busy makes every Unmount fail as a filesystem in use.
Busy dbustest.Var[bool]
// Passphrase is the passphrase every container unlocks with.
Passphrase string
// MountRoot is where volumes mount, a directory each by label.
MountRoot string
// contains filtered or unexported fields
}
UDisks is the fake.