2
0
镜像自地址 https://git.coolaj86.com/coolaj86/greenlock-manager-test.js.git 已同步 2025-07-03 21:36:33 +00:00

update docs

这个提交包含在:
AJ ONeal 2019-10-31 00:09:09 -06:00
父节点 742ef6159a
当前提交 8be22ecbae

查看文件

@ -16,13 +16,15 @@ A greenlock manager is just a set of a few callbacks to keeps track of:
- `renewAt` (ex: '45d') - `renewAt` (ex: '45d')
- `challenges` (plugins for 'http-01', 'dns-01', etc) - `challenges` (plugins for 'http-01', 'dns-01', etc)
The callbacks are: The **callbacks** are:
- `set({ subject, altnames, renewAt })` to save site details - `set({ subject, altnames, renewAt })` to save site details
- `find({ subject, altnames, renewBefore })` which returns a list of matching sites (perhaps all sites) - `find({ subject, altnames, renewBefore })` which returns a list of matching sites (perhaps all sites)
- `remove({ subject })` which marks a site as deleted - `remove({ subject })` which marks a site as deleted
- `defaults()` which either **gets** or **sets** the global configs that apply to all sites - `defaults()` which either **gets** or **sets** the global configs that apply to all sites
When do they get called? Well, whenever they need to.
# Some Terminology # Some Terminology
- `subject` refers to the **primary domain** on an SSL certificate - `subject` refers to the **primary domain** on an SSL certificate
@ -45,6 +47,7 @@ You can start _really_ simple: just make a file that exports a `create()` functi
'use strict'; 'use strict';
var MyManager = module.exports; var MyManager = module.exports;
MyManager.create = function(options) { MyManager.create = function(options) {
console.log('The tests will make me stronger'); console.log('The tests will make me stronger');
return {}; return {};