runner

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MPL-2.0-no-copyleft-exception Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Run added in v0.2.7

type Run struct {
	// contains filtered or unexported fields
}

Run is a single run

func (*Run) AfterRun added in v0.2.7

func (r *Run) AfterRun() error

AfterRun does nothing in the null-runner.

func (*Run) BeforeRun added in v0.2.7

func (r *Run) BeforeRun() error

BeforeRun is executed before the next run is started.

func (*Run) Name added in v0.2.7

func (r *Run) Name() string

Name is the name of the run

func (*Run) Run added in v0.2.7

func (r *Run) Run() (bool, error)

Run runs the CI job.

func (*Run) RunContext added in v0.2.7

func (r *Run) RunContext() *fwcontext.RunContext

RunContext returns the context for this run

func (*Run) String added in v0.2.7

func (r *Run) String() string

type Runner

type Runner struct {
	sync.Mutex
	Config    *config.Config
	NextState bool
}

Runner encapsulates an infinite lifecycle overlay-runner.

func (*Runner) AfterRun added in v0.2.7

func (r *Runner) AfterRun(string, *fwcontext.RunContext)

AfterRun does nothing in this runner.

func (*Runner) Hostname

func (r *Runner) Hostname() string

Hostname is the reported hostname of the machine; an identifier. Not necessary for anything and insecure, just ornamental.

func (*Runner) Init

func (r *Runner) Init(ctx *fwcontext.Context) error

Init is the bootstrap of the runner.

func (*Runner) LogsvcClient

func (r *Runner) LogsvcClient(ctx *fwcontext.RunContext) *log.SubLogger

LogsvcClient returns the system log client. Must be called after configuration is initialized

func (*Runner) MakeRun added in v0.2.7

func (r *Runner) MakeRun(name string, runCtx *fwcontext.RunContext) (fw.Run, error)

MakeRun makes a new run for the framework to use.

func (*Runner) QueueClient

func (r *Runner) QueueClient() *queue.Client

QueueClient returns the queue client

func (*Runner) QueueName

func (r *Runner) QueueName() string

QueueName is the name of the queue this runner should be processing.

func (*Runner) Ready added in v0.2.7

func (r *Runner) Ready() bool

Ready indicates the null runner is ready

Jump to

Keyboard shortcuts

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