parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowParser

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

func NewFlowParser

func NewFlowParser(flowApi lib.FlowApiService) *FlowParser

func (FlowParser) CreatePipelineList

func (f FlowParser) CreatePipelineList(flow flows_api.Flow) Pipeline

func (FlowParser) GetInputsAndConfig

func (f FlowParser) GetInputsAndConfig(id string, userId string, authorization string) ([]flows_api.Cell, error)

func (FlowParser) ParseFlow

func (f FlowParser) ParseFlow(id string, userId string, authorization string) (pipeline Pipeline, err error)

type InputTopic

type InputTopic struct {
	TopicName   string
	FilterType  string
	FilterValue string
	Mappings    []Mapping
}

type Mapping

type Mapping struct {
	Source string
	Dest   string
}

type Operator

type Operator struct {
	Id             string `json:"id,omitempty"`
	Name           string `json:"name,omitempty"`
	OperatorId     string `json:"operatorId,omitempty"`
	DeploymentType string `json:"deploymentType,omitempty"`
	ImageId        string
	InputTopics    []InputTopic
	Cost           uint `json:"cost"`
}

type Pipeline

type Pipeline struct {
	FlowId    string              `json:"flowId,omitempty"`
	Image     string              `json:"image,omitempty"`
	Operators map[string]Operator `json:"operators,omitempty"`
}

Jump to

Keyboard shortcuts

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