Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tar ¶
type Tar interface { // SetExclusionPattern sets the exclusion pattern for tar // creation SetExclusionPattern(*regexp.Regexp) // CreateTarFile creates a tar file in the base directory // using the contents of dir directory // The name of the new tar file is returned if successful CreateTarFile(base, dir string) (string, error) // CreateTarStreamWithLogging creates a tar from the given directory // and streams it to the given writer. // An error is returned if an error occurs during streaming. // Archived file names are written to the logger if provided CreateTarStreamWithLogging(dir string, includeDirInPath bool, writer io.Writer, logger io.Writer) error // CreateTarStream creates a tar from the given directory // and streams it to the given writer. // An error is returned if an error occurs during streaming. CreateTarStream(dir string, includeDirInPath bool, writer io.Writer) error // ExtractTarStream extracts files from a given tar stream. // Times out if reading from the stream for any given file // exceeds the value of timeout ExtractTarStream(dir string, reader io.Reader) error // ExtractTarStreamWithLogging extracts files from a given tar stream. // Times out if reading from the stream for any given file // exceeds the value of timeout. // Extracted file names are written to the logger if provided. ExtractTarStreamWithLogging(dir string, reader io.Reader, logger io.Writer) error }
Tar can create and extract tar files used in an STI build
Click to show internal directories.
Click to hide internal directories.