envelope

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaTypePayloadV1            = "application/vnd.cncf.notary.payload.v1+json"
	AnnotationX509ChainThumbprint = "io.cncf.notary.x509chain.thumbprint#S256"
)

MediaTypePayloadV1 is the supported content type for signature's payload.

Variables

This section is empty.

Functions

func SanitizeTargetArtifact

func SanitizeTargetArtifact(targetArtifact ocispec.Descriptor) ocispec.Descriptor

SanitizeTargetArtifact filters out unrelated ocispec.Descriptor fields based on notation spec (https://github.com/notaryproject/notaryproject/blob/main/specs/signature-specification.md#payload).

func SigningTime

func SigningTime(signerInfo *signature.SignerInfo) (time.Time, error)

SigningTime returns the signing time of a signature envelope blob

func ValidatePayloadContentType

func ValidatePayloadContentType(payload *signature.Payload) error

ValidatePayloadContentType validates signature payload's content type.

Types

type Payload

type Payload struct {
	TargetArtifact ocispec.Descriptor `json:"targetArtifact"`
}

Payload describes the content that gets signed.

Jump to

Keyboard shortcuts

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