aufs

package
v0.7.0-rc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2013 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL