mount

package
v0.0.0-...-73e0568 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMounts

func GetMounts(dep util.IDependencies) ([]*models.Mount, map[string]*models.Mount, error)

GetMounts return a list of all host mounts, a map having the directory as key and error if any. The map is returned to avoid O(n^2) while trying to match new mounts with the existing ones.

func IsPathMounted

func IsPathMounted(path string) bool

Types

type Manager

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

func New

func New() (*Manager, error)

func (*Manager) Init

func (*Manager) Update

func (m *Manager) Update(config models.DeviceConfigurationMessage) error

Jump to

Keyboard shortcuts

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