Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NoFurtherSyncsLog is the log message for when no further syncs will occur. // exported as a const for use in testing. NoFurtherSyncsLog = "Image has been synced, and no further syncs will occur" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredentialAuthenticator ¶
type CredentialAuthenticator struct { // CredentialProvider provides credentials that are used to fetch auth tokens. CredentialProvider auth.CredentialProvider }
CredentialAuthenticator wraps a CredentialProvider to generate AuthConfigs used by the container registry client.
Neither the credentials or token are cached by this wrapper. Inject the CachingCredentialProvider to add caching.
func (*CredentialAuthenticator) Authorization ¶
func (a *CredentialAuthenticator) Authorization() (*authn.AuthConfig, error)
Authorization returns the value to use in an http transport's Authorization header.
type Fetcher ¶
type Fetcher struct { // Authenticator is used to authenticate with the OCI repository. Authenticator authn.Authenticator }
Fetcher fetches package images from an OCI repository using the specified authenticator.
Click to show internal directories.
Click to hide internal directories.