terraform

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distribution added in v0.30.0

type Distribution interface {
	BinName() string
	Downloader() Downloader
	// ResolveConstraint gets the latest version for the given constraint
	ResolveConstraint(context.Context, string) (*version.Version, error)
}

func NewDistribution added in v0.33.0

func NewDistribution(distribution string) Distribution

func NewDistributionOpenTofu added in v0.30.0

func NewDistributionOpenTofu() Distribution

func NewDistributionOpenTofuWithDownloader added in v0.30.0

func NewDistributionOpenTofuWithDownloader(downloader Downloader) Distribution

func NewDistributionTerraform added in v0.30.0

func NewDistributionTerraform() Distribution

func NewDistributionTerraformWithDownloader added in v0.30.0

func NewDistributionTerraformWithDownloader(downloader Downloader) Distribution

type DistributionOpenTofu added in v0.30.0

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

func (*DistributionOpenTofu) BinName added in v0.30.0

func (*DistributionOpenTofu) BinName() string

func (*DistributionOpenTofu) Downloader added in v0.30.0

func (d *DistributionOpenTofu) Downloader() Downloader

func (*DistributionOpenTofu) ResolveConstraint added in v0.30.0

func (*DistributionOpenTofu) ResolveConstraint(ctx context.Context, constraintStr string) (*version.Version, error)

type DistributionTerraform added in v0.30.0

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

func (*DistributionTerraform) BinName added in v0.30.0

func (*DistributionTerraform) BinName() string

func (*DistributionTerraform) Downloader added in v0.30.0

func (d *DistributionTerraform) Downloader() Downloader

func (*DistributionTerraform) ResolveConstraint added in v0.30.0

func (*DistributionTerraform) ResolveConstraint(ctx context.Context, constraintStr string) (*version.Version, error)

type Downloader

type Downloader interface {
	Install(ctx context.Context, dir string, downloadURL string, v *version.Version) (string, error)
}

Downloader is for downloading terraform versions.

type TerraformDownloader added in v0.30.0

type TerraformDownloader struct{}

func (*TerraformDownloader) Install added in v0.30.0

func (d *TerraformDownloader) Install(ctx context.Context, dir string, downloadURL string, v *version.Version) (string, error)

type TofuDownloader added in v0.30.0

type TofuDownloader struct{}

func (*TofuDownloader) Install added in v0.30.0

func (d *TofuDownloader) Install(ctx context.Context, dir string, _downloadURL string, v *version.Version) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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