executor

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Config() *pkg.HookConfig
	Execute(ctx context.Context, req Request) (Result, error)
}

func NewApplicationExecutor

func NewApplicationExecutor(h pkg.Hook[*pkg.ApplicationHookInput], logger *log.Logger) Executor

NewApplicationExecutor creates a new application executor

func NewModuleExecutor

func NewModuleExecutor(h pkg.Hook[*pkg.HookInput], logger *log.Logger) Executor

NewModuleExecutor creates a new application hook

type Request

type Request interface {
	GetValues() (map[string]any, error)
	GetConfigValues() (map[string]any, error)
	GetBindingContexts() ([]bctx.BindingContext, error)
	GetDependencyContainer() pkg.DependencyContainer
}

type Result

type Result interface {
	MetricsCollector() pkg.Outputer
	ObjectPatchCollector() pkg.Outputer
	ValuesPatchCollector(key utils.ValuesPatchType) pkg.Outputer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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