ardiffact

Home > @microsoft/azure-artifact-storage > getArtifacts

getArtifacts() function

Loads artifacts from Azure Blob Storage into memory

Signature:

declare function getArtifacts(config: AzureBlobStorageConfig, prefix: string, filter?: string | string[], gzip?: boolean): Promise<{
    name: string;
    artifact: Buffer;
}[]>;

Parameters

Parameter Type Description
config AzureBlobStorageConfig The AzureBlobStorageConfig used to create an instance of a Storage client
prefix string Prefix for the blob name in Azure Blob Storage
filter string | string[] Globbing pattern to use to filter blobs
gzip boolean Whether to decompress the artifacts

Returns:

Promise<{ name: string; artifact: Buffer; }[]>

List of artifacts as Buffer objects