mirror of https://github.com/actions/toolkit
34 lines
716 B
TypeScript
34 lines
716 B
TypeScript
import {CompressionMethod} from './constants'
|
|
import {ITypedResponse} from '@actions/http-client/interfaces'
|
|
import {HttpClientError} from '@actions/http-client'
|
|
|
|
export interface ITypedResponseWithErrorMessage<T> extends ITypedResponse<T> {
|
|
error?: HttpClientError
|
|
}
|
|
|
|
export interface ArtifactCacheEntry {
|
|
cacheKey?: string
|
|
scope?: string
|
|
creationTime?: string
|
|
archiveLocation?: string
|
|
}
|
|
|
|
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
|
|
}
|