12
0
Fork 0
mirror of https://github.com/actions/cache.git synced 2026-07-04 06:09:31 +00:00

Tiny fixes

This commit is contained in:
Boris Staal 2023-04-09 10:44:27 -05:00
parent f12187b90c
commit 180001d529
No known key found for this signature in database
11 changed files with 125 additions and 121 deletions

View file

@ -1,6 +1,7 @@
import { CompressionMethod } from "./cacheUtils";
import { TypedResponse } from "@actions/http-client/lib/interfaces";
import { HttpClientError } from "@actions/http-client";
import { TypedResponse } from "@actions/http-client/lib/interfaces";
import { CompressionMethod } from "./cacheUtils";
export interface ITypedResponseWithError<T> extends TypedResponse<T> {
error?: HttpClientError;
@ -32,7 +33,6 @@ export interface InternalCacheOptions {
cacheSize?: number;
}
/**
* Options to control cache upload
*/
@ -42,19 +42,19 @@ export interface UploadOptions {
*
* @default 4
*/
uploadConcurrency?: number
uploadConcurrency?: number;
/**
* Maximum chunk size in bytes for cache upload
*
* @default 32MB
*/
uploadChunkSize?: number
}
/**
* Options to control cache download
*/
export interface DownloadOptions {
uploadChunkSize?: number;
}
/**
* Options to control cache download
*/
export interface DownloadOptions {
/**
* Indicates whether to use the Azure Blob SDK to download caches
* that are stored on Azure Blob Storage to improve reliability and
@ -62,23 +62,23 @@ export interface UploadOptions {
*
* @default true
*/
useAzureSdk?: boolean
useAzureSdk?: boolean;
/**
* Number of parallel downloads (this option only applies when using
* the Azure SDK)
*
* @default 8
*/
downloadConcurrency?: number
downloadConcurrency?: number;
/**
* Maximum time for each download request, in milliseconds (this
* option only applies when using the Azure SDK)
*
* @default 30000
*/
timeoutInMs?: number,
timeoutInMs?: number;
lookupOnly?: boolean
}
lookupOnly?: boolean;
}