actions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: MIT Imports: 19 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 {
	RunActions(actionNames ...string) error
}

ActionRunner to run a specific actions

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() error
}

EventRunner to run the actions for a given event

type Runner added in v0.0.5

Runner provides capabilities to run GitHub actions

func NewRunner added in v0.0.5

func NewRunner(runnerConfig *RunnerConfig) (Runner, error)

NewRunner Creates a new Runner

type RunnerConfig added in v0.0.5

type RunnerConfig struct {
	Ctx             context.Context // context to use for the run
	Dryrun          bool            // don't start any of the containers
	WorkingDir      string          // base directory to use
	WorkflowPath    string          // path to load main.workflow file, relative to WorkingDir
	EventName       string          // name of event to run
	EventPath       string          // path to JSON file to use for event.json in containers, relative to WorkingDir
	ReuseContainers bool            // reuse containers to maintain state
}

RunnerConfig contains the config for a new runner

Jump to

Keyboard shortcuts

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