Documentation ¶
Index ¶
- func FromDir(rootfs string, rootless bool) (fs.FsNode, error)
- func NewFS() fs.FsNode
- func ParseFsSpec(b []byte) (r fs.FsNode, err error)
- type FsBuilder
- func (b *FsBuilder) AddAll(srcfs string, sources []string, dest string, usr *idutils.UserIds)
- func (b *FsBuilder) AddFiles(srcFile, dest string, usr *idutils.UserIds)
- func (b *FsBuilder) AddURL(rawURL, dest string)
- func (b *FsBuilder) CopyAll(srcfs string, sources []string, dest string, usr *idutils.UserIds)
- func (b *FsBuilder) CopyDir(srcFile, dest string, usr *idutils.UserIds)
- func (b *FsBuilder) FS() (fs.FsNode, error)
- func (b *FsBuilder) Hash(attrs fs.AttrSet) (d digest.Digest, err error)
- func (b *FsBuilder) HttpHeaderCache(cache source.HttpHeaderCache)
- func (b *FsBuilder) Write(w fs.Writer) error
- type FsNode
- func (f *FsNode) AddLower(path string, src fs.Source) (r fs.FsNode, err error)
- func (f *FsNode) AddUpper(path string, src fs.Source) (r fs.FsNode, err error)
- func (f *FsNode) AddWhiteout(path string) (fs.FsNode, error)
- func (f *FsNode) AddWhiteoutNode(path string) (r *FsNode, err error)
- func (f *FsNode) Diff(o fs.FsNode) (r fs.FsNode, err error)
- func (f *FsNode) Empty() bool
- func (f *FsNode) Equal(o *FsNode) (bool, error)
- func (f *FsNode) Hash(attrs fs.AttrSet) (digest.Digest, error)
- func (f *FsNode) Link(path, target string) (linked fs.FsNode, dest fs.FsNode, err error)
- func (f *FsNode) Mkdirs(path string) (r fs.FsNode, err error)
- func (f *FsNode) MockDevices()
- func (f *FsNode) Name() string
- func (f *FsNode) Node(path string) (r fs.FsNode, err error)
- func (f *FsNode) Normalized() (fs.FsNode, error)
- func (f *FsNode) Parent() (p *FsNode)
- func (f *FsNode) Path() (p string)
- func (f *FsNode) Remove()
- func (f *FsNode) RemoveWhiteouts()
- func (f *FsNode) Root() (r *FsNode)
- func (f *FsNode) SetSource(src fs.Source)
- func (f *FsNode) String() (p string)
- func (f *FsNode) Write(w fs.Writer) (err error)
- func (f *FsNode) WriteTo(w io.Writer, attrs fs.AttrSet) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FsBuilder ¶
type FsBuilder struct {
// contains filtered or unexported fields
}
func (*FsBuilder) AddAll ¶
Copies all files that match the provided glob source pattern. Source tar archives are extracted into dest. Source URLs are also supported. See https://docs.docker.com/engine/reference/builder/#add
func (*FsBuilder) CopyAll ¶
Copies all files that match the provided glob source pattern to dest. See https://docs.docker.com/engine/reference/builder/#copy
func (*FsBuilder) HttpHeaderCache ¶
func (b *FsBuilder) HttpHeaderCache(cache source.HttpHeaderCache)
type FsNode ¶
func (*FsNode) AddWhiteoutNode ¶
func (*FsNode) Diff ¶
Returns a file system tree containing only new and changed nodes. Nodes that do not exist in the provided file system are returned as whiteouts. Hardlinks from new to unchanged (upper to lower) nodes are supported by adding hardlinked files to diff as well (to preserve hardlinks and stay compatible with external tar tools when writing diff into tar file).
func (*FsNode) MockDevices ¶
func (f *FsNode) MockDevices()
Removes whiteout nodes recursively in all children
func (*FsNode) Normalized ¶
Returns a new normalized file system tree
func (*FsNode) RemoveWhiteouts ¶
func (f *FsNode) RemoveWhiteouts()
Removes whiteout nodes recursively in all children