package ociclient
import "cuelabs.dev/go/oci/ociregistry/ociclient"
Package ociclient provides an implementation of ociregistry.Interface that uses HTTP to talk to the remote registry.
Index ¶
Constants ¶
const DefaultListPageSize = 1000
DefaultListPageSize holds the default number of results to request when using the list endpoints. It's not more than 1000 because AWS ECR complains it it's more than that.
Functions ¶
func New ¶
func New(host string, opts0 *Options) (ociregistry.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 // ListPageSize configures the maximum number of results // requested when making list requests. If it's <= zero, it // defaults to DefaultListPageSize. ListPageSize int }
Source Files ¶
client.go deleter.go error.go lister.go reader.go writer.go
- Version
- v0.0.0-20250304105642-27e071d2c9b1 (latest)
- Published
- Mar 4, 2025
- Platform
- linux/amd64
- Imports
- 21 packages
- Last checked
- 1 day ago –
Tools for package owners.