Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BundledContent ¶
type BundledContent[TSettings any] struct { Source []byte `json:"source"` BundleHash string `json:"hash"` Settings WorkflowSettings[TSettings] `json:"settings"` BundlingOptions BundlerOptions[TSettings] `json:"bundling_options"` }
type BundlerOptions ¶
type BundlerResult ¶
type BundlerResult[TSettings any] struct { Content BundledContent[TSettings] `json:"bundle"` Errors []string `json:"errors"` CompilationErrors []interface{} `json:"compilation_errors"` Warnings []string `json:"warnings"` DefaultExports []string `json:"default_exports"` }
type WorkflowBundler ¶
type WorkflowBundler[TSettings any] interface { Bundle(ctx context.Context) BundlerResult[TSettings] }
func NewWorkflowBundler ¶
func NewWorkflowBundler[TSettings any](options BundlerOptions[TSettings]) WorkflowBundler[TSettings]
type WorkflowSettings ¶
type WorkflowSettings[TSettings any] struct { Bindings map[string]runtimesRegistry.BindingSettings `json:"bindings"` Other TSettings `json:"other"` }
func (*WorkflowSettings[TSettings]) UnmarshalJSON ¶ added in v0.1.8
func (settings *WorkflowSettings[TSettings]) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.