Documentation
¶
Index ¶
- Constants
- func Signatures(ref name.Reference, opts ...Option) (oci.Signatures, error)
- func SignedEntity(ref name.Reference, options ...Option) (oci.SignedEntity, error)
- func SignedImage(ref name.Reference, options ...Option) (oci.SignedImage, error)
- func SignedImageIndex(ref name.Reference, options ...Option) (oci.SignedImageIndex, error)
- type Option
Constants ¶
const ( SignatureTagSuffix = ".sig" SBOMTagSuffix = ".sbom" AttestationTagSuffix = ".att" RepoOverrideKey = "COSIGN_REPOSITORY" )
const (
BundleKey = "dev.sigstore.cosign/bundle"
)
Variables ¶
This section is empty.
Functions ¶
func Signatures ¶
Signatures fetches the signatures image represented by the named reference.
func SignedEntity ¶
SignedEntity provides access to a remote reference, and its signatures. The SignedEntity will be one of SignedImage or SignedImageIndex.
func SignedImage ¶
SignedImage provides access to a remote image reference, and its signatures.
func SignedImageIndex ¶
SignedImageIndex provides access to a remote index reference, and its signatures.
Types ¶
type Option ¶
type Option func(*options) error
Option is a functional option for remote operations.
func WithAttestationSuffix ¶
WithAttestationSuffix is a functional option for overriding the default attestation tag suffix.
func WithRemoteOptions ¶
WithRemoteOptions is a functional option for overriding the default remote options passed to GGCR.
func WithSBOMSuffix ¶
WithSBOMSuffix is a functional option for overriding the default SBOM tag suffix.
func WithSignatureSuffix ¶
WithSignatureSuffix is a functional option for overriding the default signature tag suffix.
func WithTargetRepository ¶
func WithTargetRepository(repo name.Repository) Option
WithTargetRepository is a functional option for overriding the default target repository hosting the signature and attestation tags.