Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFoundOrAuthError ¶
IsNotFoundOrAuthError checks if an error indicates that an image was not found or that authentication is required. These are expected errors when checking for DHI equivalents that may not exist.
Returns true for:
- 404 Not Found (image doesn't exist)
- 401 Unauthorized (authentication required)
- 403 Forbidden (access denied)
- "manifest unknown" errors (common registry response for missing images)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides methods for interacting with container registries
func NewClient ¶
func NewClient() *Client
NewClient creates a new registry client It respects CONTAINERS_REGISTRIES_CONF environment variable for registry configuration
Click to show internal directories.
Click to hide internal directories.