yamlsign

package
v0.0.0-...-e388584 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 FetchSignedYamlPayload(ctx context.Context, payloadPath string) (*cosign.SignedPayload, error)

func FetchYamlContent

func FetchYamlContent(payloadPath string) (map[interface{}]interface{}, error)

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.

func WriteYamlContent

func WriteYamlContent(signature []byte, pemBytes []byte, bundleJson []byte, mPayload map[interface{}]interface{}, payloadPath string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL