@mypaas/hcm-cli
Version:
Vant Cli 是一个 Vue 组件库构建工具,通过 Vant Cli 可以快速搭建一套功能完备的 Vue 组件库。
21 lines (20 loc) • 2.36 kB
TypeScript
/// <reference types="node" />
import OSS, { CopyAndPutMetaResult, CopyObjectOptions, DeleteMultiOptions as OriginDeleteMultiOptions, GetObjectOptions, GetObjectResult, ObjectMeta, PutObjectOptions, PutObjectResult, UserMeta } from 'ali-oss';
export interface DeleteMultiOptions extends OriginDeleteMultiOptions {
quiet?: true;
}
declare function traversalObject(client: OSS, prefix: string, callback: (param: ObjectMeta) => any, options?: Record<string, any>): Promise<any[]>;
declare function list(client: OSS, prefix: string, options: Record<string, any>): Promise<string[]>;
declare function copy(client: OSS, sourceUri: string, targetUri: string, options: CopyObjectOptions): Promise<string>;
declare function get(client: OSS, uri: string, file: string | null, options: GetObjectOptions & Record<string, unknown>): Promise<GetObjectResult | string>;
declare function getMulti(client: OSS, uri: string, dir: string, options: GetObjectOptions & Record<string, unknown>): Promise<ObjectMeta[]>;
declare function getMultiByUris(client: OSS, uris: any[], dir: string, options: GetObjectOptions & Record<string, unknown>): Promise<any[]>;
declare function put(client: OSS, uri: string, file: string | Buffer | ReadableStream, options?: PutObjectOptions & Record<string, unknown>): Promise<PutObjectResult | string>;
export declare type PutMultiFilter = (file: string) => boolean | string | undefined;
declare function putMulti(client: OSS, uri: string, dir: string, options?: PutObjectOptions & Record<string, unknown>): Promise<PutObjectResult[]>;
declare function putMeta(client: OSS, uri: string, meta: UserMeta, options: OSS.RequestOptions): Promise<CopyAndPutMetaResult>;
declare function deleteObjects(client: OSS, names: string[], options: DeleteMultiOptions): Promise<string[]>;
declare function deleteByPrefix(client: OSS, prefix: string, options: DeleteMultiOptions): Promise<string[]>;
declare function copyByPrefix(client: OSS, sourcePrefix: string, targetPrefix: string, options: CopyObjectOptions & Record<string, unknown>): Promise<any[]>;
declare function putSymlink(client: OSS, symlinkUri: string, targetUri: string, options: CopyObjectOptions & Record<string, unknown>): Promise<any[]>;
export { traversalObject, get, getMulti, getMultiByUris, put, putMulti, putMeta, list, deleteObjects, deleteByPrefix, copy, copyByPrefix, putSymlink, };