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 ¶
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.
Click to show internal directories.
Click to hide internal directories.