package mount
import "github.com/containerd/containerd/mount"
Index ¶
- Constants
- Variables
- func All(mounts []Mount, target string) error
- func CleanupTempMounts(flags int) ([]error, error)
- func SetTempMountLocation(root string) error
- func Unmount(mount string, flags int) error
- func UnmountAll(mount string, flags int) error
- func WithTempMount(ctx context.Context, mounts []Mount, f func(root string) error) (err error)
- type Info
- type Mount
Constants ¶
const ParentLayerPathsFlag = "parentLayerPaths="
ParentLayerPathsFlag is the options flag used to represent the JSON encoded list of parent layers required to use the layer
Variables ¶
var ( // ErrNotImplementOnWindows is returned when an action is not implemented for windows ErrNotImplementOnWindows = errors.New("not implemented under windows") )
Functions ¶
func All ¶
All mounts all the provided mounts to the provided target
func CleanupTempMounts ¶
CleanupTempMounts all temp mounts and remove the directories
func SetTempMountLocation ¶
SetTempMountLocation sets the temporary mount location
func Unmount ¶
Unmount the mount at the provided path
func UnmountAll ¶
UnmountAll unmounts from the provided path
func WithTempMount ¶
WithTempMount mounts the provided mounts to a temp dir, and pass the temp dir to f. The mounts are valid during the call to the f. Finally we will unmount and remove the temp dir regardless of the result of f.
Types ¶
type Info ¶
Info reveals information about a particular mounted filesystem. This struct is populated from the content in the /proc/<pid>/mountinfo file.
func Lookup ¶
Lookup returns the mount info corresponds to the path.
type Mount ¶
type Mount struct { // Type specifies the host-specific of the mount. Type string // Source specifies where to mount from. Depending on the host system, this // can be a source path or device. Source string // Options contains zero or more fstab-style mount options. Typically, // these are platform specific. Options []string }
Mount is the lingua franca of containerd. A mount represents a serialized mount syscall. Components either emit or consume mounts.
func (*Mount) GetParentPaths ¶
GetParentPaths of the mount
func (*Mount) Mount ¶
Mount to the provided target
Source Files ¶
lookup_unsupported.go mount.go mount_windows.go mountinfo.go temp.go temp_unsupported.go
- Version
- v1.6.0-beta.0
- Published
- Oct 11, 2021
- Platform
- windows/amd64
- Imports
- 11 packages
- Last checked
- 5 seconds ago –
Tools for package owners.