Documentation ¶
Index ¶
- Constants
- Variables
- func NewProvider(ctx context.Context, client proto.ProviderClient, terraformVersion string) (shim.Provider, error)
- func StartProvider(ctx context.Context, executablePath, terraformVersion string) (shim.Provider, error)
- type ListIdsFunc
- type TerraformBridge
- func (x *TerraformBridge) GetDetail(ctx context.Context, resourceName string, id string, ...) *schema.Diagnostics
- func (x *TerraformBridge) GetProvider() shim.Provider
- func (x *TerraformBridge) ListByIds(ctx context.Context, resourceName string, ids []string, ...) *schema.Diagnostics
- func (x *TerraformBridge) Shutdown() error
- func (x *TerraformBridge) StartBridge(ctx context.Context, providerConfig map[string]any) error
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 ¶
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.