action

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name         string
	Author       string
	Description  string
	Inputs       Inputs
	InputsOrder  []string
	Outputs      Outputs
	OutputsOrder []string
}

func New

func New(
	name string,
	author string,
	description string,
	inputs Inputs,
	inputsOrder []string,
	outputs Outputs,
	outputsOrder []string,
) *Action

func (*Action) GetInputsMatrix

func (a *Action) GetInputsMatrix() [][]string

func (*Action) GetOutputsMatrix

func (a *Action) GetOutputsMatrix() [][]string

type ActionNodes

type ActionNodes struct {
	Inputs  yaml.Node `yaml:"inputs,omitempty"`
	Outputs yaml.Node `yaml:"outputs,omitempty"`
}

type Input

type Input struct {
	Description string
	Required    bool
	Default     string
}

type Inputs

type Inputs = map[string]Input

type Output

type Output struct {
	Description string
}

type Outputs

type Outputs = map[string]Output

type Parser

type Parser struct {
}

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (a *Parser) Parse(path string) (Action, error)

Jump to

Keyboard shortcuts

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