Documentation ¶
Index ¶
- func Do(unpack Unpack, archive, dest string, options *Options) error
- func Untar(src afero.File, fs afero.Fs, options *Options) error
- func UntarReader(r io.Reader, compressed bool, fs afero.Fs, options *Options) error
- func Unzip(src afero.File, fs afero.Fs, options *Options) error
- type Options
- type TarballWriter
- type Unpack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Unpack an archive in the real OS filesystem. The destination directory will be created fresh.
func UntarReader ¶
Types ¶
type TarballWriter ¶ added in v0.4.21
type TarballWriter struct {
// contains filtered or unexported fields
}
func NewTarballFileWriter ¶ added in v0.4.21
func NewTarballFileWriter(fs afero.Fs, path string) (*TarballWriter, error)
func NewTarballWriter ¶ added in v0.4.21
func NewTarballWriter(file afero.File) *TarballWriter
func (*TarballWriter) Close ¶ added in v0.4.21
func (t *TarballWriter) Close() error
func (*TarballWriter) GetFile ¶ added in v0.4.21
func (t *TarballWriter) GetFile() afero.File
Click to show internal directories.
Click to hide internal directories.