Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionRunner ¶
ActionRunner to run a specific actions
type EventGrapher ¶
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
type Runner interface {
EventGrapher
EventLister
EventRunner
ActionRunner
io.Closer
}
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
Click to show internal directories.
Click to hide internal directories.