Documentation
¶
Index ¶
- func FetchDigest(ctx context.Context, registryHost, repository, tag string, ...) (string, error)
- func FetchDigestWithHTTPClient(ctx context.Context, registryHost, repository, tag string, ...) (string, error)
- func IsFallbackEligibleDaemonError(err error) bool
- func NewRegistryHTTPClient() *http.Client
- type Credentials
- type RateLimitInfo
- func FetchDockerHubRateLimit(ctx context.Context, credential *Credentials) (*RateLimitInfo, error)
- func FetchDockerHubRateLimitWithHTTPClient(ctx context.Context, credential *Credentials, httpClient *http.Client) (*RateLimitInfo, error)
- func FetchRegistryRateLimitWithHTTPClient(ctx context.Context, registryHost, repository, tag string, ...) (*RateLimitInfo, error)
- type Reference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchDigest ¶
func NewRegistryHTTPClient ¶
NewRegistryHTTPClient returns the shared transport configuration used for direct registry digest lookups.
Types ¶
type Credentials ¶
type RateLimitInfo ¶ added in v1.19.0
type RateLimitInfo struct {
Limit *int `json:"limit,omitempty"`
Remaining *int `json:"remaining,omitempty"`
Used *int `json:"used,omitempty"`
WindowSeconds *int `json:"windowSeconds,omitempty"`
Source string `json:"source,omitempty"`
}
RateLimitInfo contains pull quota information returned by registry headers.
func FetchDockerHubRateLimit ¶ added in v1.19.0
func FetchDockerHubRateLimit(ctx context.Context, credential *Credentials) (*RateLimitInfo, error)
FetchDockerHubRateLimit fetches Docker Hub pull rate limit information.
func FetchDockerHubRateLimitWithHTTPClient ¶ added in v1.19.0
func FetchDockerHubRateLimitWithHTTPClient(ctx context.Context, credential *Credentials, httpClient *http.Client) (*RateLimitInfo, error)
FetchDockerHubRateLimitWithHTTPClient fetches Docker Hub pull rate limit information using the provided HTTP client.
func FetchRegistryRateLimitWithHTTPClient ¶ added in v1.19.0
func FetchRegistryRateLimitWithHTTPClient(ctx context.Context, registryHost, repository, tag string, credential *Credentials, httpClient *http.Client) (*RateLimitInfo, error)
FetchRegistryRateLimitWithHTTPClient fetches pull rate limit information from an OCI registry manifest response.
Click to show internal directories.
Click to hide internal directories.