core

package
v0.0.0-...-abf2cf9 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 0 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
	Doc         string
	DefaultConf interface{}
	Run         ActionRunFunc
}

type ActionRunFunc

type ActionRunFunc func(conf interface{}) (interface{}, error)

type Step

type Step struct {
	Name   string            `yaml:"name" validate:"required"`
	Doc    string            `yaml:"doc" validate:"require"`
	Action string            `yaml:"action" validate:"required"`
	Conf   map[string]string `yaml:"conf" validate:"required"`
	Output string            `yaml:"output" validate:"required"`
}

type Workflow

type Workflow struct {
	Name    string `yaml:"name" validate:"required"`
	Version string `yaml:"version" validate:"omitempty"`
	Doc     string `yaml:"doc" validate:"required"`
	Steps   []Step `yaml:"steps" validate:"required,dive"`
}

Jump to

Keyboard shortcuts

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