Versions in this module Expand all Collapse all v1 v1.13.1 Mar 11, 2020 Changes in this version + const FsMagicAufs — linux/amd64 + const FsMagicBtrfs — linux/amd64 + const FsMagicCramfs — linux/amd64 + const FsMagicEcryptfs — linux/amd64 + const FsMagicExtfs — linux/amd64 + const FsMagicF2fs — linux/amd64 + const FsMagicGPFS — linux/amd64 + const FsMagicJffs2Fs — linux/amd64 + const FsMagicJfs — linux/amd64 + const FsMagicNfsFs — linux/amd64 + const FsMagicOverlay — linux/amd64 + const FsMagicRAMFs — linux/amd64 + const FsMagicReiserFs — linux/amd64 + const FsMagicSmbFs — linux/amd64 + const FsMagicSquashFs — linux/amd64 + const FsMagicTmpFs — linux/amd64 + const FsMagicUnsupported + const FsMagicVxFS — linux/amd64 + const FsMagicXfs — linux/amd64 + const FsMagicZfs — linux/amd64 + var ApplyUncompressedLayer = chrootarchive.ApplyUncompressedLayer + var ErrIncompatibleFS = fmt.Errorf("backing file system is unsupported for this graph driver") + var ErrNotSupported = errors.New("driver not supported") + var ErrPrerequisites = errors.New("prerequisites for driver not satisfied (wrong filesystem?)") + var FsNames = map[FsMagic]string — linux/amd64 + func Mounted(fsType FsMagic, mountPath string) (bool, error) — linux/amd64 + func Register(name string, initFunc InitFunc) error + type Checker interface + IsMounted func(path string) bool + func NewDefaultChecker() Checker + func NewFsChecker(t FsMagic) Checker + type CreateOpts struct + MountLabel string + StorageOpt map[string]string + type DiffDriver interface + ApplyDiff func(id, parent string, diff io.Reader) (size int64, err error) + Changes func(id, parent string) ([]archive.Change, error) + Diff func(id, parent string) (io.ReadCloser, error) + DiffSize func(id, parent string) (size int64, err error) + type DiffGetterDriver interface + DiffGetter func(id string) (FileGetCloser, error) + type Driver interface + func GetDriver(name string, pg plugingetter.PluginGetter, config Options) (Driver, error) + func New(name string, pg plugingetter.PluginGetter, config Options) (Driver, error) + func NewNaiveDiffDriver(driver ProtoDriver, uidMaps, gidMaps []idtools.IDMap) Driver + type FileGetCloser interface + Close func() error + type FsMagic uint32 + func GetFSMagic(rootpath string) (FsMagic, error) + type InitFunc func(root string, options []string, uidMaps, gidMaps []idtools.IDMap) (Driver, error) + type NaiveDiffDriver struct + func (gdw *NaiveDiffDriver) ApplyDiff(id, parent string, diff io.Reader) (size int64, err error) + func (gdw *NaiveDiffDriver) Changes(id, parent string) ([]archive.Change, error) + func (gdw *NaiveDiffDriver) Diff(id, parent string) (arch io.ReadCloser, err error) + func (gdw *NaiveDiffDriver) DiffSize(id, parent string) (size int64, err error) + type Options struct + DriverOptions []string + ExperimentalEnabled bool + GIDMaps []idtools.IDMap + Root string + UIDMaps []idtools.IDMap + type ProtoDriver interface + Cleanup func() error + Create func(id, parent string, opts *CreateOpts) error + CreateReadWrite func(id, parent string, opts *CreateOpts) error + Exists func(id string) bool + Get func(id, mountLabel string) (dir string, err error) + GetMetadata func(id string) (map[string]string, error) + Put func(id string) error + Remove func(id string) error + Status func() [][2]string + String func() string + type RefCounter struct + func NewRefCounter(c Checker) *RefCounter + func (c *RefCounter) Decrement(path string) int + func (c *RefCounter) Increment(path string) int