Documentation ¶
Index ¶
- func CertIssuerExtension(cert *x509.Certificate) string
- func CertSubject(c *x509.Certificate) string
- func LoadPublicKey(ctx context.Context, keyRef string) (verifier signature.Verifier, err error)
- func PublicKeyFromKeyRef(ctx context.Context, keyRef string) (signature.Verifier, error)
- func PublicKeyFromKeyRefWithHashAlgo(ctx context.Context, keyRef string, hashAlgorithm crypto.Hash) (signature.Verifier, error)
- func PublicKeyPem(key signature.PublicKeyProvider, pkOpts ...signature.PublicKeyOption) ([]byte, error)
- func SignerFromKeyRef(ctx context.Context, keyRef string, pf cosign.PassFunc) (signature.Signer, error)
- func SignerVerifierFromKeyRef(ctx context.Context, keyRef string, pf cosign.PassFunc) (signature.SignerVerifier, error)
- func VerifierForKeyRef(ctx context.Context, keyRef string, hashAlgorithm crypto.Hash) (verifier signature.Verifier, err error)
- type AnnotationsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertIssuerExtension ¶ added in v1.3.1
func CertIssuerExtension(cert *x509.Certificate) string
func CertSubject ¶ added in v1.3.1
func CertSubject(c *x509.Certificate) string
func LoadPublicKey ¶
LoadPublicKey is a wrapper for VerifierForKeyRef, hardcoding SHA256 as the hash algorithm
func PublicKeyFromKeyRef ¶
func PublicKeyFromKeyRefWithHashAlgo ¶ added in v1.4.0
func PublicKeyPem ¶
func PublicKeyPem(key signature.PublicKeyProvider, pkOpts ...signature.PublicKeyOption) ([]byte, error)
func SignerFromKeyRef ¶
Types ¶
type AnnotationsMap ¶
type AnnotationsMap struct {
Annotations map[string]interface{}
}
func (*AnnotationsMap) Set ¶
func (a *AnnotationsMap) Set(s string) error
func (*AnnotationsMap) String ¶
func (a *AnnotationsMap) String() string
Click to show internal directories.
Click to hide internal directories.