Documentation
¶
Index ¶
- Constants
- func RegisterRuntime(name string, factory func() Runner)
- type BindingSettings
- type ExecutionMetadata
- type ExecutionResult
- type IntrospectedExport
- type IntrospectionOptions
- type IntrospectionResult
- type LogLevel
- type Logger
- type Runner
- type RuntimeContext
- type RuntimeLimits
- type SourceContentType
- type SourceDescriptor
- type StartOptions
- type WorkflowDescriptor
Constants ¶
View Source
const ( Source_ContentType_Text SourceContentType = iota Source_ContentType_Binary = iota LogLevelInfo LogLevel = iota LogLevelDebug LogLevelWarning LogLevelError LogLevelSilent )
Variables ¶
This section is empty.
Functions ¶
func RegisterRuntime ¶
not thread safe, should be called as part of init
Types ¶
type BindingSettings ¶
type BindingSettings struct {
Settings map[string]interface{} `json:"settings"`
}
func (BindingSettings) MarshalJSON ¶
func (settings BindingSettings) MarshalJSON() ([]byte, error)
func (*BindingSettings) UnmarshalJSON ¶
func (settings *BindingSettings) UnmarshalJSON(data []byte) error
type ExecutionMetadata ¶
type ExecutionResult ¶
type ExecutionResult interface { ExecutionMetadata() ExecutionMetadata GetExitResult() interface{} GetContext() RuntimeContext }
type IntrospectedExport ¶
type IntrospectedExport interface { HasExport() bool Value() interface{} ValueAsMap() map[string]interface{} BindingsFrom(exportName string) map[string]BindingSettings }
type IntrospectionOptions ¶
type IntrospectionResult ¶
type IntrospectionResult interface {
GetExport(string) IntrospectedExport
}
type Runner ¶
type Runner interface { // Execute the workflow Execute(ctx context.Context, workflow WorkflowDescriptor, startOptions StartOptions) (ExecutionResult, error) // Introspect the workflow for exports without executing it Introspect(ctx context.Context, workflow WorkflowDescriptor, options IntrospectionOptions) (IntrospectionResult, error) }
func ResolveRuntime ¶
Resolves runtime from available registrations
type RuntimeContext ¶
type RuntimeLimits ¶
type SourceContentType ¶
type SourceContentType int
type SourceDescriptor ¶
type SourceDescriptor struct { Source []byte `json:"source"` SourceType SourceContentType `json:"source_type"` BuildHash string `json:"build_hash"` }
type StartOptions ¶
type WorkflowDescriptor ¶
type WorkflowDescriptor struct { ProcessedSource SourceDescriptor `json:"processed_source"` RequestedBindings map[string]BindingSettings `json:"bindings"` Limits RuntimeLimits `json:"runtime_limits"` }
func (*WorkflowDescriptor) GetHash ¶
func (wd *WorkflowDescriptor) GetHash() string
Returns a hash of the workflow descriptor
Click to show internal directories.
Click to hide internal directories.