smartcert/dist/index.d.ts

32 lines
853 B
TypeScript
Raw Normal View History

2016-07-01 04:26:10 +00:00
/// <reference types="q" />
import * as plugins from "./cert.plugins";
2016-07-13 10:09:34 +00:00
export interface ICertConstructorOptions {
2016-07-12 16:00:08 +00:00
cfEmail: string;
cfKey: string;
2016-07-13 10:09:34 +00:00
sslDir?: string;
2016-07-12 16:00:08 +00:00
gitOriginRepo?: string;
testMode?: boolean;
}
2016-06-18 14:03:46 +00:00
export declare class Cert {
2016-06-28 07:32:01 +00:00
private _cfEmail;
private _cfKey;
private _sslDir;
2016-07-04 06:41:58 +00:00
private _gitOriginRepo;
private _testMode;
2016-06-28 03:53:49 +00:00
certificatesPresent: Certificate[];
certificatesValid: Certificate[];
2016-07-13 10:09:34 +00:00
constructor(optionsArg: ICertConstructorOptions);
2016-07-04 02:56:49 +00:00
sslGitOriginPull: () => void;
sslGitOriginAddCommitPush: () => void;
2016-06-28 03:53:49 +00:00
getDomainCert(domainNameArg: string, optionsArg?: {
force: boolean;
2016-07-01 04:26:10 +00:00
}): plugins.q.Promise<{}>;
2016-07-04 06:41:58 +00:00
cleanOldCertificates(): void;
2016-06-18 14:03:46 +00:00
}
export declare class Certificate {
2016-06-21 18:02:57 +00:00
domainName: string;
creationDate: Date;
expiryDate: Date;
2016-06-18 14:03:46 +00:00
constructor();
}