Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Mounts map[string]types.MountPoint // map[UUID]MountPoint
}
Config contains the metadata for mount information
type Context ¶
type Context struct {
Root string
}
Context is used when
func Initialize ¶
Initialize provides a Context from a state root directory
func (*Context) Mounts ¶
func (ctx *Context) Mounts() (map[string]types.MountPoint, error)
Mounts is the list of all mounts from the Context's Config (all stored mounts)
func (*Context) NewMountPoint ¶
func (ctx *Context) NewMountPoint() types.MountPoint
NewMountPoint prepares a MountPoint context with a new UUID. Once the MountPoint is populated, it must be saved with SaveMount
Click to show internal directories.
Click to hide internal directories.