Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
f878247a
Commit
f878247a
authored
Oct 01, 2017
by
elcore
Committed by
Matt Holt
Oct 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement CertRenewEvent (#1879)
parent
118cf5f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
caddytls/client.go
caddytls/client.go
+3
-0
plugins.go
plugins.go
+4
-3
No files found.
caddytls/client.go
View file @
f878247a
...
...
@@ -345,6 +345,9 @@ func (c *ACMEClient) Renew(name string) error {
return
errors
.
New
(
"too many renewal attempts; last error: "
+
err
.
Error
())
}
// Executes Cert renew events
caddy
.
EmitEvent
(
caddy
.
CertRenewEvent
,
name
)
return
saveCertResource
(
storage
,
newCertMeta
)
}
...
...
plugins.go
View file @
f878247a
...
...
@@ -231,10 +231,11 @@ func RegisterPlugin(name string, plugin Plugin) {
// EventName represents the name of an event used with event hooks.
type
EventName
string
// Define
the event names for the startup and shutdown
events
// Define
names for the various
events
const
(
StartupEvent
EventName
=
"startup"
ShutdownEvent
EventName
=
"shutdown"
StartupEvent
EventName
=
"startup"
ShutdownEvent
EventName
=
"shutdown"
CertRenewEvent
EventName
=
"certrenew"
)
// EventHook is a type which holds information about a startup hook plugin.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment