hooks

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(hooks []hook)

Types

type Hook

type Hook interface {
	Run()
	Log() *log.Entry
}

type Lifecycle

type Lifecycle struct {
	PreBuild  []hook `yaml:"pre_build"`
	PostBuild []hook `yaml:"post_build"`

	PreUp  []hook `yaml:"pre_up"`
	PostUp []hook `yaml:"post_up"`

	PreRollback  []hook `yaml:"pre_rollback"`
	PostRollback []hook `yaml:"post_rollback"`

	PreDown  []hook `yaml:"pre_down"`
	PostDown []hook `yaml:"post_down"`
}

func (*Lifecycle) PostBuilding

func (l *Lifecycle) PostBuilding()

func (*Lifecycle) PostDowning

func (l *Lifecycle) PostDowning()

func (*Lifecycle) PostRolling

func (l *Lifecycle) PostRolling()

func (*Lifecycle) PostUping

func (l *Lifecycle) PostUping()

func (*Lifecycle) PreBuilding

func (l *Lifecycle) PreBuilding()

func (*Lifecycle) PreDowning

func (l *Lifecycle) PreDowning()

func (*Lifecycle) PreRolling

func (l *Lifecycle) PreRolling()

func (*Lifecycle) PreUping

func (l *Lifecycle) PreUping()

Jump to

Keyboard shortcuts

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