flows_api

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	Id             string        `json:"id,omitempty"`
	Name           string        `json:"name,omitempty"`
	DeploymentType string        `json:"deploymentType,omitempty"`
	InPorts        []string      `json:"inPorts,omitempty"`
	OutPorts       []string      `json:"outPorts,omitempty"`
	Type           string        `json:"type,omitempty"`
	Source         Port          `json:"source,omitempty"`
	Target         Port          `json:"target,omitempty"`
	Image          string        `json:"image,omitempty"`
	Config         []ConfigValue `json:"config,omitempty"`
	OperatorId     string        `json:"operatorId,omitempty"`
	Cost           uint          `json:"cost"`
}

type ConfigValue

type ConfigValue struct {
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

type Flow

type Flow struct {
	Id    string `json:"_id,omitempty"`
	Name  string `json:"name,omitempty"`
	Image string `json:"image,omitempty"`
	Model Model  `json:"model,omitempty"`
}

type FlowApi

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

func NewFlowApi

func NewFlowApi(url string) *FlowApi

func (FlowApi) GetFlowData

func (f FlowApi) GetFlowData(id string, userId string, authorization string) (flow Flow, err error)

type Model

type Model struct {
	Cells []Cell `json:"cells,omitempty"`
}

func (*Model) GetConnectorById

func (m *Model) GetConnectorById(id int)

func (*Model) GetEmptyNodeInputs

func (m *Model) GetEmptyNodeInputs() (unassignedNodes []Cell)

func (*Model) GetEmptyNodeInputsAndConfigValues

func (m *Model) GetEmptyNodeInputsAndConfigValues() (nodes []Cell)

func (*Model) GetNodeById

func (m *Model) GetNodeById(id int) (cell Cell)

func (*Model) GetNodeIdByConnectorId

func (m *Model) GetNodeIdByConnectorId(connectorId int) (id int)

type Port

type Port struct {
	Id   string `json:"id,omitempty"`
	Port string `json:"port,omitempty"`
}

Jump to

Keyboard shortcuts

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