hostmount

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 4 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 {
}

Mounter implements mount.Interface for unsupported platforms

func New

func New(ne *nsenter.Nsenter) *Mounter

func (*Mounter) GetMountRefs

func (mounter *Mounter) GetMountRefs(pathname string) ([]string, error)

GetMountRefs always returns an error on unsupported platforms

func (*Mounter) IsLikelyNotMountPoint

func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error)

IsLikelyNotMountPoint always returns an error on unsupported platforms

func (*Mounter) List

func (mounter *Mounter) List() ([]mount.MountPoint, error)

List always returns an error on unsupported platforms

func (*Mounter) Mount

func (mounter *Mounter) Mount(source string, target string, fstype string, options []string) error

Mount always returns an error on unsupported platforms

func (*Mounter) MountSensitive

func (n *Mounter) MountSensitive(source string, target string, fstype string, options []string, sensitiveOptions []string) error

MountSensitive always returns an error on unsupported platforms

func (*Mounter) Unmount

func (mounter *Mounter) Unmount(target string) error

Unmount always returns an error on unsupported platforms

Jump to

Keyboard shortcuts

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