Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TarFile ¶
TarFile is a representation of a file in a tarball. It consists of two parts, the Header and the Stream. The Header is a regular tar header, the Stream is a byte stream that can be used to read the file's contents
type Tarstream ¶
type Tarstream interface { // Close closes the underlying tar writer Close() error // Add adds tf to the underlying tar writer. First, the header is written. // Then, if tf.Stream is not nil, its contents are copied into underlying // tar writer Add(tf *TarFile) error }
Tarstream is a type for writing tarballs
func NewTarstream ¶
NewTarstream returns a tar stream that wries Add()'ed files to outstream
Click to show internal directories.
Click to hide internal directories.