mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-20 01:41:06 +08:00
46 lines
933 B
TypeScript
46 lines
933 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
|
|
enableCrossOsArchive?: boolean
|
|
cacheSize?: number
|
|
}
|
|
|
|
export interface ArchiveTool {
|
|
path: string
|
|
type: string
|
|
}
|