UNPKG

@yuntools/ali-oss

Version:

阿里云 OSS 命令行工具 ossutil 封装,支持 ESM,CJS 导入,提供 TypeScript 类型定义

33 lines 1.31 kB
import { BaseOptions, Config, DataBase, DataKey, ParamMap } from '../types.js'; export interface SignOptions extends BaseOptions { /** cloudurl 路径,不包括 bucket */ src: string; /** * 不对cloud_url中携带的正斜线(/)进行编码 * @default false */ disableEncodeSlash?: boolean | undefined; /** * 签名 URL 过期时间,单位秒 * @default 60 */ timeoutSec?: number | undefined; /** * 限定HTTP的访问速度,单位为bit/s。缺省值为0,表示不受限制。 * 取值范围为 245760~838860800 */ trafficLimit?: number | undefined; /** Object 的指定版本ID。仅适用于已开启或暂停版本控制状态 Bucket下的 Object */ versionId?: string | undefined; } export interface DataSign extends DataBase { /** 不带有 token 认证信息的文件路径 */ [DataKey.link]: string | undefined; /** 不带有 token 认证信息的链接 */ [DataKey.httpUrl]: string | undefined; /** 带有 token 认证信息的链接 */ [DataKey.httpShareUrl]: string | undefined; } export declare const initOptions: SignOptions; export declare function processInput(input: SignOptions, globalConfig: Config | undefined): Promise<ParamMap>; //# sourceMappingURL=sign.d.ts.map