terraform

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Message

func Message(message string, quiet bool)

Message : Quiet mode

Types

type Path added in v0.1.6

type Path string
const (
	PathTerraform      Path = "https://releases.hashicorp.com/terraform/%s/terraform_%s_%s_%s.zip"
	PathTerraformIndex Path = "https://releases.hashicorp.com/terraform/"
	PathBin            Path = "/.tfversion/bin/"
	PathTmp            Path = "/.tfversion/tmp/"
)

type Release

type Release struct {
	Home         string
	Version      string
	HTTPclient   *http.Client
	HTTPResponse *http.Response
}

Release struct : information switch release

func NewRelease added in v0.1.6

func NewRelease() *Release

NewRelease Client

func (*Release) CreateFolder added in v0.1.6

func (r *Release) CreateFolder(folder string) error

CreateFolder on disk

func (*Release) InitFolder

func (r *Release) InitFolder() error

InitFolder : Create folders (init)

func (*Release) ListOnline

func (r *Release) ListOnline() error

ListOnline : List online version

func (*Release) Regex

func (r *Release) Regex() bool

Regex version submited

func (*Release) Run added in v0.1.6

func (r *Release) Run(args []string, quiet bool) error

func (*Release) UnInstall

func (r *Release) UnInstall(quiet bool) error

UnInstall Terraform version

func (*Release) UnInstallAll

func (r *Release) UnInstallAll(quiet bool) error

UnInstallAll Terraform versions

Jump to

Keyboard shortcuts

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