pipeline

package
v0.0.0-...-03bec22 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.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 Expression

type Expression struct {
	Script string
}

Expression - Describes a expression which evaluates to a bool

func (*Expression) Evaluate

func (e *Expression) Evaluate(variables map[string]interface{}) (string, error)

Evaluate - Evaluates the expression to a bool

type Pipeline

type Pipeline struct {
	Name       string   `json:"name" bson:"name"`
	Parameters []string `json:"parameters" bson:"parameters"`
	Stages     []Stage  `json:"stages" bson:"stages"`
}

Pipeline -

func CreateFromBytes

func CreateFromBytes(data string) (*Pipeline, error)

CreateFromBytes - loads a new pipeline instance from a byte array

type Stage

type Stage struct {
	Name  string `json:"name" bson:"name"`
	Tasks []Task `json:"tasks" bson:"tasks"`
}

Stage -

type Task

type Task struct {
	Name         string                 `json:"name" bson:"name"`
	Service      string                 `json:"service" bson:"service"`
	Parameters   map[string]interface{} `json:"input" bson:"input"`
	IgnoreErrors bool                   `json:"ignore_errors" bson:"ignore_errors"`
	Register     string                 `json:"register" bson:"register"`
	Notify       []string               `json:"notify" bson:"notify"` // NotifyRef
	When         Expression             `json:"when" bson:"when"`
}

Task -

type Variable

type Variable struct {
	Name  string `json:"name" bson:"name"`
	Value string `json:"value" bson:"value"`
}

Variable -

Jump to

Keyboard shortcuts

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