artifacts

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

View Source
const DefaultDriver = internal.DefaultDriver

DefaultDriver is the driver name Open resolves when the config names none.

Variables

View Source
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.

View Source
var NewScoped = internal.NewScoped

NewScoped binds a store to one ArtifactScope.

Open resolves the configured artifact driver and opens it.

View Source
var OpenDriver = internal.OpenDriver

OpenDriver opens an artifact driver by explicit name.

View Source
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 Presigner

type Presigner = internal.Presigner

Presigner is the optional presigned-URL driver surface.

type PutOpts

type PutOpts = internal.PutOpts

PutOpts carries optional Put metadata.

type ScopedArtifacts

type ScopedArtifacts = internal.ScopedArtifacts

ScopedArtifacts is a store pre-bound to one ArtifactScope.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL