Creates an instance of a ContainerRegistryClient.
Example usage:
import { ContainerRegistryClient } from "@azure/container-registry";
import { DefaultAzureCredential} from "@azure/identity";
const client = new ContainerRegistryClient(
"<container registry API endpoint>",
new DefaultAzureCredential()
);
the URL endpoint of the container registry
used to authenticate requests to the service
optional configuration used to send requests to the service
Creates an instance of a ContainerRegistryClient to interact with an Azure Container Registry that has anonymous pull access enabled. Only operations that support anonymous access are enabled. Other service methods will throw errors.
Example usage:
import { ContainerRegistryClient } from "@azure/container-registry";
const client = new ContainerRegistryClient(
"<container registry API endpoint>",
);
the URL endpoint of the container registry
optional configuration used to send requests to the service
The Azure Container Registry endpoint.
Deletes the repository identified by the given name and all associated artifacts.
the name of repository to delete
optional configuration for the operation
Returns an instance of RegistryArtifact for calling service methods related to the artifact specified by repositoryName
and tagOrDigest
.
the name of repository
tag or digest of the artifact to retrieve
Returns an instance of ContainerRepository for calling service methods related to the repository specified by repositoryName
.
the name of repository
Returns an async iterable iterator to list names of repositories in this registry.
Example usage:
let client = new ContainerRegistryClient(url, credential);
for await (const repository of client.listRepositoryNames()) {
console.log("repository name: ", repository);
}
Example using iter.next()
:
let iter = client.listRepositoryNames();
let item = await iter.next();
while (!item.done) {
console.log(`repository name: ${item.value}`);
item = await iter.next();
}
Example using byPage()
:
const pages = client.listRepositoryNames().byPage({ maxPageSize: 2 });
let page = await pages.next();
let i = 1;
while (!page.done) {
if (page.value) {
console.log(`-- page ${i++}`);
for (const name of page.value) {
console.log(` repository name: ${name}`);
}
}
page = await pages.next();
}
-
Generated using TypeDoc
The client class used to interact with the Container Registry service.