client

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package client contains the logic to interact with the OCI registry. It provides a client to interact with the OCI registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts ...Option) *auth.Client

NewClient creates a new ORAS client with the provided options.

Types

type Option

type Option func(*auth.Client)

Option represents a client option function.

func WithClientID

func WithClientID(clientID string) Option

WithClientID configures the client with a custom client ID for OAuth2.

func WithCredentialFunc

func WithCredentialFunc(credFunc auth.CredentialFunc) Option

WithCredentialFunc configures the client with a custom credential function.

func WithForceOAuth2

func WithForceOAuth2(force bool) Option

WithForceOAuth2 configures the client to always attempt OAuth2 authentication.

func WithTransport

func WithTransport(transport http.RoundTripper) Option

WithTransport configures the client with a custom HTTP transport.

Jump to

Keyboard shortcuts

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