var ( // ErrAufsNotSupported is returned if aufs is not supported by the host. ErrAufsNotSupported = fmt.Errorf("AUFS was not found in /proc/filesystems") // ErrAufsNested means aufs cannot be used bc we are in a user namespace ErrAufsNested = fmt.Errorf("AUFS cannot be used in non-init user namespace") )
Init returns a new AUFS driver. An error is returned if AUFS is not supported.
Unmount the target specified.
Driver contains information about the filesystem mounted.
ApplyDiff extracts the changeset from the given diff into the layer with the specified id and parent, returning the size of the new layer in bytes.
Changes produces a list of changes between the specified layer and its parent layer. If parent is "", then all changes will be ADD changes.
Cleanup aufs and unmount all mountpoints
Create three folders for each id mnt, layers, and diff
CreateReadWrite creates a layer that is writable for use as a container file system.
Diff produces an archive of the changes between the specified layer and its parent layer which may be "".
DiffGetter returns a FileGetCloser that can read files from the directory that contains files for the layer differences. Used for direct access for tar-split.
DiffSize calculates the changes between the specified id and its parent and returns the size in bytes of the changes relative to its base filesystem directory.
Exists returns true if the given id is registered with this driver
Get returns the rootfs path for the id. This will mount the dir at it's given path
GetMetadata not implemented
Put unmounts and updates list of active mounts.
Remove will unmount and remove the given id.
Status returns current information about the filesystem such as root directory, number of directories mounted, etc.