Documentation ¶
Index ¶
- Constants
- func FetchSignedYamlPayload(ctx context.Context, payloadPath string) (*cosign.SignedPayload, error)
- func FetchYamlContent(payloadPath string) (map[interface{}]interface{}, error)
- func VerifyPayload(ctx context.Context, co *cosign.CheckOpts, payloadJson []byte, ...) (*cosign.SignedPayload, error)
- func VerifyYaml(ctx context.Context, co *cosign.CheckOpts, payloadPath string) (*cosign.SignedPayload, error)
- func WriteYamlContent(signature []byte, pemBytes []byte, bundleJson []byte, ...) error
Constants ¶
View Source
const IntegrityShieldAnnotationBundle = "integrityshield.io/bundle"
View Source
const IntegrityShieldAnnotationCertificate = "integrityshield.io/certificate"
View Source
const IntegrityShieldAnnotationMessage = "integrityshield.io/message"
View Source
const IntegrityShieldAnnotationSignature = "integrityshield.io/signature"
Variables ¶
This section is empty.
Functions ¶
func FetchSignedYamlPayload ¶
func FetchYamlContent ¶
func VerifyPayload ¶
func VerifyPayload(ctx context.Context, co *cosign.CheckOpts, payloadJson []byte, sp *cosign.SignedPayload) (*cosign.SignedPayload, error)
func VerifyYaml ¶
func VerifyYaml(ctx context.Context, co *cosign.CheckOpts, payloadPath string) (*cosign.SignedPayload, error)
Verify does all the main cosign checks in a loop, returning validated payloads. If there were no payloads, we return an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.