terraform

package
v3.0.2+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BOSHDirectorTemplate = `` /* 1576-byte string literal not displayed */
View Source
const CFDNSTemplate = `` /* 2746-byte string literal not displayed */
View Source
const CFLBTemplate = `` /* 6326-byte string literal not displayed */
View Source
const ConcourseLBTemplate = `` /* 1237-byte string literal not displayed */
View Source
const VarsTemplate = `` /* 333-byte string literal not displayed */

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) Output

func (e Executor) Output(tfState, outputName string) (string, error)

func (Executor) Version

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

type ExecutorApplyError

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

func NewExecutorApplyError

func NewExecutorApplyError(tfState string, err error) ExecutorApplyError

func (ExecutorApplyError) Error

func (t ExecutorApplyError) Error() string

func (ExecutorApplyError) TFState

func (t ExecutorApplyError) TFState() string

type ExecutorDestroyError

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

func NewExecutorDestroyError

func NewExecutorDestroyError(tfState string, internalError error) ExecutorDestroyError

func (ExecutorDestroyError) Error

func (e ExecutorDestroyError) Error() string

func (ExecutorDestroyError) TFState

func (e ExecutorDestroyError) TFState() string

type Manager

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

func NewManager

func NewManager(executor executor, templateGenerator templateGenerator, logger logger) Manager

func (Manager) Apply

func (m Manager) Apply(bblState storage.State) (storage.State, error)

func (Manager) Destroy

func (m Manager) Destroy(bblState storage.State) (storage.State, error)

func (Manager) GetOutputs

func (m Manager) GetOutputs(tfState, lbType string, domainExists bool) (Outputs, error)

func (Manager) ValidateVersion

func (m Manager) ValidateVersion() error

func (Manager) Version

func (m Manager) Version() (string, error)

type ManagerApplyError

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

func NewManagerApplyError

func NewManagerApplyError(bblState storage.State, executorApplyError executorApplyError) ManagerApplyError

func (ManagerApplyError) BBLState

func (m ManagerApplyError) BBLState() storage.State

func (ManagerApplyError) Error

func (m ManagerApplyError) Error() string

type ManagerDestroyError

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

func NewManagerDestroyError

func NewManagerDestroyError(bblState storage.State, executorDestroyError executorDestroyError) ManagerDestroyError

func (ManagerDestroyError) BBLState

func (m ManagerDestroyError) BBLState() storage.State

func (ManagerDestroyError) Error

func (m ManagerDestroyError) Error() string

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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