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, v *version.Version, ...) (string, error)
- func (c *Client) RunInitAndEnv(log *logging.SimpleLogger, path string, env string, extraInitArgs []string, ...) ([]string, error)
- func (c *Client) Version() *version.Version
- type Runner
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, v *version.Version, env string) (string, error)
RunCommandWithVersion executes the provided version of terraform with the provided args in path. The variable "v" is the version of terraform executable to use and the variable "env" is the environment specified by the user commenting "atlantis plan/apply {env}" which is set to "default" by default.
func (*Client) RunInitAndEnv ¶
func (c *Client) RunInitAndEnv(log *logging.SimpleLogger, path string, env string, extraInitArgs []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.
type Runner ¶
type Runner interface { Version() *version.Version RunCommandWithVersion(log *logging.SimpleLogger, path string, args []string, v *version.Version, env string) (string, error) RunInitAndEnv(log *logging.SimpleLogger, path string, env string, extraInitArgs []string, version *version.Version) ([]string, error) }
Click to show internal directories.
Click to hide internal directories.