fc-toolkit
Version:
fc-toolkit
29 lines (28 loc) • 703 B
TypeScript
import { IOSSOptions } from 'awos-js/lib/oss';
import { IAWSOptions } from 'awos-js/lib/aws';
export declare enum StorageEngine {
ALIYUN_OSS = "oss",
AWS_S3 = "aws"
}
export interface IConfigurationV1 {
serviceName: string;
handler: string;
memorySize: number;
runtime: string;
timeout: number;
fc: IFcConfigurationV1;
aws?: IAWSOptions;
oss?: IOSSOptions;
EnvironmentVariables?: IEnvVars;
}
export interface IFcConfigurationV1 {
accountId: string;
accessKeyID: string;
accessKeySecret: string;
region: string;
timeout: number;
}
export interface IEnvVars {
[envKey: string]: string;
}
export declare type Nullable<T> = T | undefined;