Repository name.
The Azure Container Registry endpoint.
Deletes this repository and all artifacts that are part of its logical group.
optional configuration for the operation
Returns an helper instance of RegistryArtifact for the given tag or digest.
the tag or digest of the artifact
Retrieves the properties of this repository.
-
Returns an async iterable iterator to list manifest properties. This is useful for determining the collection of artifacts associated with this repository, as each artifact is uniquely identified by its manifest.
Example using for-await-of
syntax:
const client = new ContainerRegistryClient(url, credential);
const repository = client.getRepository(repositoryName)
for await (const manifest of repository.listManifestProperties()) {
console.log("manifest: ", manifest);
}
Example using iter.next()
:
const iter = repository.listManifestProperties();
let item = await iter.next();
while (!item.done) {
console.log("manifest properties: ", item.value);
item = await iter.next();
}
Example using byPage()
:
const pages = repository.listManifestProperties().byPage({ maxPageSize: 2 });
let page = await pages.next();
let i = 1;
while (!page.done) {
if (page.value) {
console.log(`-- page ${i++}`);
for (const manifestProperties of page.value) {
console.log(` manifest properties: ${manifestProperties}`);
}
}
page = await pages.next();
}
-
Updates the properties of this repository.
Example usage:
const client = new ContainerRegistryClient(url, credential);
const repository = client.getRepository(repositoryName)
const updated = await repository.updateProperties({
canDelete: false,
canList: false,
canRead: false,
canWrite: false
});
-
Generated using TypeDoc
A
repository
in a container registry is a logical grouping of images or artifacts that share the same name. For example, different versions of ahello-world
application could have tagsv1
andv2
, and be grouped by the repositoryhello-world
.The ContainerRepository interface is a helper that groups information and operations about a repository in this container registry.