hook

package
v1.2.12-beta.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedEvents = map[string]casket.EventName{
	"startup":   casket.InstanceStartupEvent,
	"shutdown":  casket.ShutdownEvent,
	"certrenew": casket.CertRenewEvent,
}

SupportedEvents is a map of supported events.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID      string
	Event   casket.EventName
	Command string
	Args    []string
}

Config describes how Hook should be configured and used.

func (*Config) Hook

func (cfg *Config) Hook(event casket.EventName, info interface{}) error

Hook executes a command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL