ociclient

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package ociclient provides an implementation of oci.Interface that uses HTTP to talk to the remote registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(host string, opts0 *Options) (oci.Interface, error)

New returns a registry implementation that uses the OCI HTTP API. A nil opts parameter is equivalent to a pointer to zero Options.

The host specifies the host name to talk to; it may optionally be a host:port pair.

Types

type Options

type Options struct {
	// DebugID is used to prefix any log messages printed by the client.
	DebugID string

	// Transport is used to make HTTP requests. The context passed
	// to its RoundTrip method will have an appropriate
	// [ociauth.RequestInfo] value added, suitable for consumption
	// by the transport created by [ociauth.NewStdTransport]. If
	// Transport is nil, [http.DefaultTransport] will be used.
	Transport http.RoundTripper

	// Insecure specifies whether an http scheme will be used to
	// address the host instead of https.
	Insecure bool

	// Specifies a user agent string to use when making requests. Defaults to "docker/oci"
	UserAgent string
}

Options holds configuration for creating a new OCI registry client.

Jump to

Keyboard shortcuts

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