bridge

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 22 Imported by: 9

Documentation

Index

Constants

View Source
const UnknownVariableValue = "74D93920-ED26-11E3-AC10-0800200C9A66"

UnknownVariableValue is the sentinal defined in github.com/hashicorp/terraform/configs/hcl2shim, representing a variable whose value is not known at some particular time. The value is duplicated here in order to prevent an additional dependency - it is unlikely to ever change upstream since that would break rather a lot of things.

Variables

View Source
var Handshake = plugin.HandshakeConfig{
	ProtocolVersion:  5,
	MagicCookieKey:   "TF_PLUGIN_MAGIC_COOKIE",
	MagicCookieValue: "d602bf8f470bc67ca7faa0386276bbdd4330efaf76d1a219cb4d6991ca9872b2",
}

Functions

func NewProvider

func NewProvider(ctx context.Context, client proto.ProviderClient, terraformVersion string) (shim.Provider, error)

func StartProvider

func StartProvider(ctx context.Context, executablePath, terraformVersion string) (shim.Provider, error)

Types

type ListIdsFunc

type ListIdsFunc func(ctx context.Context, clientMeta *schema.ClientMeta, client any, task *schema.DataSourcePullTask, resultChannel chan<- any) ([]string, *schema.Diagnostics)

type TerraformBridge

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

func NewTerraformBridge

func NewTerraformBridge(providerExecPath string) *TerraformBridge

func (*TerraformBridge) GetDetail

func (x *TerraformBridge) GetDetail(ctx context.Context, resourceName string, id string, objectMap, meta map[string]any, clientMeta *schema.ClientMeta, client any, task *schema.DataSourcePullTask, resultChannel chan<- any) *schema.Diagnostics

func (*TerraformBridge) GetProvider

func (x *TerraformBridge) GetProvider() shim.Provider

func (*TerraformBridge) ListByIds

func (x *TerraformBridge) ListByIds(ctx context.Context, resourceName string, ids []string, clientMeta *schema.ClientMeta, client any, task *schema.DataSourcePullTask, resultChannel chan<- any) *schema.Diagnostics

func (*TerraformBridge) Shutdown

func (x *TerraformBridge) Shutdown() error

func (*TerraformBridge) StartBridge

func (x *TerraformBridge) StartBridge(ctx context.Context, providerConfig map[string]any) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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