Documentation ¶
Overview ¶
Package tartest contains helpers for creating tar archives for usage in tests in the archives package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container int
const ( // ContainerNone denotes no container. This is the default. ContainerNone Container = iota // ContainerGz is a tar archive compressed with gzip. ContainerGz // ContainerXz is a tar archive compressed with xz. ContainerXz // ContainerBz2 is a tar archive compressed with bzip2. ContainerBz2 // ContainerZstd is a tar archive compressed with zstd. ContainerZstd )
type OptionFn ¶
type OptionFn func(*Options)
func WithContainer ¶
WithContainer denotes that a specific container should be used when creating the tar archive.
Click to show internal directories.
Click to hide internal directories.