Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MountOption

type MountOption struct {
	Source string
	Target string
	Type   string
	Flag   uintptr
	Option string
}

type Unmounter

type Unmounter func() error

func Mount

func Mount(mountOpts ...MountOption) (Unmounter, error)

    Mount mounts list of mountOptions and returns a function to unmount them.

    func OverlayMount

    func OverlayMount(target string, src []string, readOnly bool) (Unmounter, error)

      OverlayMount mounts a list of source directories to a target.

      If readOnly was true the target will be read-only.