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 }
Click to show internal directories.
Click to hide internal directories.