cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 27 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Read is for fuzzing
	Read = readPasswordFn
)

Functions

func Download

func Download() *ffcli.Command

func DownloadCmd

func DownloadCmd(ctx context.Context, imageRef string) error

func Generate

func Generate() *ffcli.Command

func GenerateCmd

func GenerateCmd(_ context.Context, imageRef string, a map[string]string, w io.Writer) error

func GenerateKeyPair

func GenerateKeyPair() *ffcli.Command

func GenerateKeyPairCmd

func GenerateKeyPairCmd(ctx context.Context, kmsVal string) error

func GetPass

func GetPass(confirm bool) ([]byte, error)

func MungeCmd

func MungeCmd(_ context.Context, imageRef string) error

func Sign

func Sign() *ffcli.Command

func SignBlob

func SignBlob() *ffcli.Command

func SignBlobCmd

func SignBlobCmd(ctx context.Context, keyPath, kmsVal, payloadPath string, b64 bool, pf cosign.PassFunc) ([]byte, error)

func SignCmd

func SignCmd(ctx context.Context, keyPath string,
	imageRef string, upload bool, payloadPath string,
	annotations map[string]string, kmsVal string, pf cosign.PassFunc, force bool) error

func Triangulate

func Triangulate() *ffcli.Command

func Upload

func Upload() *ffcli.Command

func UploadCmd

func UploadCmd(ctx context.Context, sigRef, payloadRef, imageRef string) error

func Verify

func Verify() *ffcli.Command

func VerifyBlob

func VerifyBlob() *ffcli.Command

func VerifyBlobCmd

func VerifyBlobCmd(ctx context.Context, keyRef, kmsVal, certRef, sigRef, blobRef string) error

func VerifyCmd

func VerifyCmd(ctx context.Context, imageRef string, co cosign.CheckOpts) ([]cosign.SignedPayload, error)

func Version

func Version() *ffcli.Command

Types

type KeyParseError

type KeyParseError struct{}

KeyParseError is an error returned when an incorrect set of key flags are parsed by the CLI

func (*KeyParseError) Error

func (e *KeyParseError) Error() string

type SignatureArgType

type SignatureArgType uint8
const (
	StdinSignature SignatureArgType = iota
	RawSignature   SignatureArgType = iota
	FileSignature  SignatureArgType = iota
)

type VersionInfo

type VersionInfo struct {
	GitVersion   string
	GitCommit    string
	GitTreeState string
	BuildDate    string
	GoVersion    string
	Compiler     string
	Platform     string
}

Jump to

Keyboard shortcuts

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