targpg

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package targpg works the tar.gpg 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 a tar.gpg

func New

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

New tar archive.

func (Suitcase) Add

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

Add file to the archive.

func (Suitcase) AddEncrypt

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

AddEncrypt Add encrypted 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 is the configuration for a suitcase

func (Suitcase) GetHashes

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

GetHashes returns all the hashes

Jump to

Keyboard shortcuts

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