Condividi tramite


ContainerRegistryContentClient Class

Definition

The Azure Container Registry content client, responsible for uploading and downloading blobs and manifests, the building blocks of artifacts.

public class ContainerRegistryContentClient
type ContainerRegistryContentClient = class
Public Class ContainerRegistryContentClient
Inheritance
ContainerRegistryContentClient

Constructors

ContainerRegistryContentClient()

Initializes a new instance of ContainerRegistryContentClient for mocking.

ContainerRegistryContentClient(Uri, String, ContainerRegistryClientOptions)

Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called from this client.

ContainerRegistryContentClient(Uri, String, TokenCredential, ContainerRegistryClientOptions)

Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts.

ContainerRegistryContentClient(Uri, String, TokenCredential)

Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts.

ContainerRegistryContentClient(Uri, String)

Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called from this client.

Properties

Endpoint

Gets the registry service endpoint for this client.

Pipeline

The HttpPipeline.

RepositoryName

Gets the name of the repository that logically groups the artifact parts.

Methods

DeleteBlob(String, CancellationToken)

Delete a blob.

DeleteBlobAsync(String, CancellationToken)

Delete a blob.

DeleteManifest(String, CancellationToken)

Delete a manifest. Doing so effectively deletes the artifact from the registry.

DeleteManifestAsync(String, CancellationToken)

Delete a manifest. Doing so effectively deletes the artifact from the registry.

DownloadBlobContent(String, CancellationToken)

Download a container registry blob. This API is a prefered way to fetch blobs that can fit into memory. The content is provided as BinaryData, which provides a lightweight abstraction for a payload of bytes. It provides convenient helper methods to get out commonly used primitives, such as streams, strings, or bytes. To download a blob that does not fit in memory, consider using the DownloadBlobTo(String, Stream, CancellationToken) method instead.

DownloadBlobContentAsync(String, CancellationToken)

Download a container registry blob. This API is a prefered way to fetch blobs that can fit into memory. The content is provided as BinaryData, which provides a lightweight abstraction for a payload of bytes. It provides convenient helper methods to get out commonly used primitives, such as streams, strings, or bytes. To download a blob that does not fit in memory, consider using the DownloadBlobToAsync(String, Stream, CancellationToken) method instead.

DownloadBlobStreaming(String, CancellationToken)

Downloads a blob from the registry.

DownloadBlobStreamingAsync(String, CancellationToken)

Downloads a blob from the registry.

DownloadBlobTo(String, Stream, CancellationToken)

Download a blob to a passed-in destination stream.

DownloadBlobTo(String, String, CancellationToken)

Download a blob to a file specified by the path parameter.

DownloadBlobToAsync(String, Stream, CancellationToken)

Download a blob to a passed-in destination stream. This approach will download the blob to the destination stream in sequential chunks of bytes.

DownloadBlobToAsync(String, String, CancellationToken)

Download a blob to a file specified by the path parameter.

GetManifest(String, CancellationToken)

Gets a manifest.

GetManifestAsync(String, CancellationToken)

Get a manifest.

SetManifest(BinaryData, String, Nullable<ManifestMediaType>, CancellationToken)

Sets a manifest.

SetManifest(OciImageManifest, String, Nullable<ManifestMediaType>, CancellationToken)

Sets a manifest.

SetManifestAsync(BinaryData, String, Nullable<ManifestMediaType>, CancellationToken)

Sets a manifest.

SetManifestAsync(OciImageManifest, String, Nullable<ManifestMediaType>, CancellationToken)

Sets a manifest.

UploadBlob(BinaryData, CancellationToken)

Upload a container registry blob.

UploadBlob(Stream, CancellationToken)

Upload a container registry blob.

UploadBlobAsync(BinaryData, CancellationToken)

Upload a container registry blob.

UploadBlobAsync(Stream, CancellationToken)

Upload a container registry blob.

Applies to