Package-level declarations

Types

Link copied to clipboard
sealed external interface ArchiveToolType
Link copied to clipboard
sealed external interface CacheFilename
Link copied to clipboard
sealed external interface CompressionMethod
Link copied to clipboard
external interface DownloadOptions
Link copied to clipboard
external class DownloadProgress
Link copied to clipboard
external class ReserveCacheError : Throwable
Link copied to clipboard
external interface TransferProgressEvent
Link copied to clipboard
external interface UploadOptions
Link copied to clipboard
external class ValidationError : Throwable

Properties

Link copied to clipboard
const val DefaultRetryAttempts: Int = 2
Link copied to clipboard
const val DefaultRetryDelay: Int = 5000
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val SocketTimeout: Int = 5000
Link copied to clipboard
Link copied to clipboard
const val TarFilename: String

Functions

Link copied to clipboard
external fun <T> assertDefined(name: String, value: T = definedExternally): T
Link copied to clipboard
suspend external fun createTar(archiveFolder: String, sourceDirectories: ReadonlyArray<String>, compressionMethod: CompressionMethod)
Link copied to clipboard
external fun createTarAsync(archiveFolder: String, sourceDirectories: ReadonlyArray<String>, compressionMethod: CompressionMethod): Promise<Void>
Link copied to clipboard
suspend external fun createTempDirectory(): String
Link copied to clipboard
Link copied to clipboard
suspend external fun downloadCache(archiveLocation: String, archivePath: String, options: DownloadOptions = definedExternally)
Link copied to clipboard
external fun downloadCacheAsync(archiveLocation: String, archivePath: String, options: DownloadOptions = definedExternally): Promise<Void>
Link copied to clipboard
suspend external fun downloadCacheHttpClient(archiveLocation: String, archivePath: String)
Link copied to clipboard
external fun downloadCacheHttpClientAsync(archiveLocation: String, archivePath: String): Promise<Void>
Link copied to clipboard
suspend external fun downloadCacheHttpClientConcurrent(archiveLocation: String, archivePath: PathLike, options: DownloadOptions)
Link copied to clipboard
external fun downloadCacheHttpClientConcurrentAsync(archiveLocation: String, archivePath: PathLike, options: DownloadOptions): Promise<Void>
Link copied to clipboard
suspend external fun downloadCacheStorageSDK(archiveLocation: String, archivePath: String, options: DownloadOptions)
Link copied to clipboard
external fun downloadCacheStorageSDKAsync(archiveLocation: String, archivePath: String, options: DownloadOptions): Promise<Void>
Link copied to clipboard
suspend external fun extractTar(archivePath: String, compressionMethod: CompressionMethod)
Link copied to clipboard
external fun extractTarAsync(archivePath: String, compressionMethod: CompressionMethod): Promise<Void>
Link copied to clipboard
external fun getArchiveFileSizeInBytes(filePath: String): Number
Link copied to clipboard
external fun getCacheFileName(compressionMethod: CompressionMethod): String
Link copied to clipboard
external fun getCacheVersion(paths: ReadonlyArray<String>, compressionMethod: CompressionMethod = definedExternally, enableCrossOsArchive: Boolean = definedExternally): String
Link copied to clipboard
suspend external fun getCompressionMethod(): CompressionMethod
Link copied to clipboard
external fun getDownloadOptions(copy: DownloadOptions = definedExternally): DownloadOptions
Link copied to clipboard
suspend external fun getGnuTarPathOnWindows(): String
Link copied to clipboard
Link copied to clipboard
external fun getUploadOptions(copy: UploadOptions = definedExternally): UploadOptions
Link copied to clipboard
external fun isFeatureAvailable(): Boolean
Link copied to clipboard
external fun isGhes(): Boolean
Link copied to clipboard
external fun isRetryableStatusCode(statusCode: Number = definedExternally): Boolean
Link copied to clipboard
external fun isServerErrorStatusCode(statusCode: Number = definedExternally): Boolean
Link copied to clipboard
external fun isSuccessStatusCode(statusCode: Number = definedExternally): Boolean
Link copied to clipboard
suspend external fun listTar(archivePath: String, compressionMethod: CompressionMethod)
Link copied to clipboard
external fun listTarAsync(archivePath: String, compressionMethod: CompressionMethod): Promise<Void>
Link copied to clipboard
suspend external fun resolvePaths(patterns: ReadonlyArray<String>): ReadonlyArray<String>
Link copied to clipboard
Link copied to clipboard
suspend external fun restoreCache(paths: ReadonlyArray<String>, primaryKey: String, restoreKeys: ReadonlyArray<String> = definedExternally, options: DownloadOptions = definedExternally, enableCrossOsArchive: Boolean = definedExternally): String?
Link copied to clipboard
external fun restoreCacheAsync(paths: ReadonlyArray<String>, primaryKey: String, restoreKeys: ReadonlyArray<String> = definedExternally, options: DownloadOptions = definedExternally, enableCrossOsArchive: Boolean = definedExternally): Promise<String?>
Link copied to clipboard
suspend external fun <T> retry(name: String, method: () -> Promise<T>, getStatusCode: (arg0: T) -> Number?, maxAttempts: Number = definedExternally, delay: Number = definedExternally, onError: (JsError) -> T?? = definedExternally): T
Link copied to clipboard
external fun <T> retryAsync(name: String, method: () -> Promise<T>, getStatusCode: (arg0: T) -> Number?, maxAttempts: Number = definedExternally, delay: Number = definedExternally, onError: (JsError) -> T?? = definedExternally): Promise<T>
Link copied to clipboard
suspend external fun retryHttpClientResponse(name: String, method: () -> Promise<HttpClientResponse>, maxAttempts: Number = definedExternally, delay: Number = definedExternally): HttpClientResponse
Link copied to clipboard
external fun retryHttpClientResponseAsync(name: String, method: () -> Promise<HttpClientResponse>, maxAttempts: Number = definedExternally, delay: Number = definedExternally): Promise<HttpClientResponse>
Link copied to clipboard
suspend external fun saveCache(cacheId: Number, archivePath: String, options: UploadOptions = definedExternally)
suspend external fun saveCache(paths: ReadonlyArray<String>, key: String, options: UploadOptions = definedExternally, enableCrossOsArchive: Boolean = definedExternally): Number
Link copied to clipboard
external fun saveCacheAsync(cacheId: Number, archivePath: String, options: UploadOptions = definedExternally): Promise<Void>
external fun saveCacheAsync(paths: ReadonlyArray<String>, key: String, options: UploadOptions = definedExternally, enableCrossOsArchive: Boolean = definedExternally): Promise<Number>
Link copied to clipboard
suspend external fun unlinkFile(filePath: PathLike)
Link copied to clipboard
external fun unlinkFileAsync(filePath: PathLike): Promise<Void>