Documentation
¶
Index ¶
- Variables
- func NewCredentialStore(username, password string) auth.CredentialStore
- func PingV2Registry(endpoint *url.URL, transport http.RoundTripper) (challenge.Manager, bool, error)
- func Split(image string) (base string, tag string, err error)
- type Auth
- type Client
- type Interface
- type PingResponseError
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRegistryVersionHeader = "Docker-Distribution-Api-Version"
DefaultRegistryVersionHeader is the name of the default HTTP header that carries Registry version info
Functions ¶
func NewCredentialStore ¶
func NewCredentialStore(username, password string) auth.CredentialStore
NewCredentialStore provides static username and password to the store.
func PingV2Registry ¶
func PingV2Registry(endpoint *url.URL, transport http.RoundTripper) (challenge.Manager, bool, error)
PingV2Registry attempts to ping a v2 registry and on success return a challenge manager for the supported authentication types and whether v2 was confirmed by the response. If a response is received but cannot be interpreted a PingResponseError will be returned.
Types ¶
type Auth ¶
type Auth struct {
Username string
Password string
Transport http.RoundTripper
}
Auth is a helper to store authentication details for the client.
type PingResponseError ¶
type PingResponseError struct {
Err error
}
PingResponseError is used when the response from a ping was received but invalid.
func (PingResponseError) Error ¶
func (err PingResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.