Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchDigest ¶
func FetchDigest(ctx context.Context, registryHost, repository, tag string, credential *Credentials, httpClient *http.Client) (string, error)
FetchDigest fetches the manifest digest for a registry image reference.
func IsFallbackEligibleDaemonError ¶
IsFallbackEligibleDaemonError reports whether a daemon registry error should use direct HTTP fallback.
func NewRegistryHTTPClient ¶
NewRegistryHTTPClient creates the default registry HTTP client.
Types ¶
type Credentials ¶
Credentials contains registry credentials used for manifest requests.
type RateLimitInfo ¶
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 FetchRegistryRateLimit ¶
func FetchRegistryRateLimit(ctx context.Context, registryHost, repository, tag string, credential *Credentials, httpClient *http.Client) (*RateLimitInfo, error)
FetchRegistryRateLimit fetches registry pull rate-limit information.
Click to show internal directories.
Click to hide internal directories.