client

package
v0.19.14 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider added in v0.7.0

type AuthProvider interface {
	GetAuth() (auth.Credential, error)
}

func NewCredentialFuncTokenProvider added in v0.10.0

func NewCredentialFuncTokenProvider(creds auth.CredentialFunc, image string) (AuthProvider, error)

NewCredentialFuncTokenProvider creates a token provider that uses the provided auth.CredentialFunc to load access tokens. Only works if the credential function is token based.

type DorasBaseClient

type DorasBaseClient struct {
	DorasURL string
	Client   *http.Client
	auth.CredentialFunc
}

DorasBaseClient serves as the base for clients that interact with Doras servers.

func NewBaseClient

func NewBaseClient(serverURL string, credentialFunc auth.CredentialFunc) *DorasBaseClient

NewBaseClient constructs a DorasBaseClient.

Jump to

Keyboard shortcuts

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