acr

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func IsHost

func IsHost(host string) bool

IsHost reports whether host is an Azure Container Registry login server.

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.

func (*Registry) Calls

func (r *Registry) Calls() int64

Calls returns how many ACR API calls the client has made.

func (*Registry) Images

func (r *Registry) Images(ctx context.Context, repo string) ([]crawl.Listed, error)

Images lists every manifest in a repository with its tags and push time. ACR reports no pull times.

func (*Registry) Repos

func (r *Registry) Repos(ctx context.Context) ([]string, error)

Repos lists every repository in the registry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL