Documentation ¶
Index ¶
- Variables
- func OAuthHTTPClient(token TargetToken, insecure bool) *http.Client
- type Client
- func (c Client) DeletePipeline(teamName string, pipelineName string) error
- func (c Client) PipelineConfig(teamName string, pipelineName string) (atc.Config, string, string, error)
- func (c Client) Pipelines(teamName string) ([]Pipeline, error)
- func (c Client) SetPipelineConfig(teamName string, pipelineName string, configVersion string, ...) error
- type ConcourseClient
- type Pipeline
- type TargetToken
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 (Client) DeletePipeline ¶ added in v0.5.0
func (Client) PipelineConfig ¶ added in v0.5.0
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 TargetToken ¶ added in v0.7.0
func LoginWithBasicAuth ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.