concourseclient

package
v0.0.0-...-aca1e04 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryBuildLimit = 20

	TargetNotFoundError  = cterror.Error("target is not found")
	BuildNotFoundError   = cterror.Error("build not found")
	NotEventLogTypeError = cterror.Error("not a log type event")
	NoAvailableJobsError = cterror.Error("no available jobs")
)

Variables

This section is empty.

Functions

func ConvertEventToEnvelope

func ConvertEventToEnvelope(e atc.Event) (event.Envelope, error)

func GetEventLog

func GetEventLog(envelope event.Envelope) (event.Log, error)

func GetPipelineURL

func GetPipelineURL(target, pipeline string) (string, error)

func NewConcourseClient

func NewConcourseClient(target rc.TargetName) (*oldCClient, error)

func TriggerJob

func TriggerJob(target, pipelineName, jobName string, watch bool) error

Types

type CTConcourseClient

type CTConcourseClient interface {
	LatestJobBuildIDOnStatus(team, pipeline, job, status string) (int, error)
	LatestJobBuild(team, pipeline, job string) (atc.Build, error)
	LatestJobBuilds(team, pipeline, job string, limit int) ([]atc.Build, error)
	ReadBuildLog(id string, writer io.Writer) error
}

type ConcourseClient

type ConcourseClient interface {
	CTConcourseClient
	rc.Target
}

ConcourseClient interface is a combination of original go-concourse Client and Control-Tower Concourse Client which implements other methods as a complementary interface

Jump to

Keyboard shortcuts

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