trustedresources

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SignatureAnnotation is the key of signature in annotation map
	SignatureAnnotation = "tekton.dev/signature"
)

Variables

This section is empty.

Functions

func Sign

func Sign(o metav1.Object, keyfile, kmsKey, targetFile string) error

Sign the crd and output signed bytes to writer

func UnmarshalCRD

func UnmarshalCRD(buf []byte, kind string) (metav1.Object, []byte, error)

UnmarshalCRD will get the task/pipeline from buffer and extract the signature.

func Verify

func Verify(o metav1.Object, keyfile, kmsKey string) error

Verify the crd

func VerifyInterface

func VerifyInterface(
	obj interface{},
	verifier signature.Verifier,
	signature []byte,
) error

VerifyInterface get the checksum of json marshalled object and verify it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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