builder

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: LGPL-2.1 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundledContent

type BundledContent struct {
	Source     []byte           `json:"source"`
	BundleHash string           `json:"hash"`
	Settings   WorkflowSettings `json:"settings"`
}

type BundlerOptions

type BundlerOptions struct {
	WorkingFolder       string
	EntryPoints         []string
	IntrospectionExport string
}

type BundlerResult

type BundlerResult struct {
	Content           BundledContent `json:"bundle"`
	Errors            []string       `json:"errors"`
	CompilationErrors []interface{}  `json:"compilation_errors"`
}

func (*BundlerResult) HasOutput

func (br *BundlerResult) HasOutput() bool

type PolicyAction added in v0.1.2

type PolicyAction string
const (
	PolicyActionStop     PolicyAction = "stop"
	PolicyActionContinue PolicyAction = "continue"
)

func (PolicyAction) IsValid added in v0.1.2

func (a PolicyAction) IsValid() bool

type ResultPolicy added in v0.1.2

type ResultPolicy struct {
	Action PolicyAction `json:"action"`
}

type WorkflowBundler

type WorkflowBundler interface {
	Bundle() BundlerResult
}

func NewWorkflowBundler

func NewWorkflowBundler(options BundlerOptions) WorkflowBundler

type WorkflowSettings

type WorkflowSettings struct {
	ID            string                                      `json:"id"`
	Other         map[string]interface{}                      `json:"other"`
	Bindings      map[string]runtimesRegistry.BindingSettings `json:"bindings"`
	FailurePolicy ResultPolicy                                `json:"failure_policy"`
}

Jump to

Keyboard shortcuts

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