api

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewGCClientFunc func(url string, teamName string, httpClient *http.Client) ConcourseClient = DefaultNewGCClientFunc

Enables mocking out of the go-concourse client during tests.

Functions

func OAuthHTTPClient added in v0.7.0

func OAuthHTTPClient(token TargetToken, insecure bool) *http.Client

Types

type Client

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

func NewClient

func NewClient(url string, teamClients map[string]*http.Client) *Client

func (Client) DeletePipeline added in v0.5.0

func (c Client) DeletePipeline(teamName string, pipelineName string) error

func (Client) PipelineConfig added in v0.5.0

func (c Client) PipelineConfig(teamName string, pipelineName string) (atc.Config, string, string, error)

func (Client) Pipelines

func (c Client) Pipelines(teamName string) ([]Pipeline, error)

func (Client) SetPipelineConfig added in v0.5.0

func (c Client) SetPipelineConfig(
	teamName string,
	pipelineName string,
	configVersion string,
	passedConfig atc.Config,
) error

type ConcourseClient added in v0.7.0

type ConcourseClient interface {
	DeletePipeline(pipelineName string) (bool, error)
	ListPipelines() ([]atc.Pipeline, error)
	PipelineConfig(pipelineName string) (atc.Config, atc.RawConfig, string, bool, error)
	CreateOrUpdatePipelineConfig(pipelineName string, configVersion string, passedConfig atc.Config) (bool, bool, []gc.ConfigWarning, error)
}

func DefaultNewGCClientFunc added in v0.7.0

func DefaultNewGCClientFunc(url string, teamName string, httpClient *http.Client) ConcourseClient

type Pipeline

type Pipeline struct {
	Name     string `json:"name"`
	URL      string `json:"url"`
	TeamName string `json:"team_name"`
}

type TargetToken added in v0.7.0

type TargetToken struct {
	Type  string
	Value string
}

func LoginWithBasicAuth added in v0.7.0

func LoginWithBasicAuth(
	url string,
	teamName string,
	username string,
	password string,
	insecure bool,
) (TargetToken, error)

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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