Skip to content

Commit

Permalink
refactor: version 0.0.33
Browse files Browse the repository at this point in the history
  • Loading branch information
wss-git committed Jul 12, 2021
1 parent 82901e2 commit 8fe0bf8
Show file tree
Hide file tree
Showing 22 changed files with 833 additions and 595 deletions.
22 changes: 16 additions & 6 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,26 @@ import { FcBaseComponent } from './lib/component/fc-base';
import { IInputs } from './interface';
export default class FcDeployComponent {
logger: core.ILogger;
private serverlessProfile;
private fcService;
private fcFunction;
private fcTriggers;
private fcCustomDomains;
private region;
private credentials;
private curPath;
private args;
private access;
deploy(inputs: IInputs): Promise<any>;
help(): Promise<void>;
remove(inputs: IInputs): Promise<any>;
report(componentName: string, command: string, accountID?: string, access?: string): Promise<void>;
handlerBase(): Promise<{
fcBaseComponentIns: any;
BaseComponent: typeof FcBaseComponent;
componentName: string;
}>;
handlerInputs(inputs: IInputs): Promise<{
[key: string]: any;
}>;
deploy(inputs: IInputs): Promise<any>;
help(inputs: IInputs): Promise<void>;
remove(inputs: IInputs): Promise<any>;
private setStatefulConfig;
private checkIfResourceExistOnline;
private handlerInputs;
}
789 changes: 450 additions & 339 deletions dist/index.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/lib/component/fc-info.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/lib/fc/custom-domain.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ export declare class FcCustomDomain extends IInputsBase {
readonly functionName: string;
readonly hasHttpTrigger: boolean;
readonly httpMethods?: string[];
readonly stateId: string;
isDomainNameAuto: boolean;
constructor(customDomainConf: CustomDomainConfig, serviceName: string, functionName: string, triggerConfs: TriggerConfig[], serverlessProfile: ServerlessProfile, region: string, credentials: ICredentials, curPath?: string, args?: string);
initLocal(): Promise<void>;
validateConfig(): void;
initLocalConfig(): Promise<void>;
setStatedCustomDomainConf(resolvedCustomDomainConf: CustomDomainConfig): Promise<void>;
delStatedCustomDomainConf(): Promise<void>;
getStatedCustomDomainConf(): Promise<string>;
makeCustomDomain(): Promise<CustomDomainConfig>;
}
export {};
58 changes: 39 additions & 19 deletions dist/lib/fc/custom-domain.js

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions dist/lib/fc/fc-deploy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ import { ServerlessProfile, ICredentials, IInputsBase } from '../profile';
export default abstract class FcDeploy<T> extends IInputsBase {
localConfig: T;
remoteConfig: T;
statefulConfig: any;
existOnline: boolean;
useRemote: boolean;
constructor(localConfig: T, serverlessProfile: ServerlessProfile, region: string, credentials: ICredentials, curPath?: string, args?: string);
setKVInState(stateID: string, key: string, value: any): Promise<void>;
unsetState(): Promise<void>;
getState(): Promise<any>;
initStateful(): Promise<void>;
GetRemoteInfo(type: string, serviceName: string, functionName?: string, triggerName?: string): Promise<{
remoteConfig: T;
resourceName: string;
}>;
initRemote(type: string, serviceName: string, functionName?: string, triggerName?: string): Promise<void>;
setResolvedConfig(name: string, resolvedConfig: any, setFlag: boolean): Promise<void>;
setUseRemote(name: string, type: string, useRemoteFlag?: boolean, useLocalFlag?: boolean): Promise<void>;
setStatefulConfig(): Promise<void>;
setUseRemote(name: string, type: string, useLocalFlag?: boolean): Promise<void>;
upgradeStatefulConfig(): void;
abstract genStateID(): string;
}
Loading

0 comments on commit 8fe0bf8

Please sign in to comment.