terraform

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2017 HootSuite Media Inc.

Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Modified hereafter by contributors to runatlantis/atlantis.

Package terraform handles the actual running of terraform commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustConstraint added in v0.2.2

func MustConstraint(v string) version.Constraints

MustConstraint will parse one or more constraints from the given constraint string. The string must be a comma-separated list of constraints. It panics if there is an error.

Types

type Client

type Client interface {
	Version() *version.Version
	RunCommandWithVersion(log *logging.SimpleLogger, path string, args []string, v *version.Version, workspace string) (string, error)
}

type DefaultClient added in v0.2.2

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

func NewClient

func NewClient(dataDir string) (*DefaultClient, error)

func (*DefaultClient) RunCommandWithVersion added in v0.2.2

func (c *DefaultClient) RunCommandWithVersion(log *logging.SimpleLogger, path string, args []string, v *version.Version, workspace string) (string, error)

RunCommandWithVersion executes the provided version of terraform with the provided args in path. v is the version of terraform executable to use. If v is nil, will use the default version. Workspace is the terraform workspace to run in. We won't switch workspaces but will set the TERRAFORM_WORKSPACE environment variable.

func (*DefaultClient) Version added in v0.2.2

func (c *DefaultClient) Version() *version.Version

Version returns the version of the terraform executable in our $PATH.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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