fuse

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmountWithFuse

func UnmountWithFuse(dir string) error

UnmountWithFuse performs an unmount on the specified directory using fusermount -u.

Types

type ImageMount

type ImageMount struct {
	// Type represents what type of image this mount involves (from among the
	// values in pkg/image)
	Type int

	// Readonly represents whether this is a Readonly overlay
	Readonly bool

	// SourcePath is the path of the image, stripped of any colon-prefixed
	// options (like ":ro")
	SourcePath string

	// EnclosingDir is the location of a secure parent-directory in
	// which to create the actual mountpoint directory
	EnclosingDir string

	// AllowSetuid is set to true to mount the image the "nosuid" option.
	AllowSetuid bool

	// AllowDev is set to true to mount the image without the "nodev" option.
	AllowDev bool

	// AllowOther is set to true to mount the image with the "allow_other" option.
	AllowOther bool
	// contains filtered or unexported fields
}

func (ImageMount) GetMountPoint

func (i ImageMount) GetMountPoint() string

func (*ImageMount) Mount

func (i *ImageMount) Mount() (err error)

Mount mounts an image to a temporary directory. It also verifies that the fusermount utility is present before performing the mount.

func (*ImageMount) SetMountPoint

func (i *ImageMount) SetMountPoint(mountpoint string)

func (ImageMount) Unmount

func (i ImageMount) Unmount() error

Jump to

Keyboard shortcuts

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