Documentation ¶
Index ¶
- Constants
- Variables
- func Clean() *ffcli.Command
- func CleanCmd(_ context.Context, imageRef string) error
- func Copy() *ffcli.Command
- func CopyCmd(ctx context.Context, srcImg, dstImg string, sigOnly, force bool) error
- func Download() *ffcli.Command
- func DownloadCmd(ctx context.Context, imageRef string) error
- func EnableExperimental() bool
- func Generate() *ffcli.Command
- func GenerateCmd(_ context.Context, imageRef string, annotations map[string]interface{}, ...) error
- func GenerateKeyPair() *ffcli.Command
- func GenerateKeyPairCmd(ctx context.Context, kmsVal, k8sRef string) error
- func GetPass(confirm bool) ([]byte, error)
- func GetPublicKey(ctx context.Context, opts Pkopts, writer NamedWriter, pf cosign.PassFunc) error
- func MungeCmd(_ context.Context, imageRef string) error
- func PrintVerification(imgRef string, verified []cosign.SignedPayload, co *cosign.CheckOpts, ...)
- func PublicKey() *ffcli.Command
- func Sign() *ffcli.Command
- func SignBlob() *ffcli.Command
- func SignBlobCmd(ctx context.Context, ko KeyOpts, payloadPath string, b64 bool, ...) ([]byte, error)
- func SignCmd(ctx context.Context, so SignOpts, imageRef string, upload bool, ...) error
- func TlogServer() string
- func Triangulate() *ffcli.Command
- func Upload() *ffcli.Command
- func UploadBlob() *ffcli.Command
- func UploadBlobCmd(ctx context.Context, files []cremote.File, contentType, imageRef string) error
- func UploadCmd(ctx context.Context, sigRef, payloadRef, imageRef string) error
- func Verify() *ffcli.Command
- func VerifyBlob() *ffcli.Command
- func VerifyBlobCmd(ctx context.Context, ko KeyOpts, certRef, sigRef, blobRef string) error
- func Version() *ffcli.Command
- type Files
- type Info
- type KeyOpts
- type KeyParseError
- type NamedWriter
- type Pkopts
- type SignOpts
- type SignatureArgType
- type VerifyCommand
Constants ¶
View Source
const ( ExperimentalEnv = "COSIGN_EXPERIMENTAL" ServerEnv = "REKOR_SERVER" )
Variables ¶
View Source
var (
// Read is for fuzzing
Read = readPasswordFn
)
Functions ¶
func EnableExperimental ¶
func EnableExperimental() bool
func GenerateCmd ¶
func GenerateKeyPair ¶
func GetPublicKey ¶
func PrintVerification ¶
func PrintVerification(imgRef string, verified []cosign.SignedPayload, co *cosign.CheckOpts, output string)
PrintVerification logs details about the verification to stdout
func SignBlobCmd ¶
func TlogServer ¶
func TlogServer() string
TlogServer returns the name of the tlog server, can be overwritten via env var
func Triangulate ¶
func UploadBlob ¶ added in v0.42.0
func UploadBlobCmd ¶ added in v0.42.0
func VerifyBlob ¶
func VerifyBlobCmd ¶
Types ¶
type Info ¶
type Info struct { GitVersion string GitCommit string GitTreeState string BuildDate string GoVersion string Compiler string Platform string }
func VersionInfo ¶
func VersionInfo() Info
func (*Info) JSONString ¶
JSONString returns the JSON representation of the version info
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 NamedWriter ¶
type SignatureArgType ¶ added in v0.42.0
type SignatureArgType uint8
const ( StdinSignature SignatureArgType = iota RawSignature SignatureArgType = iota FileSignature SignatureArgType = iota )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.