Documentation
¶
Overview ¶
Package gar lists Google Artifact Registry Docker repositories through the Artifact Registry API instead of the distribution API. One dockerImages page covers up to 1,000 manifests of a repository with their tags and upload times, so tags need no request each.
Index ¶
Constants ¶
const ArtifactRegistryAPI = "https://artifactregistry.googleapis.com/v1"
ArtifactRegistryAPI is the default API endpoint.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Projects are the Google Cloud projects whose repositories are
// listed. Repos can also be seeded as project/repository/image.
Projects []string
// Token returns an OAuth access token for the APIs.
Token func() (string, error)
// RegistryAPI overrides the endpoint, for tests.
RegistryAPI string
Transport http.RoundTripper
UserAgent string
}
Options configure a client.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is one Artifact Registry location. It is a crawl.Lister.