Documentation ¶
Index ¶
Constants ¶
View Source
const ( SignatureAnnotationKey = "dev.cosignproject.cosign/signature" CertificateAnnotationKey = "dev.sigstore.cosign/certificate" ChainAnnotationKey = "dev.sigstore.cosign/chain" BundleAnnotationKey = "dev.sigstore.cosign/bundle" )
Variables ¶
This section is empty.
Functions ¶
func NewAttestation ¶
NewAttestation constructs a new oci.Signature from the provided options. Since Attestation is treated just like a Signature but the actual signature is baked into the payload, the Signature does not actually have the Base64Signature.
Types ¶
type Option ¶
type Option func(*options)
Option is a functional option for customizing static signatures.
func WithAnnotations ¶
WithAnnotations sets the annotations that will be associated.
func WithBundle ¶
func WithBundle(b *bundle.RekorBundle) Option
WithBundle sets the bundle to attach to the signature
func WithCertChain ¶
WithCertChain sets the certificate chain for this signature.
func WithConfigMediaType ¶
WithConfigMediaType sets the media type of the signature.
func WithLayerMediaType ¶
WithLayerMediaType sets the media type of the signature.
Click to show internal directories.
Click to hide internal directories.