common

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GPGKeyPrefix = "gpg:"
	FulcioPrefix = "fulcio:"
)

Variables

This section is empty.

Functions

func CheckIfSigningViable added in v0.2.0

func CheckIfSigningViable(_ *cobra.Command, _ []string) error

CheckIfSigningViable checks if we are able to sign RSL entries given the current environment

func CheckIfSigningViableWithFlag added in v0.4.0

func CheckIfSigningViableWithFlag(cmd *cobra.Command, _ []string) error

CheckIfSigningViableWithFlag checks if a signing key was specified via the "signing-key" flag, and then calls CheckIfSigningViable

func LoadPublicKey added in v0.3.0

func LoadPublicKey(key string) (*tuf.Key, error)

LoadPublicKey returns a tuf.Key object for a PGP / Sigstore Fulcio / SSH (on-disk) key for use in gittuf metadata.

func LoadSigner added in v0.3.0

func LoadSigner(keyBytes []byte) (sslibdsse.SignerVerifier, error)

LoadSigner loads a signer for the specified key bytes. The key must be encoded either in a standard PEM format. For now, the custom securesystemslib format is also supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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