engine

package
v0.0.0-...-2af5034 Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_QUEUED      = "queued"
	STATUS_IN_PROGRESS = "in_progress"
	STATUS_FINISHED    = "finished"

	RESULT_PASSED  Result = "passed"
	RESULT_FAILED  Result = "failed"
	RESULT_ABORTED Result = "aborted"
	// Test results unreliable or unavailable due to infrastructure
	// issues.
	RESULT_INFRA_FAILED Result = "infra_failed"

	SNAPSHOT_ACTIVE = "active"
	SNAPSHOT_FAILED = "failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func (*Engine) Run

func (e *Engine) Run() (Result, error)

type HeartbeatResponse

type HeartbeatResponse struct {
	Finished bool
	Aborted  bool
}

type JobStep

type JobStep struct {
	Status struct {
		ID string
	}
	Result struct {
		ID string
	}
}

type Result

type Result string

func RunBuildPlan

func RunBuildPlan(config *client.Config, infraLog *filelog.FileLog) (Result, error)

func (Result) IsFailure

func (r Result) IsFailure() bool

Convenience method to check for all types of failure.

func (Result) String

func (r Result) String() string

type UpstreamMonitor

type UpstreamMonitor struct {
	Config *client.Config
}

func (*UpstreamMonitor) WaitUntilAbort

func (um *UpstreamMonitor) WaitUntilAbort() error

Jump to

Keyboard shortcuts

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