Documentation
¶
Overview ¶
package hook is used to ensure execution of a set of pre-start, post-start, pre-stop and post-stop hooks. The transitioning between states is gated by the consumer of the package, through use of the Hooks.Transition function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
type Hooks struct {
// PreStart are hooks to be run before the application starts
PreStart []Interface
// PostStart are hooks to be run after the application starts
PostStart []Interface
// PreStop are hooks to be run before the application stops
PreStop []Interface
// PostStop are hooks to be run after the application stops
PostStop []Interface
// contains filtered or unexported fields
}
func (*Hooks) CurrentPhase ¶
func (h *Hooks) CurrentPhase() v1alpha1.PilotPhase
CurrentPhase returns the current phase
func (*Hooks) Transition ¶
Click to show internal directories.
Click to hide internal directories.