Versions in this module Expand all Collapse all v1 v1.10.4 Nov 4, 2026 v1.10.3 Oct 30, 2026 v1.10.2 Oct 30, 2026 v1.10.1 Oct 30, 2026 v1.10.0 Oct 30, 2026 v1.9.0 Oct 27, 2026 Changes in this version + const PrefixArtifact + var ErrConflict = cortex.ErrEvidenceConflict + var ErrDeleted = cortex.ErrEvidenceDeleted + var ErrDenied = cortex.ErrEvidenceAccessDenied + var ErrDigestMismatch = cortex.ErrEvidenceDigestMismatch + var ErrInvalid = cortex.ErrInvalidEvidence + var ErrNotFound = cortex.ErrEvidenceNotFound + var ErrTooLarge = cortex.ErrEvidenceTooLarge + func DeletionActor(ctx context.Context) string + func Digest(data []byte) string + func ValidDigest(value string) bool + func WithDeletionActor(ctx context.Context, actor string) context.Context + type Action string + const ActionDelete + const ActionPut + const ActionRead + type Artifact struct + Data []byte + Ref Ref + func Seal(a Artifact) (Artifact, error) + func (a Artifact) Validate() error + type Authorizer interface + AuthorizeEvidence func(context.Context, Action, Ref) error + type Ref struct + Bytes int64 + CreatedAt time.Time + ID id.ID + MediaType string + Producer string + RetainUntil time.Time + SHA256 string + SchemaVersion int + Scope cortex.Scope + Sensitivity Sensitivity + SourceURI string + Version string + func (r Ref) BindingDigest() (string, error) + func (r Ref) Validate() error + type Repository interface + Delete func(context.Context, Ref, string) error + Open func(context.Context, Ref) (io.ReadCloser, error) + Put func(context.Context, Artifact) (Ref, error) + func NewRepository(storage Storage, authorizer Authorizer, maxBytes int64) (Repository, error) + type Sensitivity string + const SensitivityInternal + const SensitivityPublic + const SensitivityRestricted + type Storage interface + LoadEvidence func(context.Context, Ref) (Artifact, error) + SaveEvidence func(context.Context, Artifact) error + TombstoneEvidence func(context.Context, Ref, string) error + type Tombstone struct + Actor string + DeletedAt time.Time + Reason string + Ref Ref + type TombstoneReader interface + GetEvidenceTombstone func(context.Context, Ref) (Tombstone, error)