Documentation ¶
Overview ¶
Package terraform handles the actual running of terraform commands
Index ¶
- type Client
- func (c *Client) RunCommandWithVersion(log *logging.SimpleLogger, path string, args []string, envVars []string, ...) (string, error)
- func (c *Client) RunInitAndEnv(log *logging.SimpleLogger, path string, env string, extraInitArgs []string, ...) ([]string, error)
- func (c *Client) Version() *version.Version
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
}
func (*Client) RunCommandWithVersion ¶
func (c *Client) RunCommandWithVersion(log *logging.SimpleLogger, path string, args []string, envVars []string, v *version.Version) (string, error)
RunCommandWithVersion executes the provided version of terraform with the provided args and envVars in path.
func (*Client) RunInitAndEnv ¶
func (c *Client) RunInitAndEnv(log *logging.SimpleLogger, path string, env string, extraInitArgs []string, envVars []string, version *version.Version) ([]string, error)
RunInitAndEnv executes "terraform init" and "terraform env select" in path. env is the environment to select and extraInitArgs are additional arguments applied to the init command.
Click to show internal directories.
Click to hide internal directories.