mirror of https://github.com/certd/certd
refactor: register
parent
f358a0f226
commit
e123ec4089
|
@ -23,3 +23,5 @@ export class AliyunAccess {
|
|||
})
|
||||
accessKeySecret = "";
|
||||
}
|
||||
|
||||
new AliyunAccess();
|
||||
|
|
|
@ -120,3 +120,5 @@ export class AliyunDnsProvider implements IDnsProvider {
|
|||
return ret.RecordId;
|
||||
}
|
||||
}
|
||||
|
||||
new AliyunDnsProvider();
|
||||
|
|
|
@ -228,3 +228,5 @@ export class DeployCertToAliyunAckIngressPlugin implements ITaskPlugin {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
new DeployCertToAliyunAckIngressPlugin();
|
||||
|
|
|
@ -4,6 +4,7 @@ import Core from "@alicloud/pop-core";
|
|||
import RPCClient from "@alicloud/pop-core";
|
||||
import { AliyunAccess } from "../../access";
|
||||
|
||||
|
||||
@IsTaskPlugin({
|
||||
name: "DeployCertToAliyunCDN",
|
||||
title: "部署证书至阿里云CDN",
|
||||
|
@ -103,3 +104,4 @@ export class DeployCertToAliyunCDN implements ITaskPlugin {
|
|||
}
|
||||
}
|
||||
}
|
||||
new DeployCertToAliyunCDN();
|
||||
|
|
|
@ -101,3 +101,5 @@ export class UploadCertToAliyun implements ITaskPlugin {
|
|||
});
|
||||
}
|
||||
}
|
||||
//注册插件
|
||||
new UploadCertToAliyun();
|
||||
|
|
|
@ -1,21 +1,3 @@
|
|||
import * as cert from "@certd/plugin-cert";
|
||||
import * as aliyun from "@certd/plugin-aliyun";
|
||||
import * as tencent from "@certd/plugin-tencent";
|
||||
import * as host from "@certd/plugin-host";
|
||||
import * as huawei from "@certd/plugin-huawei";
|
||||
|
||||
function register(exports: any) {
|
||||
for (const key in exports) {
|
||||
const value = exports[key];
|
||||
console.log("value");
|
||||
}
|
||||
}
|
||||
register(cert);
|
||||
register(aliyun);
|
||||
register(tencent);
|
||||
register(host);
|
||||
register(huawei);
|
||||
|
||||
export * from "@certd/plugin-cert";
|
||||
export * from "@certd/plugin-aliyun";
|
||||
export * from "@certd/plugin-tencent";
|
||||
|
|
|
@ -289,3 +289,5 @@ export class CertApplyPlugin implements ITaskPlugin {
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
new CertApplyPlugin();
|
||||
|
|
|
@ -45,3 +45,5 @@ export class SshAccess implements IAccess {
|
|||
})
|
||||
privateKey!: string;
|
||||
}
|
||||
|
||||
new SshAccess();
|
||||
|
|
|
@ -60,3 +60,5 @@ export class HostShellExecutePlugin implements ITaskPlugin {
|
|||
this.logger.info("exec res:", ret);
|
||||
}
|
||||
}
|
||||
|
||||
new HostShellExecutePlugin();
|
||||
|
|
|
@ -98,3 +98,5 @@ export class UploadCertToHostPlugin implements ITaskPlugin {
|
|||
this.hostKeyPath = keyPath;
|
||||
}
|
||||
}
|
||||
|
||||
new UploadCertToHostPlugin();
|
||||
|
|
|
@ -23,3 +23,5 @@ export class HuaweiAccess {
|
|||
})
|
||||
accessKeySecret = "";
|
||||
}
|
||||
|
||||
new HuaweiAccess();
|
||||
|
|
|
@ -112,3 +112,5 @@ export class HuaweiDnsProvider implements IDnsProvider {
|
|||
return ret.RecordId;
|
||||
}
|
||||
}
|
||||
|
||||
new HuaweiDnsProvider();
|
||||
|
|
|
@ -23,3 +23,5 @@ export class DnspodAccess {
|
|||
})
|
||||
id = "";
|
||||
}
|
||||
|
||||
new DnspodAccess();
|
||||
|
|
|
@ -112,3 +112,4 @@ export class DnspodDnsProvider implements IDnsProvider {
|
|||
return domain;
|
||||
}
|
||||
}
|
||||
new DnspodDnsProvider();
|
||||
|
|
Loading…
Reference in New Issue