manager

package
v0.3.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager represents a management layer for a set of mountpoints.

func NewManager

func NewManager(mountpoints *mount.Points) *Manager

NewManager initializes and returns a Manager.

func (*Manager) MountAll

func (m *Manager) MountAll() (err error)

MountAll mounts the device(s).

func (*Manager) MoveAll

func (m *Manager) MoveAll(prefix string) (err error)

MoveAll moves the device(s). TODO(andrewrynhard): We need to skip calling the move method on mountpoints that are a child of another mountpoint. The kernel will handle moving the child mountpoints for us.

func (*Manager) UnmountAll

func (m *Manager) UnmountAll() (err error)

UnmountAll unmounts the device(s).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL