Files
toolkit/packages/cache/src/internal/contracts.d.ts
T

46 lines
933 B
TypeScript
Raw Normal View History

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
2022-11-14 05:24:09 +00:00
cacheVersion?: string
creationTime?: string
archiveLocation?: string
}
2022-11-14 05:24:09 +00:00
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
}
2020-05-12 14:47:31 -04:00
export interface InternalCacheOptions {
compressionMethod?: CompressionMethod
enableCrossOsArchive?: boolean
cacheSize?: number
}
export interface ArchiveTool {
path: string
type: string
}