mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-29 17:59:57 +00:00
TUN-528: Move cloudflared into a separate repo
This commit is contained in:
20
vendor/github.com/mholt/caddy/onevent/hook/config.go
generated
vendored
Normal file
20
vendor/github.com/mholt/caddy/onevent/hook/config.go
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
package hook
|
||||
|
||||
import (
|
||||
"github.com/mholt/caddy"
|
||||
)
|
||||
|
||||
// Config describes how Hook should be configured and used.
|
||||
type Config struct {
|
||||
ID string
|
||||
Event caddy.EventName
|
||||
Command string
|
||||
Args []string
|
||||
}
|
||||
|
||||
// SupportedEvents is a map of supported events.
|
||||
var SupportedEvents = map[string]caddy.EventName{
|
||||
"startup": caddy.InstanceStartupEvent,
|
||||
"shutdown": caddy.ShutdownEvent,
|
||||
"certrenew": caddy.CertRenewEvent,
|
||||
}
|
Reference in New Issue
Block a user