screwdriver

package
v1.0.28 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2016 License: BSD-3-Clause Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	BuildFromID(buildID string) (Build, error)
	JobFromID(jobID string) (Job, error)
	PipelineFromID(pipelineID string) (Pipeline, error)
	UpdateBuildStatus(status string) error
	PipelineDefFromYaml(yaml io.Reader) (PipelineDef, error)
}

API is a Screwdriver API endpoint

func New

func New(url, token string) (API, error)

New returns a new API object

type Build

type Build struct {
	ID    string `json:"id"`
	JobID string `json:"jobId"`
}

Build is a Screwdriver Build

type BuildStatus added in v1.0.23

type BuildStatus struct {
	Status string `json:"status"`
}

BuildStatus is a Screwdriver Build Status payload.

type CommandDef added in v1.0.26

type CommandDef struct {
	Name string `json:"name"`
	Cmd  string `json:"command"`
}

CommandDef is the definition of a single executable command.

type Job added in v1.0.6

type Job struct {
	ID         string `json:"id"`
	PipelineID string `json:"pipelineId"`
	Name       string `json:"name"`
}

Job is a Screwdriver Job.

type JobDef added in v1.0.21

type JobDef struct {
	Image       string            `json:"image"`
	Commands    []CommandDef      `json:"commands"`
	Environment map[string]string `json:"environment"`
}

JobDef contains the step and environment definitions of a single Job.

type Pipeline added in v1.0.7

type Pipeline struct {
	ID     string `json:"id"`
	ScmURL string `json:"scmUrl"`
}

Pipeline is a Screwdriver Pipeline definition.

type PipelineDef added in v1.0.21

type PipelineDef struct {
	Jobs     map[string][]JobDef `json:"jobs"`
	Workflow []string            `json:"workflow"`
}

PipelineDef contains the step definitions and jobs for a Pipeline.

type SDError added in v1.0.15

type SDError struct {
	StatusCode int    `json:"statusCode"`
	Reason     string `json:"error"`
	Message    string `json:"message"`
}

SDError is an error response from the Screwdriver API

func (SDError) Error added in v1.0.15

func (e SDError) Error() string

type Validator added in v1.0.21

type Validator struct {
	Yaml string `json:"yaml"`
}

Validator is a Screwdriver Validator payload.

Jump to

Keyboard shortcuts

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