suitcase

package
v0.10.3 Latest Latest
Warning

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

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

Documentation

Overview

Package suitcase holds all the stuff necessary for a suitecase generation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillWithInventoryIndex

func FillWithInventoryIndex(s Suitcase, i *inventory.DirectoryInventory, index int, stateC chan FillState) ([]helpers.HashSet, error)

FillWithInventoryIndex fills up a suitcase using the given inventory

func PostProcess

func PostProcess(s Suitcase) error

PostProcess executes post processing commands

func WriteSuitcaseFile

func WriteSuitcaseFile(so *config.SuitCaseOpts, i *inventory.DirectoryInventory, index int, stateC chan FillState) (string, error)

WriteSuitcaseFile will write out the suitcase

Types

type FillState

type FillState struct {
	Current        uint
	Total          uint
	Completed      bool
	CurrentPercent float64
	Index          int
}

FillState is the current state of a suitcase file

type Suitcase

type Suitcase interface {
	Close() error
	Add(inventory.File) (*helpers.HashSet, error)
	AddEncrypt(f inventory.File) error
	Config() *config.SuitCaseOpts
}

Suitcase is the interface that describes what a Suitcase does

func New

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

New Create a new suitcase

Directories

Path Synopsis
Package tar provides simple tar suitcases
Package tar provides simple tar suitcases
Package targpg works the tar.gpg suitcases
Package targpg works the tar.gpg suitcases
Package targz creates tar.gz files
Package targz creates tar.gz files
Package targzgpg provides gpg encrypted tar.gz suitcases
Package targzgpg provides gpg encrypted tar.gz suitcases

Jump to

Keyboard shortcuts

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