Documentation ¶
Overview ¶
Package suitcase holds all the stuff necessary for a suitecase generation
Index ¶
- Constants
- func FillWithInventoryIndex(s Suitcase, i *inventory.DirectoryInventory, index int, stateC chan FillState) ([]inventory.HashSet, error)
- func FormatCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func PostProcess(s Suitcase) error
- func WriteSuitcaseFile(so *config.SuitCaseOpts, i *inventory.DirectoryInventory, index int, ...) (string, error)
- type FillState
- type Format
- type Suitcase
Constants ¶
View Source
const ( // NullFormat is the unset value for this type NullFormat = iota // TarFormat is for tar TarFormat // TarGzFormat is for tar.gz TarGzFormat // TarGzGpgFormat is for encrypted tar.gz (tar.gz.gpg) TarGzGpgFormat // TarGpgFormat is for encrypted tar.gz (tar.gpg) TarGpgFormat // TarZstFormat uses the zstd compression engine (tar.zst) TarZstFormat // TarZstGpgFormat uses the zstd compression engine with Gpg (tar.zst.gpg) TarZstGpgFormat )
Variables ¶
This section is empty.
Functions ¶
func FillWithInventoryIndex ¶
func FillWithInventoryIndex(s Suitcase, i *inventory.DirectoryInventory, index int, stateC chan FillState) ([]inventory.HashSet, error)
FillWithInventoryIndex fills up a suitcase using the given inventory
func FormatCompletion ¶ added in v0.11.0
func FormatCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
FormatCompletion returns shell completion
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 Format ¶ added in v0.11.0
type Format int
Format is the format the inventory will use, such as yaml, json, etc
func (*Format) MarshalJSON ¶ added in v0.11.0
MarshalJSON ensures that json conversions use the string value here, not the int value
Directories ¶
Path | Synopsis |
---|---|
Package tar provides simple tar suitcases
|
Package tar provides simple tar suitcases |
Package tarbz2 creates tar.bz2 files
|
Package tarbz2 creates tar.bz2 files |
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 |
Package tarzstd creates tar.zst files
|
Package tarzstd creates tar.zst files |
Package tarzstgpg provides gpg encrypted tar.zst suitcases
|
Package tarzstgpg provides gpg encrypted tar.zst suitcases |
Click to show internal directories.
Click to hide internal directories.