tar

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 12 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) (*helpers.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