install

package
v0.0.0-...-bd7b10a Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

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

func Register

func Register(mux *mux.Router, log zerolog.Logger, tfpath 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, osName, archName 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, osName, osArch string, forceCheckpoint bool) *LatestVersionOption

func (*LatestVersionOption) ExecPath

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

Jump to

Keyboard shortcuts

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