package aufs

import "github.com/dotcloud/docker/aufs"

Index

Functions

func Init

func Init(root string) (graphdriver.Driver, error)

New returns a new AUFS driver. An error is returned if AUFS is not supported.

func Mounted

func Mounted(mountpoint string) (bool, error)

func Unmount

func Unmount(target string) error

Types

type AufsDriver

type AufsDriver struct {
	// contains filtered or unexported fields
}

func (*AufsDriver) ApplyDiff

func (a *AufsDriver) ApplyDiff(id string, diff archive.Archive) error

func (*AufsDriver) Changes

func (a *AufsDriver) Changes(id string) ([]archive.Change, error)

func (*AufsDriver) Cleanup

func (a *AufsDriver) Cleanup() error

During cleanup aufs needs to unmount all mountpoints

func (*AufsDriver) Create

func (a *AufsDriver) Create(id, parent string) error

Three folders are created for each id mnt, layers, and diff

func (*AufsDriver) Diff

func (a *AufsDriver) Diff(id string) (archive.Archive, error)

Returns an archive of the contents for the id

func (*AufsDriver) Get

func (a *AufsDriver) Get(id string) (string, error)

Return the rootfs path for the id This will mount the dir at it's given path

func (*AufsDriver) Remove

func (a *AufsDriver) Remove(id string) error

Unmount and remove the dir information

func (*AufsDriver) Size

func (a *AufsDriver) Size(id string) (int64, error)

Returns the size of the contents for the id

func (*AufsDriver) String

func (a *AufsDriver) String() string

Source Files

aufs.go dirs.go mount.go

Version
v0.7.0-rc5
Published
Nov 15, 2013
Platform
js/wasm
Imports
13 packages
Last checked
3 minutes ago

Tools for package owners.