Documentation
¶
Overview ¶
Package artifacts is the public SDK facade over Harbor's internal/artifacts package — the content-addressed, identity-scoped artifact store and the by-reference heavy-content contract (RFC §3.6, §6.10; D-204). Alias-based re-exports only: no behavior lives here. Driver factories and the conformance kit are deliberately private.
Index ¶
Constants ¶
const DefaultDriver = internal.DefaultDriver
DefaultDriver is the driver name Open resolves when the config names none.
Variables ¶
var ( // ErrNotFound — the ref does not exist. ErrNotFound = internal.ErrNotFound // ErrScopeMismatch — the ref belongs to a different scope. ErrScopeMismatch = internal.ErrScopeMismatch // ErrIdentityRequired — the identity triple is incomplete. ErrIdentityRequired = internal.ErrIdentityRequired // ErrInvalidScope — the scope failed validation. ErrInvalidScope = internal.ErrInvalidScope // ErrUnknownDriver — the named artifact driver is not registered. ErrUnknownDriver = internal.ErrUnknownDriver // ErrStoreClosed — the store has been closed. ErrStoreClosed = internal.ErrStoreClosed // ErrPresignUnsupported — this driver mints no presigned URLs. ErrPresignUnsupported = internal.ErrPresignUnsupported )
Re-exported sentinel errors callers compare via errors.Is.
var NewScoped = internal.NewScoped
NewScoped binds a store to one ArtifactScope.
var Open = internal.Open
Open resolves the configured artifact driver and opens it.
var OpenDriver = internal.OpenDriver
OpenDriver opens an artifact driver by explicit name.
var RegisteredDrivers = internal.RegisteredDrivers
RegisteredDrivers lists the seated artifact driver names (blank-import sdk/drivers/prod to seat the production set).
Functions ¶
This section is empty.
Types ¶
type ArtifactRef ¶
type ArtifactRef = internal.ArtifactRef
ArtifactRef is the by-reference handle to stored heavy content.
type ArtifactScope ¶
type ArtifactScope = internal.ArtifactScope
ArtifactScope is the (tenant, user, session) + run scope of a ref.
type ArtifactStore ¶
type ArtifactStore = internal.ArtifactStore
ArtifactStore is the identity-mandatory artifact store interface.
type ScopedArtifacts ¶
type ScopedArtifacts = internal.ScopedArtifacts
ScopedArtifacts is a store pre-bound to one ArtifactScope.