Documentation
¶
Index ¶
- Constants
- func Copy(sig oci.Signature) (oci.Signature, error)
- func NewAttestation(payload []byte, opts ...Option) (oci.Signature, error)
- func NewFile(payload []byte, opts ...Option) (oci.File, error)
- func NewSignature(payload []byte, b64sig string, opts ...Option) (oci.Signature, error)
- type Option
- func WithAnnotations(ann map[string]string) Option
- func WithBundle(b *bundle.RekorBundle) Option
- func WithCertChain(cert, chain []byte) Option
- func WithConfigMediaType(mt types.MediaType) Option
- func WithLayerMediaType(mt types.MediaType) Option
- func WithRFC3161Timestamp(b *bundle.RFC3161Timestamp) Option
Constants ¶
View Source
const ( SignatureAnnotationKey = "dev.cosignproject.cosign/signature" CertificateAnnotationKey = "dev.sigstore.cosign/certificate" ChainAnnotationKey = "dev.sigstore.cosign/chain" BundleAnnotationKey = "dev.sigstore.cosign/bundle" RFC3161TimestampAnnotationKey = "dev.sigstore.cosign/rfc3161timestamp" )
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.
func WithRFC3161Timestamp ¶
func WithRFC3161Timestamp(b *bundle.RFC3161Timestamp) Option
WithRFC3161Timestamp sets the time-stamping bundle to attach to the signature
Click to show internal directories.
Click to hide internal directories.