parser

package
v0.0.0-...-d8aa1a2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerType = "1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseNode

type BaseNode struct {
	Name         string
	Dependencies []string
	Custom       string
}

func (*BaseNode) AppendDep

func (n *BaseNode) AppendDep(node string)

func (*BaseNode) GetCustom

func (n *BaseNode) GetCustom() string

func (*BaseNode) GetDependencies

func (n *BaseNode) GetDependencies() []string

func (*BaseNode) GetName

func (n *BaseNode) GetName() string

type DockerNode

type DockerNode struct {
	BaseNode
	Action string
	URL    string
}

func NewDockerNode

func NewDockerNode() *DockerNode

func (*DockerNode) Fillin

func (d *DockerNode) Fillin(element *etree.Element) error

type Node

type Node interface {
	// Obtain basic information about the node
	GetName() string
	GetDependencies() []string
	GetCustom() string
	AppendDep(string)

	// Each node parses its own information
	Fillin(*etree.Element) error
}

type NodeSet

type NodeSet map[string]Node

func Xml2Dag

func Xml2Dag(log logr.Logger, xmlstr string) (string, *NodeSet, error)

The entry function of the entire DAG building module, completes the initialization of the map, loading the etree package, building the DAG, and returning the workflow id

func (*NodeSet) Marshal

func (s *NodeSet) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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