mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:08:53 +08:00
perf: 支持cloudflare域名
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { CreateRecordOptions, DnsProviderContext, IDnsProvider, RemoveRecordOptions } from "./api";
|
||||
|
||||
export abstract class AbstractDnsProvider implements IDnsProvider {
|
||||
export abstract class AbstractDnsProvider<T = any> implements IDnsProvider<T> {
|
||||
ctx!: DnsProviderContext;
|
||||
|
||||
setCtx(ctx: DnsProviderContext) {
|
||||
this.ctx = ctx;
|
||||
}
|
||||
|
||||
abstract createRecord(options: CreateRecordOptions): Promise<any>;
|
||||
abstract createRecord(options: CreateRecordOptions): Promise<T>;
|
||||
|
||||
abstract onInstance(): Promise<void>;
|
||||
|
||||
abstract removeRecord(options: RemoveRecordOptions): Promise<any>;
|
||||
abstract removeRecord(options: RemoveRecordOptions<T>): Promise<void>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user