mounter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mounter

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

Mounter executes mount/umount commands, finds out mount list

func New

func New(log *logrus.Entry) *Mounter

New creates a new Mounter

func (*Mounter) BindMount

func (m *Mounter) BindMount(mountSource, targetPath string) error

BindMount prepares and executes bind mount command

func (*Mounter) FindMountByTargetPath

func (m *Mounter) FindMountByTargetPath(targetPath string) (*k8sMount.MountPoint, error)

FindMountByTargetPath finds mount by mount target path

func (*Mounter) FindMountByTargetPathHasPrefix

func (m *Mounter) FindMountByTargetPathHasPrefix(targetPath string) ([]k8sMount.MountPoint, error)

FindMountByTargetPathHasPrefix finds mounts which target path with specified prefix

func (*Mounter) Mount

func (m *Mounter) Mount(mountSource, targetPath, fsType string, mountOptions []string) error

Mount prepares and executes mount command

func (*Mounter) Unmount

func (m *Mounter) Unmount(targetPath string) error

Unmount prepares end executes umount command and removes mount point

Jump to

Keyboard shortcuts

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