overlay

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(cfg *MountCfg) error

Mount mounts the upper and lower directories to the destination directory. The MountCfg struct supplies information required to build the mount system call.

Types

type MountCfg

type MountCfg struct {
	Lower,
	Upper,
	Work,
	Dest,
	Lbl string
}

MountCfg contains the needed data to construct the overlay mount syscall. The Lower and Upper fields are paths to the filesystems to be merged. The Work field should be an empty directory. Dest is where the mount will be located. Lbl is an SELinux label.

func (*MountCfg) Opts added in v1.23.0

func (cfg *MountCfg) Opts() string

Opts returns options for mount system call.

Jump to

Keyboard shortcuts

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