parsehelpers

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Overview

Package parsehelpers provides parse helpers for CLI applications. This package does not depend on any specific CLI library such as github.com/urfave/cli .

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCryptoConfig

func CreateCryptoConfig(args EncArgs, descs []ocispec.Descriptor) (encconfig.CryptoConfig, error)

CreateCryptoConfig from the list of recipient strings and list of key paths of private keys

func CreateDecryptCryptoConfig

func CreateDecryptCryptoConfig(args EncArgs, descs []ocispec.Descriptor) (encconfig.CryptoConfig, error)

CreateDecryptCryptoConfig creates the CryptoConfig object that contains the necessary information to perform decryption from command line options and possibly LayerInfos describing the image and helping us to query for the PGP decryption keys

func CreateGPGClient

func CreateGPGClient(args EncArgs) (ocicrypt.GPGClient, error)

Types

type EncArgs

type EncArgs struct {
	GPGHomedir   string   // --gpg-homedir
	GPGVersion   string   // --gpg-version
	Key          []string // --key
	Recipient    []string // --recipient
	DecRecipient []string // --dec-recipient
}

Jump to

Keyboard shortcuts

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