fns

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInputFn

func NewInputFn(cfg *Config) fn.BlockInstanceRunner

provide and input runner, which runs per input instance

func NewLocalOrOutputFn

func NewLocalOrOutputFn(cfg *Config) fn.BlockInstanceRunner

func NewPackageFn

func NewPackageFn(cfg *Config) fn.BlockInstanceRunner

func NewResourceFn

func NewResourceFn(cfg *Config) fn.BlockInstanceRunner

func NewRootFn

func NewRootFn(cfg *Config) fn.BlockInstanceRunner

Types

type Config

type Config struct {
	Provider    bool // inidcates if this is a provider or a regular dag run
	PackageName string
	BlockName   string

	RootPackageName string
	DataStore       *data.DataStore
	Recorder        recorder.Recorder[diag.Diagnostic]
	// used for the provider DAG run + resources run to find the provider client
	ProviderInstances store.Storer[plugin.Provider]
	// used for the provider DAG run only
	ProviderInventory store.Storer[types.Provider]
}

type ExecHandler

type ExecHandler struct {
	RootPackageName string
	PackageName     string
	BlockName       string
	DataStore       *data.DataStore
	Recorder        recorder.Recorder[diag.Diagnostic]
	// contains filtered or unexported fields
}

func NewExecHandler

func NewExecHandler(ctx context.Context, cfg *Config) *ExecHandler

func (*ExecHandler) BlockRun

func (r *ExecHandler) BlockRun(ctx context.Context, vertexName string, vctx *types.VertexContext) bool

func (*ExecHandler) PostRun

func (r *ExecHandler) PostRun(ctx context.Context, start, stop time.Time, success bool)

PostRun records the overall result of the package execHandler

type Initializer

type Initializer func(*Config) fn.BlockInstanceRunner

type Map

type Map interface {
	fn.BlockInstanceRunner
}

func NewMap

func NewMap(ctx context.Context, cfg *Config) Map

Jump to

Keyboard shortcuts

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