operator

package
v0.18.0-beta Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store holds in-memory information about the initialized operators.

func Init

func Init(logger *zap.Logger) *Store

Init initializes the different operator components and loads their information to memory.

func (*Store) CreateExecution

func (os *Store) CreateExecution(defUID uuid.UUID, sysVars map[string]any, task string) (*base.ExecutionWrapper, error)

CreateExecution initializes the execution of a operator given its UID.

func (*Store) GetOperatorDefinitionByID

func (os *Store) GetOperatorDefinitionByID(defID string, sysVars map[string]any, component *pipelinePB.OperatorComponent) (*pipelinePB.OperatorDefinition, error)

GetOperatorDefinitionByID returns a operator definition by its ID.

func (*Store) GetOperatorDefinitionByUID

func (os *Store) GetOperatorDefinitionByUID(defUID uuid.UUID, sysVars map[string]any, component *pipelinePB.OperatorComponent) (*pipelinePB.OperatorDefinition, error)

GetOperatorDefinitionByUID returns a operator definition by its UID.

func (*Store) Import

func (os *Store) Import(op base.IOperator)

Import loads the operator definitions into memory.

func (*Store) ListOperatorDefinitions

func (os *Store) ListOperatorDefinitions(sysVars map[string]any, returnTombstone bool) []*pipelinePB.OperatorDefinition

ListOperatorDefinitions returns all the loaded operator definitions.

Directories

Path Synopsis
base64
v0
end
v0
image
v0
json
v0
start
v0
text
v0

Jump to

Keyboard shortcuts

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