tarbz2

package
v0.14.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tarbz2 creates tar.bz2 files

Unsure if this should stay, so not putting it in the CLI quite yet. All tests point to zst files being much more efficient

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suitcase

type Suitcase struct {
	// contains filtered or unexported fields
}

Suitcase represents everything needef for a tar.gz suitcase

func New

func New(target io.Writer, opts *config.SuitCaseOpts) Suitcase

New tar archive.

func (Suitcase) Add

func (s Suitcase) Add(f inventory.File) (*config.HashSet, error)

Add file to the archive.

func (Suitcase) AddEncrypt

func (s Suitcase) AddEncrypt(f inventory.File) error

AddEncrypt Adds and encrypt file to the archive.

func (Suitcase) Close

func (s Suitcase) Close() error

Close all closeables.

func (Suitcase) Config

func (s Suitcase) Config() *config.SuitCaseOpts

Config returns the config options

func (Suitcase) GetHashes

func (s Suitcase) GetHashes() []config.HashSet

GetHashes returns the hashes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL