runnercommunicator

package
v0.0.0-...-9b56d49 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerHTTPApiV1

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

RunnerHTTPApiV1 satisfies the controller.RunnerCommunicator interface using an HTTP server.

func NewRunnerHTTPApiV1

NewRunnerHTTPApiV1 returns a new RunnerHTTPApiV1.

func (*RunnerHTTPApiV1) CompletedJobs

func (r *RunnerHTTPApiV1) CompletedJobs() (j []controller.CompletedJob)

CompletedJobs returns any completed jobs as told by the Runners.

func (*RunnerHTTPApiV1) NeedNewJob

func (r *RunnerHTTPApiV1) NeedNewJob() bool

NeedNewJob returns a boolean indicating whether or not there are waiting runners.

func (*RunnerHTTPApiV1) NewJob

func (r *RunnerHTTPApiV1) NewJob(cJob controller.Job)

NewJob sends a new job to the next running in the queue.

func (*RunnerHTTPApiV1) NullifyUUIDs

func (r *RunnerHTTPApiV1) NullifyUUIDs(uuids []controller.UUID)

NullifyUUIDs marks a job uuid as null.

func (*RunnerHTTPApiV1) Start

func (r *RunnerHTTPApiV1) Start(ctx *context.Context, wg *sync.WaitGroup)

Start starts the HTTP server. It does not block the thread.

func (*RunnerHTTPApiV1) WaitingRunners

func (r *RunnerHTTPApiV1) WaitingRunners() (runnerNames []string)

WaitingRunners returns a list of Runner names which are waiting for jobs.

Jump to

Keyboard shortcuts

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