terraform

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

View Source
const EXIT_ERROR = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type TerraformProvider

type TerraformProvider struct {
	Config TerraformProviderConfig
	// contains filtered or unexported fields
}

func NewTerraformProvider

func NewTerraformProvider(installer *tf.ProviderInstaller, config TerraformProviderConfig, progress progress2.ProgressCounter) (*TerraformProvider, error)

func (*TerraformProvider) Cleanup

func (p *TerraformProvider) Cleanup()

func (*TerraformProvider) Init

func (p *TerraformProvider) Init() error

func (*TerraformProvider) ReadResource

func (p *TerraformProvider) ReadResource(args tf.ReadResourceArgs) (*cty.Value, error)

func (*TerraformProvider) Runner

func (*TerraformProvider) Schema

func (p *TerraformProvider) Schema() map[string]providers.Schema

type TerraformProviderConfig

type TerraformProviderConfig struct {
	Name              string
	DefaultAlias      string
	GetProviderConfig func(alias string) interface{}
}

"alias" in these struct are a way to namespace gRPC clients. For example, if we need to read S3 bucket from multiple AWS region, we'll have an alias per region, and the alias IS the region itself. So we can query resources using a specific custom provider configuration

Jump to

Keyboard shortcuts

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