# Functions
No description provided by the author
CanonicalTarNameForPath returns platform-specific filepath to canonical posix-style path for tar archival.
Clean run filepath.Clean on the target and will remove leading and trailing slashes from the target path corresponding to supplied booleans.
CreateFilterSpec creates a FilterSpec from a supplied map.
Decodes a base64 encoded string from EncodeFilterSpec into a FilterSpec.
Diff produces a tar archive containing the differences between two filesystems.
No description provided by the author
Encode the filter spec.
GenerateFilterSpec will populate the appropriate relative Rebase and Strip paths based on the supplied scenarios.
MultiReader is based off the io.MultiReader but will make use of WriteTo or ReadFrom delegation and ONLY supports usage via the WriteTo method on itself.
NewStripper returns a WriterTo that will strip the trailing end-of-archive bytes from the supplied tar stream.
OfflineUnpack wraps Unpack for usage in contexts without a childReaper, namely when copying to an offline container with docker cp.
OnlineUnpack will extract a tar stream tarStream to folder root inside of a running container.
No description provided by the author
UnpackNoChroot will unpack the given tarstream(if it is a tar stream) on the local filesystem based on the specified root combined with any rebase from the path spec
the pathSpec will include the following elements - include : any tar entry that has a path below(after stripping) the include path will be written - strip : The strip string will indicate the - exlude : marks paths that are to be excluded from the write - rebase : marks the the write path that will be tacked onto (appended or prepended? TODO improve this comment) the "root".
# Constants
ChangeTypeKey defines the key for the type of diff change stored in the tar Xattrs header.
CopyFrom is used to indicate that the desired filter spec is for the CopyFrom direction.
CopyTo is used to indicate that the desired filter spec is for a CopyTo direction.
Exclude specifies a path exclusion.
Include specifies a path inclusion.
Rebase specifies a path rebase.
Strip specifies a path strip.
# Structs
CancelNotifyKey allows for a notification when cancelation is complete.
FilterSpec describes rules for handling specified paths during archival.
Stripper strips the end-of-archive entries from a tar stream.
# Interfaces
Archiver defines an API for creating archives consisting of data that exist between a child and parent layer, as well as unpacking archives to container filesystems.
# Type aliases
FilterType specifies what type of filter to apply in a FilterSpec.