Documentation
¶
Overview ¶
Package oci pulls AI model artifacts from OCI registries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// HTTPClient, when set, is used instead of the registry-derived client (tests).
HTTPClient *http.Client
// Source, when set, skips opening a remote repository (tests).
Source ArtifactSource
// GenericORAS skips model-spec, ModelPack, and ModelKit detectors and unpacks as ORAS.
// Knowledge pulls always set this so they never write a model-format layout.
GenericORAS bool
}
Adapter pulls OCI AI artifacts into the shared model store and materializes content/.
type ArtifactSource ¶
type ArtifactSource interface {
Resolve(ctx context.Context, reference string) (ocispec.Descriptor, error)
Fetch(ctx context.Context, desc ocispec.Descriptor) (io.ReadCloser, error)
FetchRange(ctx context.Context, desc ocispec.Descriptor, offset int64) (io.ReadCloser, bool, error)
}
ArtifactSource resolves and fetches OCI descriptors from a registry.
Click to show internal directories.
Click to hide internal directories.