package parsehelpers

import "github.com/containerd/imgcrypt/images/encryption/parsehelpers"

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

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
}

Source Files

parsehelpers.go

Version
v1.1.11 (latest)
Published
Apr 19, 2024
Platform
js/wasm
Imports
11 packages
Last checked
6 hours ago

Tools for package owners.