smartcert/dist/index.d.ts

45 lines
1.1 KiB
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-07-21 12:58:05 +00:00
domainsCurrentlyRequesting: string[];
2016-06-28 03:53:49 +00:00
certificatesPresent: Certificate[];
certificatesValid: Certificate[];
2016-07-21 12:58:05 +00:00
/**
* Constructor for Cert object
*/
2016-07-13 10:09:34 +00:00
constructor(optionsArg: ICertConstructorOptions);
2016-07-21 12:58:05 +00:00
/**
* Pulls already requested certificates from git origin
*/
2016-07-04 02:56:49 +00:00
sslGitOriginPull: () => void;
2016-07-21 12:58:05 +00:00
/**
* Pushes all new requested certificates to git origin
*/
2016-07-04 02:56:49 +00:00
sslGitOriginAddCommitPush: () => void;
2016-07-21 12:58:05 +00:00
/**
* gets a ssl cert for a given domain
*/
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();
}