tfinstall

package
v0.14.1-0...-61dac8c Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package tfinstall offers multiple strategies for finding and/or installing a binary version of Terraform. Some of the strategies can also authenticate the source of the binary as an official HashiCorp release.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(ctx context.Context, opts ...ExecPathFinder) (string, error)

Types

type ExactPathOption

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

func ExactPath

func ExactPath(execPath string) *ExactPathOption

func (*ExactPathOption) ExecPath

func (opt *ExactPathOption) ExecPath(context.Context) (string, error)

type ExactVersionOption

type ExactVersionOption struct {
	UserAgent string
	// contains filtered or unexported fields
}

func ExactVersion

func ExactVersion(tfVersion string, installDir string) *ExactVersionOption

func (*ExactVersionOption) ExecPath

func (opt *ExactVersionOption) ExecPath(ctx context.Context) (string, error)

type ExecPathFinder

type ExecPathFinder interface {
	ExecPath(context.Context) (string, error)
}

type LatestVersionOption

type LatestVersionOption struct {
	UserAgent string
	// contains filtered or unexported fields
}

func LatestVersion

func LatestVersion(installDir string, forceCheckpoint bool) *LatestVersionOption

func (*LatestVersionOption) ExecPath

func (opt *LatestVersionOption) ExecPath(ctx context.Context) (string, error)

type LookPathOption

type LookPathOption struct {
}

func LookPath

func LookPath() *LookPathOption

func (*LookPathOption) ExecPath

func (opt *LookPathOption) ExecPath(context.Context) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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