package archive
import "github.com/containerd/containerd/archive"
Index ¶
- func Apply(ctx context.Context, root string, r io.Reader) (int64, error)
- func Diff(ctx context.Context, a, b string) io.ReadCloser
- func WriteDiff(ctx context.Context, w io.Writer, a, b string) error
Functions ¶
func Apply ¶
Apply applies a tar stream of an OCI style diff tar. See https://github.com/opencontainers/image-spec/blob/master/layer.md#applying-changesets
func Diff ¶
func Diff(ctx context.Context, a, b string) io.ReadCloser
Diff returns a tar stream of the computed filesystem difference between the provided directories.
Produces a tar using OCI style file markers for deletions. Deleted files will be prepended with the prefix ".wh.". This style is based off AUFS whiteouts. See https://github.com/opencontainers/image-spec/blob/master/layer.md
func WriteDiff ¶
WriteDiff writes a tar stream of the computed difference between the provided directories.
Produces a tar using OCI style file markers for deletions. Deleted files will be prepended with the prefix ".wh.". This style is based off AUFS whiteouts. See https://github.com/opencontainers/image-spec/blob/master/layer.md
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
archive/compression |
- Version
- v1.0.2-rc.0
- Published
- Jan 30, 2018
- Platform
- js/wasm
- Imports
- 19 packages
- Last checked
- 3 seconds ago –
Tools for package owners.