configencoding

package
v3.97.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider[T any] interface {
	pl.ProviderWithContext

	Unwrap() T
}

func New

func New[T ProviderWithContextAndConfig](prov T) Provider[T]

New creates a new plugin.Provider that wraps prov.

The returned provider will correctly handle JSON encoded property values according to the passed encoding.

type ProviderWithContextAndConfig

type ProviderWithContextAndConfig interface {
	pl.ProviderWithContext

	Attach(address string) error

	// GetConfigEncoding supplies the wrapping [Provider] with the (possibly unstable)
	// encoding used by the wrapped ProviderWithContextAndConfig.
	//
	// This is necessary since dynamic providers change their encoding in response to
	// gRPC calls.
	GetConfigEncoding(context.Context) *tfbridge.ConfigEncoding
}

Jump to

Keyboard shortcuts

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