package aufs
import "github.com/docker/cli/components/engine/daemon/graphdriver/aufs"
Index ¶
- Variables
- func Init(root string, options []string, uidMaps, gidMaps []idtools.IDMap) (graphdriver.Driver, error)
- func Unmount(target string) error
- type Driver
- func (a *Driver) ApplyDiff(id, parent string, diff io.Reader) (size int64, err error)
- func (a *Driver) Changes(id, parent string) ([]archive.Change, error)
- func (a *Driver) Cleanup() error
- func (a *Driver) Create(id, parent string, opts *graphdriver.CreateOpts) error
- func (a *Driver) CreateReadWrite(id, parent string, opts *graphdriver.CreateOpts) error
- func (a *Driver) Diff(id, parent string) (io.ReadCloser, error)
- func (a *Driver) DiffGetter(id string) (graphdriver.FileGetCloser, error)
- func (a *Driver) DiffSize(id, parent string) (size int64, err error)
- func (a *Driver) Exists(id string) bool
- func (a *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error)
- func (a *Driver) GetMetadata(id string) (map[string]string, error)
- func (a *Driver) Put(id string) error
- func (a *Driver) Remove(id string) error
- func (a *Driver) Status() [][2]string
- func (*Driver) String() string
Variables ¶
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") )
Functions ¶
func Init ¶
func Init(root string, options []string, uidMaps, gidMaps []idtools.IDMap) (graphdriver.Driver, error)
Init returns a new AUFS driver. An error is returned if AUFS is not supported.
func Unmount ¶
Unmount the target specified.
Types ¶
type Driver ¶
Driver contains information about the filesystem mounted.
func (*Driver) ApplyDiff ¶
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.
func (*Driver) Changes ¶
Changes produces a list of changes between the specified layer and its parent layer. If parent is "", then all changes will be ADD changes.
func (*Driver) Cleanup ¶
Cleanup aufs and unmount all mountpoints
func (*Driver) Create ¶
func (a *Driver) Create(id, parent string, opts *graphdriver.CreateOpts) error
Create three folders for each id mnt, layers, and diff
func (*Driver) CreateReadWrite ¶
func (a *Driver) CreateReadWrite(id, parent string, opts *graphdriver.CreateOpts) error
CreateReadWrite creates a layer that is writable for use as a container file system.
func (*Driver) Diff ¶
func (a *Driver) Diff(id, parent string) (io.ReadCloser, error)
Diff produces an archive of the changes between the specified layer and its parent layer which may be "".
func (*Driver) DiffGetter ¶
func (a *Driver) DiffGetter(id string) (graphdriver.FileGetCloser, error)
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.
func (*Driver) DiffSize ¶
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.
func (*Driver) Exists ¶
Exists returns true if the given id is registered with this driver
func (*Driver) Get ¶
func (a *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error)
Get returns the rootfs path for the id. This will mount the dir at its given path
func (*Driver) GetMetadata ¶
GetMetadata not implemented
func (*Driver) Put ¶
Put unmounts and updates list of active mounts.
func (*Driver) Remove ¶
Remove will unmount and remove the given id.
func (*Driver) Status ¶
Status returns current information about the filesystem such as root directory, number of directories mounted, etc.
func (*Driver) String ¶
Source Files ¶
aufs.go dirs.go mount.go mount_linux.go
- Version
- v17.10.0-ce-rc1+incompatible
- Published
- Oct 4, 2017
- Platform
- linux/amd64
- Imports
- 26 packages
- Last checked
- 9 seconds ago –
Tools for package owners.