concourse

package
v0.0.0-...-627f4af Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider creates a new Concourse terraform provider instance.

Types

type Config

type Config interface {
	Concourse() concourse.Client
	Version() string
	WorkerVersion() string
	UserInfo() *skyserver.UserInfo
}

Config provides access to all the stuff that is necessary to properly operate upon the Concourse ATC.

func NewConfig

func NewConfig(url *url.URL, httpClient *http.Client, insecure bool, team string) (Config, error)

NewConfig creates a new configuration structure to be used provider-internally During initialization of the config structure, we will send 2 requests to the Concourse CI instance. First of all, we figure out the version of the ATC system and secondly, we fetch the user information from the sky marshal user-info endpoint.

Jump to

Keyboard shortcuts

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