Module bellhop::hooks

source ·
Expand description

Traits and types for implementing hook plugins.

Examples

There are a couple example crates that implement the Hook trait:

  • bellhop-hook-email is a very simple example that demonstrates sending an email when the sheriff does its rounds.
  • bellhop-hook-jenkins is a more involved example that starts a Jenkins job.

Structs

Data that is provided to Hook functions.
The error type that can be returned from Hook functions.

Enums

The kinds of errors that can be returned from Hook functions.

Traits

Trait for plugins that want notifications when Lease events are generated.