Versions in this module Expand all Collapse all v0 v0.1.1 Aug 25, 2021 v0.1.0 Aug 24, 2021 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 FsMagicFUSE — 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 = errors.New("backing file system is unsupported for this graph driver") + var ErrLayerUnknown = errors.New("unknown layer") + 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 ChownPathByMaps(path string, toContainer, toHost *idtools.IDMappings) error + func Mounted(fsType FsMagic, mountPath string) (bool, error) — linux/amd64 + func NaiveCreateFromTemplate(d TemplateDriver, id, template string, templateIDMappings *idtools.IDMappings, ...) error + func Register(name string, initFunc InitFunc) error + type AdditionalLayer interface + Blob func() (io.ReadCloser, error) + CreateAs func(id, parent string) error + Info func() (io.ReadCloser, error) + Release func() + type AdditionalLayerStoreDriver interface + LookupAdditionalLayer func(d digest.Digest, ref string) (AdditionalLayer, error) + LookupAdditionalLayerByID func(id string) (AdditionalLayer, error) + type ApplyDiffOpts struct + Diff io.Reader + ForceMask *os.FileMode + IgnoreChownErrors bool + Mappings *idtools.IDMappings + MountLabel string + type Capabilities struct + ReproducesExactDiffs bool + type CapabilityDriver interface + Capabilities func() Capabilities + 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 string, parent string, options ApplyDiffOpts) (size int64, err error) + Changes func(id string, idMappings *idtools.IDMappings, parent string, ...) ([]archive.Change, error) + Diff func(id string, idMappings *idtools.IDMappings, parent string, ...) (io.ReadCloser, error) + DiffSize func(id string, idMappings *idtools.IDMappings, parent string, ...) (size int64, err error) + type DiffGetterDriver interface + DiffGetter func(id string) (FileGetCloser, error) + type Differ interface + ApplyDiff func(dest string, options *archive.TarOptions) (DriverWithDifferOutput, error) + type Driver interface + func GetDriver(name string, config Options) (Driver, error) + func New(name string, config Options) (Driver, error) + func NewNaiveDiffDriver(driver ProtoDriver, updater LayerIDMapUpdater) Driver + type DriverWithDiffer interface + ApplyDiffFromStagingDirectory func(id, parent, stagingDirectory string, diffOutput *DriverWithDifferOutput, ...) error + ApplyDiffWithDiffer func(id, parent string, options *ApplyDiffOpts, differ Differ) (output DriverWithDifferOutput, err error) + CleanupStagingDirectory func(stagingDirectory string) error + DifferTarget func(id string) (string, error) + type DriverWithDifferOutput struct + BigData map[string][]byte + Differ Differ + GIDs []uint32 + Metadata string + Size int64 + Target string + UIDs []uint32 + UncompressedDigest digest.Digest + type FileGetCloser interface + Close func() error + type FsMagic uint32 + func GetFSMagic(rootpath string) (FsMagic, error) + type InitFunc func(homedir string, options Options) (Driver, error) + type LayerIDMapUpdater interface + SupportsShifting func() bool + UpdateLayerIDMap func(id string, toContainer, toHost *idtools.IDMappings, mountLabel string) error + func NewNaiveLayerIDMapUpdater(driver ProtoDriver) LayerIDMapUpdater + type MountOpts struct + DisableShifting bool + GidMaps []idtools.IDMap + MountLabel string + Options []string + UidMaps []idtools.IDMap + Volatile bool + type NaiveDiffDriver struct + func (gdw *NaiveDiffDriver) ApplyDiff(id, parent string, options ApplyDiffOpts) (size int64, err error) + func (gdw *NaiveDiffDriver) Changes(id string, idMappings *idtools.IDMappings, parent string, ...) ([]archive.Change, error) + func (gdw *NaiveDiffDriver) Diff(id string, idMappings *idtools.IDMappings, parent string, ...) (arch io.ReadCloser, err error) + func (gdw *NaiveDiffDriver) DiffSize(id string, idMappings *idtools.IDMappings, parent string, ...) (size int64, err error) + type Options struct + DriverOptions []string + ExperimentalEnabled bool + GIDMaps []idtools.IDMap + Root string + RunRoot string + UIDMaps []idtools.IDMap + type ProtoDriver interface + AdditionalImageStores func() []string + Cleanup func() error + Create func(id, parent string, opts *CreateOpts) error + CreateFromTemplate func(id, template string, templateIDMappings *idtools.IDMappings, parent string, ...) error + CreateReadWrite func(id, parent string, opts *CreateOpts) error + Exists func(id string) bool + Get func(id string, options MountOpts) (dir string, err error) + Metadata func(id string) (map[string]string, error) + Put func(id string) error + ReadWriteDiskUsage func(id string) (*directory.DiskUsage, 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 + type TemplateDriver interface + Create func(id, parent string, opts *CreateOpts) error + CreateReadWrite func(id, parent string, opts *CreateOpts) error + Remove func(id string) error