Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mount ¶
Mount mounts the primary system partition of the SIF file at path into mountPath.
Mount may start one or more underlying processes. By default, stdout and stderr of these processes is discarded. To modify this behavior, consider using OptMountStdout and/or OptMountStderr.
By default, Mount searches for a squashfuse binary in the directories named by the PATH environment variable. To override this behavior, consider using OptMountSquashfusePath().
func Unmount ¶
func Unmount(ctx context.Context, mountPath string, opts ...UnmountOpt) error
Unmount unmounts the filesystem at mountPath.
Unmount may start one or more underlying processes. By default, stdout and stderr of these processes is discarded. To modify this behavior, consider using OptUnmountStdout and/or OptUnmountStderr.
By default, Unmount searches for a fusermount binary in the directories named by the PATH environment variable. To override this behavior, consider using OptUnmountFusermountPath().
Types ¶
type MountOpt ¶
type MountOpt func(*mountOpts) error
MountOpt are used to specify mount options.
func OptMountSquashfusePath ¶
OptMountSquashfusePath sets an explicit path to the squashfuse binary. The path must be an absolute or relative path.
func OptMountStderr ¶
OptMountStderr writes standard error to w.
func OptMountStdout ¶
OptMountStdout writes standard output to w.
type UnmountOpt ¶
type UnmountOpt func(*unmountOpts) error
UnmountOpt are used to specify unmount options.
func OptUnmountFusermountPath ¶
func OptUnmountFusermountPath(path string) UnmountOpt
OptUnmountFusermountPath sets the path to the fusermount binary.
func OptUnmountStderr ¶
func OptUnmountStderr(w io.Writer) UnmountOpt
OptUnmountStderr writes standard error to w.
func OptUnmountStdout ¶
func OptUnmountStdout(w io.Writer) UnmountOpt
OptUnmountStdout writes standard output to w.