Documentation ¶
Index ¶
- func Sign(rawRef string, experimental bool, options types.ImageSignOptions) error
- func SignCosign(rawRef string, keyRef string) error
- func SignNotation(rawRef string, keyNameRef string) error
- func Verify(ctx context.Context, rawRef string, hostsDirs []string, experimental bool, ...) (ref string, err error)
- func VerifyCosign(ctx context.Context, rawRef string, keyRef string, hostsDirs []string, ...) (string, error)
- func VerifyNotation(ctx context.Context, rawRef string, hostsDirs []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
func Sign(rawRef string, experimental bool, options types.ImageSignOptions) error
Sign signs an image using a signer and options provided in options.
func SignCosign ¶
SignCosign signs an image(`rawRef`) using a cosign private key (`keyRef`)
func SignNotation ¶
SignNotation signs an image(`rawRef`) using a notation key name (`keyNameRef`)
func Verify ¶
func Verify(ctx context.Context, rawRef string, hostsDirs []string, experimental bool, options types.ImageVerifyOptions) (ref string, err error)
Verify verifies an image using a verifier and options provided in options.
func VerifyCosign ¶
func VerifyCosign(ctx context.Context, rawRef string, keyRef string, hostsDirs []string, certIdentity string, certIdentityRegexp string, certOidcIssuer string, certOidcIssuerRegexp string) (string, error)
VerifyCosign verifies an image(`rawRef`) with a cosign public key(`keyRef`) `hostsDirs` are used to resolve image `rawRef` Either --cosign-certificate-identity or --cosign-certificate-identity-regexp and either --cosign-certificate-oidc-issuer or --cosign-certificate-oidc-issuer-regexp must be set for keyless flows.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.