UNPKG

cloud-agnostic-storage

Version:

A package which enables cloud agnostic storage for a NodeJS project.

10 lines (9 loc) 588 B
import { CloudStorageConfig, FileDeleteResponse, FileDownloadResponse, FileUploadResponse } from "../models/CloudStorageService.models"; declare abstract class CloudStorageService { private config; constructor(config: CloudStorageConfig); uploadFileAsync(containerName: string, objectName: string): Promise<FileUploadResponse>; downloadFileAsync(containerName: string, objectName: string, versionId?: string): Promise<FileDownloadResponse>; deleteFileAsync(containerName: string, objectName: string): Promise<FileDeleteResponse>; } export default CloudStorageService;