Documentation ¶
Index ¶
- type Mounter
- func (n *Mounter) GetMountRefs(pathname string) ([]string, error)
- func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error)
- func (*Mounter) List() ([]mount.MountPoint, error)
- func (n *Mounter) Mount(source string, target string, fstype string, options []string) error
- func (n *Mounter) MountSensitive(source string, target string, fstype string, options []string, ...) error
- func (n *Mounter) Unmount(target string) error
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
}
func (*Mounter) IsLikelyNotMountPoint ¶
func (*Mounter) List ¶
func (*Mounter) List() ([]mount.MountPoint, error)
List returns a list of all mounted filesystems in the host's mount namespace.
func (*Mounter) Mount ¶
Mount runs mount(8) in the host's root mount namespace. Aside from this aspect, Mount has the same semantics as the mounter returned by mount.New()
func (*Mounter) MountSensitive ¶
func (n *Mounter) MountSensitive(source string, target string, fstype string, options []string, sensitiveOptions []string) error
MountSensitive is the same as Mount() but this method allows sensitiveOptions to be passed in a separate parameter from the normal mount options and ensures the sensitiveOptions are never logged. This method should be used by callers that pass sensitive material (like passwords) as mount options.
Click to show internal directories.
Click to hide internal directories.