2020-05-06 11:10:18 -04:00
|
|
|
import {CompressionMethod} from './constants'
|
2022-03-31 10:41:54 +00:00
|
|
|
import {ITypedResponse} from '@actions/http-client/interfaces'
|
2022-03-31 09:42:59 +00:00
|
|
|
|
|
|
|
|
export interface ITypedResponseWithErrorMessage<T> extends ITypedResponse<T> {
|
|
|
|
|
message?: string
|
|
|
|
|
typeKey?: string
|
|
|
|
|
}
|
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-03-29 22:17:04 +00:00
|
|
|
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-03-29 22:17:04 +00:00
|
|
|
cacheSize?: number
|
2020-05-06 11:10:18 -04:00
|
|
|
}
|