concourse

package
v0.0.0-...-96bdf66 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a concrete implementation of IClient interface

func NewClient

func NewClient(
	iaasClient iaas.IClient,
	terraformClientFactory terraform.ClientFactory,
	boshClientFactory bosh.ClientFactory,
	flyClientFactory func(fly.Credentials, io.Writer, io.Writer) (fly.IClient, error),
	certGenerator func(caName string, ip ...string) (*certs.Certs, error),
	configClient config.IClient,
	deployArgs *config.DeployArgs,
	stdout, stderr io.Writer) *Client

NewClient returns a new Client

func (*Client) Deploy

func (client *Client) Deploy() error

Deploy deploys a concourse instance

func (*Client) Destroy

func (client *Client) Destroy() error

Destroy destroys a concourse instance

func (*Client) FetchInfo

func (client *Client) FetchInfo() (*Info, error)

FetchInfo fetches and builds the info

type IClient

type IClient interface {
	Deploy() error
	Destroy() error
	FetchInfo() (*Info, error)
}

IClient represents a concourse-up client

type Info

type Info struct {
	Terraform *terraform.Metadata `json:"terraform"`
	Config    *config.Config      `json:"config"`
	Instances []bosh.Instance     `json:"instances"`
}

Info represents the terraform output and concourse-up config files

func (*Info) String

func (info *Info) String() string

Jump to

Keyboard shortcuts

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