hooks

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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" json:"pre_build" jsonschema:"title=pre_build,description=pre_build hooks"`
	PostBuild []hook `yaml:"post_build" json:"post_build" jsonschema:"title=post_build,description=post_build hooks"`

	PreUp  []hook `yaml:"pre_up" json:"pre_up" jsonschema:"title=pre_up,description=pre_up hooks"`
	PostUp []hook `yaml:"post_up" json:"post_up" jsonschema:"title=post_up,description=post_up hooks"`

	PreRollback  []hook `yaml:"pre_rollback" json:"pre_rollback" jsonschema:"title=pre_rollback,description=pre_rollback hooks"`
	PostRollback []hook `yaml:"post_rollback" json:"post_rollback" jsonschema:"title=post_rollback,description=post_rollback hooks"`

	PreDown  []hook `yaml:"pre_down" json:"pre_down" jsonschema:"title=pre_down,description=pre_down hooks"`
	PostDown []hook `yaml:"post_down" json:"post_down" jsonschema:"title=post_down,description=post_down hooks"`
}

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