Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmountWithFuse ¶
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
Click to show internal directories.
Click to hide internal directories.