step

package
v0.0.0-...-a7f85cb Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusKey = "step_status"
)

Variables

This section is empty.

Functions

func Run

func Run(step Step)

Run runs a step and sets the exit code to either `exec.ExitCodeFailure` on error or to `exec.ExitCodeOK` on success

Types

type Output

type Output map[string]interface{}

type Outputs

type Outputs struct {
	Object interface{} `json:"api_object,omitempty"`
}

type Status

type Status = status.Status

type Step

type Step interface {
	Init() Status
	Run() (Output, Status)
}

An interface describing a general purpose stackpulse step

Jump to

Keyboard shortcuts

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