builder

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBundlerPlugins added in v0.1.6

func WithBundlerPlugins(ctx context.Context, plugins []api.Plugin) context.Context

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 WorkflowBundler

type WorkflowBundler interface {
	Bundle(ctx context.Context) 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"`
}

Jump to

Keyboard shortcuts

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