Documentation ¶
Index ¶
Constants ¶
const ( // from sigstore/cosign/pkg/types.SimpleSigningMediaType SigstoreSignatureMIMEType = "application/vnd.dev.cosign.simplesigning.v1+json" // from sigstore/cosign/pkg/oci/static.SignatureAnnotationKey SigstoreSignatureAnnotationKey = "dev.cosignproject.cosign/signature" // from sigstore/cosign/pkg/oci/static.BundleAnnotationKey SigstoreSETAnnotationKey = "dev.sigstore.cosign/bundle" // from sigstore/cosign/pkg/oci/static.CertificateAnnotationKey SigstoreCertificateAnnotationKey = "dev.sigstore.cosign/certificate" // from sigstore/cosign/pkg/oci/static.ChainAnnotationKey SigstoreIntermediateCertificateChainAnnotationKey = "dev.sigstore.cosign/chain" )
Variables ¶
This section is empty.
Functions ¶
func UnsupportedFormatError ¶
UnsupportedFormatError returns an error complaining about sig having an unsupported format.
Types ¶
type FormatID ¶
type FormatID string
FIXME FIXME: MIME type? Int? String? An interface with a name, parse methods?
type Signature ¶
type Signature interface { FormatID() FormatID // contains filtered or unexported methods }
Signature is an image signature of some kind.
type Sigstore ¶
type Sigstore struct {
// contains filtered or unexported fields
}
Sigstore is a github.com/cosign/cosign signature. For the persistent-storage format used for blobChunk(), we want a degree of forward compatibility against unexpected field changes (as has happened before), which is why this data type contains just a payload + annotations (including annotations that we don’t recognize or support), instead of individual fields for the known annotations.
func SigstoreFromBlobChunk ¶
SigstoreFromBlobChunk converts a Sigstore signature, as returned by Sigstore.blobChunk, into a Sigstore object.
func SigstoreFromComponents ¶
func SigstoreFromComponents(untrustedMimeType string, untrustedPayload []byte, untrustedAnnotations map[string]string) Sigstore
SigstoreFromComponents returns a Sigstore object from its components.
func (Sigstore) UntrustedAnnotations ¶
func (Sigstore) UntrustedMIMEType ¶
func (Sigstore) UntrustedPayload ¶
type SimpleSigning ¶
type SimpleSigning struct {
// contains filtered or unexported fields
}
SimpleSigning is a “simple signing” signature.
func SimpleSigningFromBlob ¶
func SimpleSigningFromBlob(blobChunk []byte) SimpleSigning
SimpleSigningFromBlob converts a “simple signing” signature into a SimpleSigning object.
func (SimpleSigning) FormatID ¶
func (s SimpleSigning) FormatID() FormatID
func (SimpleSigning) UntrustedSignature ¶
func (s SimpleSigning) UntrustedSignature() []byte