actions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionRunner

type ActionRunner interface {
	RunAction(ctx context.Context, dryrun bool, action string) error
}

ActionRunner to run an action

type EventGrapher

type EventGrapher interface {
	GraphEvent(eventName string) ([][]string, error)
}

EventGrapher to list the actions

type EventLister

type EventLister interface {
	ListEvents() []string
}

EventLister to list the events

type EventRunner

type EventRunner interface {
	RunEvent(ctx context.Context, dryrun bool, event string) error
}

EventRunner to run an event

type Workflows

type Workflows interface {
	EventGrapher
	EventLister
	ActionRunner
	EventRunner
	Close()
}

Workflows provides capabilities to work with the workflow file

func ParseWorkflows

func ParseWorkflows(workingDir string, workflowPath string) (Workflows, error)

ParseWorkflows will read in the set of actions from the workflow file

Jump to

Keyboard shortcuts

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