cli

package
v0.0.0-...-e388584 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditYaml

func AuditYaml() *ffcli.Command

Audit builds and returns an ffcli command

func SignYaml

func SignYaml() *ffcli.Command

func VerifyYaml

func VerifyYaml() *ffcli.Command

Verify builds and returns an ffcli command

Types

type AuditYamlCommand

type AuditYamlCommand struct {
	APIVersion string
	Kind       string
	Namespace  string
	Name       string
}

AuditCommand verifies a signature on a supplied container image

func (*AuditYamlCommand) Exec

func (c *AuditYamlCommand) Exec(ctx context.Context, args []string) error

Exec runs the verification command

type SignYamlCommand

type SignYamlCommand struct {
	KeyRef      string
	Sk          bool
	PayloadPath string
	Pf          cosign.PassFunc
}

VerifyCommand verifies a signature on a supplied container image

func (*SignYamlCommand) Exec

func (c *SignYamlCommand) Exec(ctx context.Context, args []string) error

func (*SignYamlCommand) SignPayload

func (c *SignYamlCommand) SignPayload(ctx context.Context, payloadJson []byte) ([]byte, []byte, *models.LogEntryAnon, error)

type VerifyYamlCommand

type VerifyYamlCommand struct {
	CheckClaims bool
	KeyRef      string
	Sk          bool
	Output      string
	PayloadPath string
	Yaml        bool
}

VerifyCommand verifies a signature on a supplied container image

func (*VerifyYamlCommand) Exec

func (c *VerifyYamlCommand) Exec(ctx context.Context, args []string) error

Exec runs the verification command

Jump to

Keyboard shortcuts

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