Documentation
¶
Overview ¶
Package acr lists Azure Container Registry through its /acr/v1 API instead of the distribution API. One manifests page covers up to 1,000 manifests of a repository with their tags and push times, so tags need no request each.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is one Azure Container Registry. It is a crawl.Lister.
func New ¶
func New(host string, insecure bool, kc authn.Keychain, rt http.RoundTripper, userAgent string) (*Registry, error)
New returns a client for an ACR login server. Credentials come from the keychain: `az acr login` stores a token in the Docker config, and a service principal or token can be used as a username and password. Both are exchanged for registry tokens scoped to each call.