statemachine

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MaxAgentNameLength = 28
View Source
const MaxPipelineSlugLength = 32

MaxPipelineSlugLength Maximum characters to take from the pipeline slug value before it is truncated

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	RunningForAgent(agentName string) (int, error)
	StartExecution(agentName string, job *api.Job, jsonData []byte) error
}

Executor run background jobs to track a build job

type SFNExecutor

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

SFNExecutor run jobs in step functions

func NewSFNExecutor

func NewSFNExecutor(cfg *config.Config, sess *session.Session) *SFNExecutor

NewSFNExecutor create a new step function executor

func (*SFNExecutor) RunningForAgent

func (sfne *SFNExecutor) RunningForAgent(agentName string) (int, error)

RunningForAgent can we run anymore jobs for a given agent with a max of 1 concurrent job per agent

func (*SFNExecutor) StartExecution

func (sfne *SFNExecutor) StartExecution(agentName string, job *api.Job, jsonData []byte) error

StartExecution start a step function execution

Jump to

Keyboard shortcuts

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