hooks

package
v0.41.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvReleaseUniqname = "HELMWAVE_LIFECYCLE_RELEASE_UNIQNAME"
	EnvLifecycleType   = "HELMWAVE_LIFECYCLE_TYPE"
)

Variables

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

Functions

func NewCommandReadOutputError added in v0.31.0

func NewCommandReadOutputError(err error) error

func NewCommandRunError added in v0.31.0

func NewCommandRunError(err error) error

func NewCreatePipeError added in v0.31.0

func NewCreatePipeError(err error) error

func NewYAMLDecodeError added in v0.31.0

func NewYAMLDecodeError(err error) error

Types

type CommandReadOutputError added in v0.31.0

type CommandReadOutputError struct {
	Err error
}

func (CommandReadOutputError) Error added in v0.31.0

func (err CommandReadOutputError) Error() string

func (CommandReadOutputError) Unwrap added in v0.31.0

func (err CommandReadOutputError) Unwrap() error

type CommandRunError added in v0.31.0

type CommandRunError struct {
	Err error
}

func (CommandRunError) Error added in v0.31.0

func (err CommandRunError) Error() string

func (CommandRunError) Unwrap added in v0.31.0

func (err CommandRunError) Unwrap() error

type CreatePipeError added in v0.31.0

type CreatePipeError struct {
	Err error
}

func (CreatePipeError) Error added in v0.31.0

func (err CreatePipeError) Error() string

func (CreatePipeError) Unwrap added in v0.31.0

func (err CreatePipeError) Unwrap() error

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

type YAMLDecodeError added in v0.31.0

type YAMLDecodeError struct {
	Err error
}

func (YAMLDecodeError) Error added in v0.31.0

func (err YAMLDecodeError) Error() string

func (YAMLDecodeError) Unwrap added in v0.31.0

func (err YAMLDecodeError) Unwrap() error

Jump to

Keyboard shortcuts

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