Documentation
¶
Index ¶
- func FullyQualifiedReference(registryRef string) (string, error)
- func IsDigestReference(registryRef string) bool
- func NewTransport(ctx context.Context) http.RoundTripperdeprecated
- func Pull(ctx context.Context, registryRef string, force bool, opts ...crane.Option) (string, error)
- func Push(ctx context.Context, reference string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullyQualifiedReference ¶ added in v1.94.0
FullyQualifiedReference parses an OCI reference and returns its fully qualified form, including the registry host. Equivalent shorthand forms map to the same value, while references on different registries remain distinct.
func IsDigestReference ¶ added in v1.36.1
IsDigestReference reports whether the given reference pins a specific image digest (e.g. "repo@sha256:abc...").
func NewTransport
deprecated
added in
v1.36.1
func NewTransport(ctx context.Context) http.RoundTripper
NewTransport returns an HTTP transport that uses the Docker Desktop proxy if available, and falls back to direct connections.
Deprecated: use [transport.New] instead; it lives in a leaf package that does not pull the OCI registry dependencies of this package.
func Pull ¶
func Pull(ctx context.Context, registryRef string, force bool, opts ...crane.Option) (string, error)
Pull pulls an artifact from a registry and stores it in the content store.
The digest check, manifest read, and layer downloads all reuse a single authenticated registry session (a remote.Puller) so the token exchange and underlying connection are established only once, rather than re-doing authentication for each step.
Types ¶
This section is empty.