* bsd + zstd fallback implementation * bsd + zstd fallback implementation * Fix tar operations * Add -v option for testing * Fix order of args for tar * Add GNUtar as default on windows * Fix test * Fix tar tests * Fix lint issues * Fix windows gnutar test case * Temporarily remove thhe condition that prevents zstd usage on windows unless with GNUtar * Address some comments and correct compression commands * Add windows bsdtar test * Fix windows test * Fix test * Separate args * Fix old tests * Add new tests * Fix tests * Fix lint test * Refactor code * Address review comments * Fix test * Fix tar test * Add await to async function calls * Fix test * Update for beta release * Fix audit issues * Add fallback to gzip compression if cache not found * Fix test * Add test * Address review comments * Revert Address review comments * Release 3.1.0-beta.2 cache package * Fix issues * Reconfigure catch block * Add debug logging for gzip fall back * Fix test * Add end to end test for cache using bsd on windows and address review comments * Fix test * Fix test * Fix tests * Add better comments * Update packages/cache/src/internal/cacheHttpClient.ts Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com> * Address review comments * Update for new beta cache package release * Address bugbash issues * Fix tests * Release new actions/cache minor version Co-authored-by: Lovepreet Singh <pdotl@github.com> Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
45 lines
900 B
TypeScript
45 lines
900 B
TypeScript
import {CompressionMethod} from './constants'
|
|
import {TypedResponse} from '@actions/http-client/lib/interfaces'
|
|
import {HttpClientError} from '@actions/http-client'
|
|
|
|
export interface ITypedResponseWithError<T> extends TypedResponse<T> {
|
|
error?: HttpClientError
|
|
}
|
|
|
|
export interface ArtifactCacheEntry {
|
|
cacheKey?: string
|
|
scope?: string
|
|
cacheVersion?: string
|
|
creationTime?: string
|
|
archiveLocation?: string
|
|
}
|
|
|
|
export interface ArtifactCacheList {
|
|
totalCount: number
|
|
artifactCaches?: ArtifactCacheEntry[]
|
|
}
|
|
|
|
export interface CommitCacheRequest {
|
|
size: number
|
|
}
|
|
|
|
export interface ReserveCacheRequest {
|
|
key: string
|
|
version?: string
|
|
cacheSize?: number
|
|
}
|
|
|
|
export interface ReserveCacheResponse {
|
|
cacheId: number
|
|
}
|
|
|
|
export interface InternalCacheOptions {
|
|
compressionMethod?: CompressionMethod
|
|
cacheSize?: number
|
|
}
|
|
|
|
export interface ArchiveTool {
|
|
path: string
|
|
type: string
|
|
}
|