terraform

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

func NewCmd

func NewCmd(stderr io.Writer) Cmd

func (Cmd) Run

func (c Cmd) Run(stdout io.Writer, workingDirectory string, args []string, debug bool) error

type Executor

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

func NewExecutor

func NewExecutor(cmd terraformCmd, debug bool) Executor

func (Executor) Apply

func (e Executor) Apply(credentials, envID, projectID, zone, region, cert, key, domain, template, prevTFState string) (string, error)

func (Executor) Destroy

func (e Executor) Destroy(credentials, envID, projectID, zone, region, template, prevTFState string) (string, error)

func (Executor) Version

func (e Executor) Version() (string, error)

type OutputProvider

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

func NewOutputProvider

func NewOutputProvider(outputter outputter) OutputProvider

func (OutputProvider) Get

func (o OutputProvider) Get(tfState, lbType string, domainExists bool) (Outputs, error)

type Outputs

type Outputs struct {
	ExternalIP             string   `json:"-"`
	NetworkName            string   `json:"-"`
	SubnetworkName         string   `json:"-"`
	BOSHTag                string   `json:"-"`
	InternalTag            string   `json:"-"`
	DirectorAddress        string   `json:"-"`
	RouterBackendService   string   `json:"-"`
	SSHProxyTargetPool     string   `json:"-"`
	TCPRouterTargetPool    string   `json:"-"`
	WSTargetPool           string   `json:"-"`
	ConcourseTargetPool    string   `json:"-"`
	RouterLBIP             string   `json:"cf_router_lb,omitempty"`
	SSHProxyLBIP           string   `json:"cf_ssh_proxy_lb,omitempty"`
	TCPRouterLBIP          string   `json:"cf_tcp_router_lb,omitempty"`
	WebSocketLBIP          string   `json:"cf_websocket_lb,omitempty"`
	ConcourseLBIP          string   `json:"-"`
	SystemDomainDNSServers []string `json:"cf_system_domain_dns_servers,omitempty"`
}

type Outputter

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

func NewOutputter

func NewOutputter(cmd terraformCmd) Outputter

func (Outputter) Get

func (o Outputter) Get(tfState, outputName string) (string, error)

type TerraformApplyError

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

func NewTerraformApplyError

func NewTerraformApplyError(tfState string, err error) TerraformApplyError

func (TerraformApplyError) Error

func (t TerraformApplyError) Error() string

func (TerraformApplyError) TFState

func (t TerraformApplyError) TFState() string

Jump to

Keyboard shortcuts

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