tar

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package tar provides simple tar suitcases

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 as tar.

func New

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

New tar archive.

func (Suitcase) Add

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

Add file to the archive.

func (Suitcase) AddEncrypt

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

AddEncrypt adds and encrypts file to the archive.

func (Suitcase) Close

func (a Suitcase) Close() error

Close all closeables.

func (Suitcase) Config

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

Config is the configuration for a suitcase

Jump to

Keyboard shortcuts

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