type MountOption struct { Source string Target string Type string Flag uintptr Option string }
type Unmounter func() error
func Mount(mountOpts ...MountOption) (Unmounter, error)
Mount mounts list of mountOptions and returns a function to unmount them.
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.