slave

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	SQS   sqsiface.SQSAPI
	Store store.Store
	Queue queue.Queue
	Kind  string
}

Opts contains options used for running a Slave

type Slave

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

Slave runs one or more builds received over its queue

func New

func New(opts Opts) *Slave

New returns a build slave

func (*Slave) Process

func (s *Slave) Process(ctx context.Context, msg *project.Message) (string, error)

Process a request to run a rule

func (*Slave) Run

func (s *Slave) Run(ctx context.Context, done <-chan bool) error

Run the slave and process any received messages

Jump to

Keyboard shortcuts

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