hook

package
v0.0.0-...-2dfab7d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBuildHook

func WithBuildHook(h LifecycleHook) hookOption

func WithCommandStartHook

func WithCommandStartHook(h commandStartHook) hookOption

func WithDeployHook

func WithDeployHook(h LifecycleHook) hookOption

func WithPostAppChartValuesHook

func WithPostAppChartValuesHook(h postHelmValuesComputeHook) hookOption

func WithPostRuntimeChartValuesHook

func WithPostRuntimeChartValuesHook(h postHelmValuesComputeHook) hookOption

func WithPreHelmValuesComputeHook

func WithPreHelmValuesComputeHook(h preHelmValuesComputeHook) hookOption

func WithPublishHook

func WithPublishHook(h LifecycleHook) hookOption

Types

type Hooks

type Hooks struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...hookOption) *Hooks

func (*Hooks) Build

func (h *Hooks) Build(ctx context.Context, f func() (LifecycleOutput, error))

func (*Hooks) CommandStart

func (h *Hooks) CommandStart(
	projectDir string,
) error

func (*Hooks) Deploy

func (h *Hooks) Deploy(ctx context.Context, f func() (LifecycleOutput, error))

func (*Hooks) PostAppChartValuesCompute

func (h *Hooks) PostAppChartValuesCompute(
	ctx context.Context,
	p provider.Providers,
	hvc *helm.ValueComputer,
) (Values, error)

func (*Hooks) PostRuntimeChartValuesCompute

func (h *Hooks) PostRuntimeChartValuesCompute(
	ctx context.Context,
	p provider.Providers,
	hvc *helm.ValueComputer,
) (Values, error)

func (*Hooks) PreHelmValuesCompute

func (h *Hooks) PreHelmValuesCompute(
	ctx context.Context,
	p provider.Providers,
	hvc *helm.ValueComputer,
) error

func (*Hooks) Publish

func (h *Hooks) Publish(ctx context.Context, f func() (LifecycleOutput, error))

type LifecycleHook

type LifecycleHook func(ctx context.Context, f func() (LifecycleOutput, error))

type LifecycleOutput

type LifecycleOutput interface {
	SetDuration(time.Duration)
}

type Values

type Values map[string]any

Values are the "values" computed to insert into the helm chart

Jump to

Keyboard shortcuts

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