terraform

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 output.Progress) (*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