tfinstall

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.2.2"

Version is the tfinstall package version, used in user agent headers

Variables

This section is empty.

Functions

func Find

func Find(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() (string, error)

type ExactVersionOption

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

func ExactVersion

func ExactVersion(tfVersion string, installDir string) *ExactVersionOption

func (*ExactVersionOption) ExecPath

func (opt *ExactVersionOption) ExecPath() (string, error)

type ExecPathFinder

type ExecPathFinder interface {
	ExecPath() (string, error)
}

type LatestVersionOption

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

func LatestVersion

func LatestVersion(installDir string, forceCheckpoint bool) *LatestVersionOption

func (*LatestVersionOption) ExecPath

func (opt *LatestVersionOption) ExecPath() (string, error)

type LookPathOption

type LookPathOption struct {
}

func LookPath

func LookPath() *LookPathOption

func (*LookPathOption) ExecPath

func (opt *LookPathOption) ExecPath() (string, error)

Jump to

Keyboard shortcuts

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