config

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config holds configuration options for suitcases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashSet added in v0.12.0

type HashSet struct {
	Filename string
	Hash     string
}

HashSet is a combination Filename and Hash

type SuitCaseOpts

type SuitCaseOpts struct {
	Format            string
	Destination       string
	EncryptInner      bool // Encrypt all files in the archive
	EncryptOuter      bool // Encrypt the archive itself
	HashInner         bool // Hash files inside the archive
	HashOuter         bool // Hash the archive itself
	HashAlgorithm     string
	EncryptTo         *openpgp.EntityList
	PostProcessScript string
	PostProcessEnv    map[string]string
}

SuitCaseOpts is options for a given suitcase

func (*SuitCaseOpts) EncryptToCobra

func (s *SuitCaseOpts) EncryptToCobra(cmd *cobra.Command) error

EncryptToCobra fills in the EncryptTo option using cobra.Command options

Jump to

Keyboard shortcuts

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