hooks

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_RELEASE_UNIQNAME = "HELMWAVE_LIFECYCLE_RELEASE_UNIQNAME"
	ENV_LIFECYCLE_TYPE   = "HELMWAVE_LIFECYCLE_TYPE"
)

Variables

View Source
var ErrUnknownFormat = errors.New("unknown format")

Functions

This section is empty.

Types

type Hook

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

type Hooks added in v0.29.0

type Hooks []Hook

func (Hooks) JSONSchema added in v0.29.0

func (Hooks) JSONSchema() *jsonschema.Schema

func (*Hooks) UnmarshalYAML added in v0.29.0

func (h *Hooks) UnmarshalYAML(node *yaml.Node) error

UnmarshalYAML is an unmarshaller for gopkg.in/yaml.v3 to parse YAML into `Hook` interface.

type Lifecycle

type Lifecycle struct {
	PreBuild  Hooks `yaml:"pre_build" json:"pre_build" jsonschema:"title=pre_build,description=pre_build hooks"`
	PostBuild Hooks `yaml:"post_build" json:"post_build" jsonschema:"title=post_build,description=post_build hooks"`

	PreUp  Hooks `yaml:"pre_up" json:"pre_up" jsonschema:"title=pre_up,description=pre_up hooks"`
	PostUp Hooks `yaml:"post_up" json:"post_up" jsonschema:"title=post_up,description=post_up hooks"`

	PreRollback  Hooks `yaml:"pre_rollback" json:"pre_rollback" jsonschema:"title=pre_rollback,description=pre_rollback hooks"`
	PostRollback Hooks `yaml:"post_rollback" json:"post_rollback" jsonschema:"title=post_rollback,description=post_rollback hooks"`

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

func (*Lifecycle) RunPostBuild added in v0.29.0

func (l *Lifecycle) RunPostBuild(ctx context.Context) error

func (*Lifecycle) RunPostDown added in v0.29.0

func (l *Lifecycle) RunPostDown(ctx context.Context) error

func (*Lifecycle) RunPostRollback added in v0.29.0

func (l *Lifecycle) RunPostRollback(ctx context.Context) error

func (*Lifecycle) RunPostUp added in v0.29.0

func (l *Lifecycle) RunPostUp(ctx context.Context) error

func (*Lifecycle) RunPreBuild added in v0.29.0

func (l *Lifecycle) RunPreBuild(ctx context.Context) error

func (*Lifecycle) RunPreDown added in v0.29.0

func (l *Lifecycle) RunPreDown(ctx context.Context) error

func (*Lifecycle) RunPreRollback added in v0.29.0

func (l *Lifecycle) RunPreRollback(ctx context.Context) error

func (*Lifecycle) RunPreUp added in v0.29.0

func (l *Lifecycle) RunPreUp(ctx context.Context) error

Jump to

Keyboard shortcuts

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