...

Package snapshotter

import "github.com/docker/docker/daemon/snapshotter"
Overview
Index

Overview ▾

func NewMounter

func NewMounter(home string, snapshotter string, idMap idtools.IdentityMapping) *refCountMounter

NewMounter creates a new mounter for the provided snapshotter

type Mounter

Mounter handles mounting/unmounting things coming in from a snapshotter with optional reference counting if needed by the filesystem

type Mounter interface {
    // Mount mounts the rootfs for a container and returns the mount point
    Mount(mounts []mount.Mount, containerID string) (string, error)
    // Unmount unmounts the container rootfs
    Unmount(target string) error
    // Mounted returns a target mountpoint if it's already mounted
    Mounted(containerID string) (string, error)
}