2020-05-06 11:10:18 -04:00
|
|
|
import {CompressionMethod} from './constants'
|
2022-04-04 16:21:58 +05:30
|
|
|
import {ITypedResponse} from '@actions/http-client/interfaces'
|
|
|
|
|
import {HttpClientError} from '@actions/http-client'
|
|
|
|
|
|
|
|
|
|
export interface ITypedResponseWithError<T> extends ITypedResponse<T> {
|
|
|
|
|
error?: HttpClientError
|
|
|
|
|
}
|
2020-05-06 11:10:18 -04:00
|
|
|
|
|
|
|
|
export interface ArtifactCacheEntry {
|
|
|
|
|
cacheKey?: string
|
|
|
|
|
scope?: string
|
|
|
|
|
creationTime?: string
|
|
|
|
|
archiveLocation?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CommitCacheRequest {
|
|
|
|
|
size: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ReserveCacheRequest {
|
|
|
|
|
key: string
|
|
|
|
|
version?: string
|
2022-04-04 16:21:58 +05:30
|
|
|
cacheSize?: number
|
2020-05-06 11:10:18 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ReserveCacheResponse {
|
|
|
|
|
cacheId: number
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-12 14:47:31 -04:00
|
|
|
export interface InternalCacheOptions {
|
2020-05-06 11:10:18 -04:00
|
|
|
compressionMethod?: CompressionMethod
|
2022-04-04 16:21:58 +05:30
|
|
|
cacheSize?: number
|
2020-05-06 11:10:18 -04:00
|
|
|
}
|