Documentation ¶
Overview ¶
Package tfpfbridge implements adapters for constructing Pulumi Resource Providers from Terraform providers built with the Terraform Plugin Framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
func Main(ctx context.Context, pkg string, prov ProviderInfo, meta ProviderMetadata)
Implements main() or a bridged Pulumi plugin, complete with argument parsing.
func NewProvider ¶
func NewProvider(ctx context.Context, info ProviderInfo, meta ProviderMetadata) (plugin.Provider, error)
Adaptes a provider to Pulumi. Most users do not need to call this directly but instead use Main to build a fully functional binary.
Types ¶
type ProviderInfo ¶
type ProviderInfo struct { // Inherits the options used for bridging providers built with the Terraform Plugin SDK. // // One notable exception is P (provider itself). When populating ProviderInfo, property P must be nil. Populate // NewProvider instead. tfbridge.ProviderInfo // Constructs a new instance of the Terraform provider for bridging. NewProvider func() pfprovider.Provider }
Configures Pulumi provider metadata and bridging options.
type ProviderMetadata ¶
type ProviderMetadata struct { // JSON-serialzed Pulumi Package Schema. PackageSchema []byte // Additional metadata used by the bridge. This metadata is subject to change and should be treated as opaque by // consuming code. BridgeMetadata []byte }
Defines bridged provider metadata that is pre-computed at build time with tfgen (tfgen ("github.com/pulumi/pulumi-terraform-bridge/pkg/tfpfbridge/tfgen") and typically made available to the provider binary at runtime with embed.
Source Files ¶
- ids.go
- info.go
- main.go
- metadata.go
- naming.go
- package.go
- provider.go
- provider_check.go
- provider_checkconfig.go
- provider_configure.go
- provider_create.go
- provider_datasources.go
- provider_delete.go
- provider_diagnostics.go
- provider_diff.go
- provider_diffconfig.go
- provider_invoke.go
- provider_plan.go
- provider_read.go
- provider_resources.go
- provider_streaminvoke.go
- provider_update.go
- serve.go
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
convert
Converts between Pulumi and Terraform value representations.
|
Converts between Pulumi and Terraform value representations. |
Package tfgen implements build-time introspection and generating a [Pulumi Package Schema].
|
Package tfgen implements build-time introspection and generating a [Pulumi Package Schema]. |
Click to show internal directories.
Click to hide internal directories.