parser

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownstreamConfig added in v0.0.2

type DownstreamConfig struct {
	Enabled bool
}

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) DecideDeploymentPlatform added in v0.0.3

func (f FlowParser) DecideDeploymentPlatform(cells []flows_api.Cell) (newCells []flows_api.Cell)

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"`
	UpstreamConfig   UpstreamConfig   `json:"upstream"`
	DownstreamConfig DownstreamConfig `json:"downstream"`
}

type Pipeline

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

type UpstreamConfig added in v0.0.2

type UpstreamConfig struct {
	Enabled bool
}

Jump to

Keyboard shortcuts

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