aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2020-03-06 23:15:25 -0700
committerMatthew Holt <[email protected]>2020-03-06 23:15:25 -0700
commitb8cba62643abf849411856bd92c42b59b98779f4 (patch)
tree518ddc4db0ce065353fd6f499c8eaf2975b65d13 /modules.go
parent7cca291d62c910c0544f0c0169a8f0c81627e5d3 (diff)
downloadcaddy-b8cba62643abf849411856bd92c42b59b98779f4.tar.gz
caddy-b8cba62643abf849411856bd92c42b59b98779f4.zip
Refactor for CertMagic v0.10; prepare for PKI app
This is a breaking change primarily in two areas: - Storage paths for certificates have changed - Slight changes to JSON config parameters Huge improvements in this commit, to be detailed more in the release notes. The upcoming PKI app will be powered by Smallstep libraries.
Diffstat (limited to 'modules.go')
-rw-r--r--modules.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules.go b/modules.go
index b9e5b4e85..bd1f0e977 100644
--- a/modules.go
+++ b/modules.go
@@ -101,7 +101,7 @@ func (id ModuleID) Namespace() string {
return string(id)[:lastDot]
}
-// Name returns the Name (last element) of a module name.
+// Name returns the Name (last element) of a module ID.
func (id ModuleID) Name() string {
if id == "" {
return ""
@@ -294,8 +294,8 @@ type Provisioner interface {
// Validator is implemented by modules which can verify that their
// configurations are valid. This method will be called after
// Provision() (if implemented). Validation should always be fast
-// (imperceptible running time) and an error should be returned only
-// if the value's configuration is invalid.
+// (imperceptible running time) and an error must be returned if
+// the module's configuration is invalid.
type Validator interface {
Validate() error
}