Documentation
¶
Index ¶
- Constants
- Variables
- func ApplyRegistryFlags(regOpts *RegistryOpts, fs *flag.FlagSet)
- func ApplyVerifyFlags(cmd *VerifyCommand, flagset *flag.FlagSet)
- func AttachedImageTag(ref name.Reference, suffix string, remoteOpts ...remote.Option) (name.Tag, error)
- func Attest() *ffcli.Command
- func AttestCmd(ctx context.Context, ko KeyOpts, regOpts RegistryOpts, imageRef string, ...) error
- func Clean() *ffcli.Command
- func CleanCmd(ctx context.Context, regOpts RegistryOpts, imageRef string) error
- func Copy() *ffcli.Command
- func CopyCmd(ctx context.Context, regOpts RegistryOpts, srcImg, dstImg string, ...) error
- func Digest(ref name.Reference, remoteOpts ...remote.Option) (v1.Hash, error)
- func EnableExperimental() bool
- func Generate() *ffcli.Command
- func GenerateCmd(ctx context.Context, regOpts RegistryOpts, imageRef string, ...) error
- func GenerateKeyPair() *ffcli.Command
- func GenerateKeyPairCmd(ctx context.Context, kmsVal string, args []string) error
- func GetPass(confirm bool) ([]byte, error)
- func GetPublicKey(ctx context.Context, opts Pkopts, writer NamedWriter, pf cosign.PassFunc) error
- func Init() *ffcli.Command
- func LoadPublicKey(ctx context.Context, keyRef string) (verifier signature.Verifier, err error)
- func MungeCmd(ctx context.Context, regOpts RegistryOpts, imageRef string, ...) error
- func PrintVerification(imgRef string, verified []cosign.SignedPayload, output string)
- func PrintVerificationHeader(imgRef string, co *cosign.CheckOpts)
- func PublicKey() *ffcli.Command
- func Sign() *ffcli.Command
- func SignBlob() *ffcli.Command
- func SignBlobCmd(ctx context.Context, ko KeyOpts, regOpts RegistryOpts, payloadPath string, ...) ([]byte, error)
- func SignCmd(ctx context.Context, ko KeyOpts, regOpts RegistryOpts, ...) error
- func TargetRepositoryForImage(img name.Reference) (name.Repository, error)
- func Triangulate() *ffcli.Command
- func Verify() *ffcli.Command
- func VerifyAttestation() *ffcli.Command
- func VerifyBlob() *ffcli.Command
- func VerifyBlobCmd(ctx context.Context, ko KeyOpts, certRef, sigRef, blobRef string) error
- func Version() *ffcli.Command
- type Info
- type KeyOpts
- type KeyParseError
- type NamedWriter
- type Pkopts
- type RegistryOpts
- type VerifyAttestationCommand
- type VerifyCommand
Constants ¶
View Source
const (
ExperimentalEnv = "COSIGN_EXPERIMENTAL"
)
Variables ¶
View Source
var ( // Output of "git describe". The prerequisite is that the branch should be // tagged using the correct versioning strategy. GitVersion = "devel" )
Base version information.
This is the fallback data used when version information from git is not provided via go ldflags (e.g. via Makefile).
View Source
var (
// Read is for fuzzing
Read = readPasswordFn
)
Functions ¶
func ApplyRegistryFlags ¶ added in v1.2.1
func ApplyRegistryFlags(regOpts *RegistryOpts, fs *flag.FlagSet)
func ApplyVerifyFlags ¶ added in v1.2.0
func ApplyVerifyFlags(cmd *VerifyCommand, flagset *flag.FlagSet)
func AttachedImageTag ¶ added in v1.2.1
func CleanCmd ¶ added in v0.5.0
func CleanCmd(ctx context.Context, regOpts RegistryOpts, imageRef string) error
func Digest ¶ added in v1.0.0
Digest returns the digest of the image at the reference.
If the reference is by digest already, it simply extracts the digest. Otherwise, it looks up the digest from the registry.
func EnableExperimental ¶ added in v0.5.0
func EnableExperimental() bool
func GenerateCmd ¶
func GenerateKeyPair ¶
func GenerateKeyPairCmd ¶
func GetPublicKey ¶ added in v0.2.0
func LoadPublicKey ¶ added in v1.0.0
func PrintVerification ¶ added in v0.5.0
func PrintVerification(imgRef string, verified []cosign.SignedPayload, output string)
PrintVerification logs details about the verification to stdout
func PrintVerificationHeader ¶ added in v1.2.0
func SignBlobCmd ¶
func TargetRepositoryForImage ¶ added in v0.6.0
func TargetRepositoryForImage(img name.Reference) (name.Repository, error)
func Triangulate ¶
func VerifyAttestation ¶ added in v1.0.0
Verify builds and returns an ffcli command
func VerifyBlob ¶
func VerifyBlobCmd ¶
Types ¶
type Info ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type RegistryOpts ¶ added in v1.2.1
type RegistryOpts struct {
AllowInsecure bool
}
func (*RegistryOpts) GetRegistryClientOpts ¶ added in v1.2.1
func (co *RegistryOpts) GetRegistryClientOpts(ctx context.Context) []remote.Option
type VerifyAttestationCommand ¶ added in v1.0.0
type VerifyAttestationCommand struct { RegistryOpts CheckClaims bool KeyRef string Sk bool Slot string Output string FulcioURL string RekorURL string }
VerifyAttestationCommand verifies a signature on a supplied container image
Source Files
¶
Click to show internal directories.
Click to hide internal directories.