Documentation ¶
Overview ¶
Package tf5to6server translates a provider that implements protocol version 5, into one that implements protocol version 6.
Supported protocol version 5 provider servers include any which implement the tfprotov5.ProviderServer (https://pkg.go.dev/github.com/hashicorp/terraform-plugin-go/tfprotov5#ProviderServer) interface, such as:
- https://pkg.go.dev/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server
- https://pkg.go.dev/github.com/hashicorp/terraform-plugin-mux/tf5muxserver
- https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema
Refer to the UpgradeServer() function for wrapping a server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpgradeServer ¶
func UpgradeServer(_ context.Context, v5server func() tfprotov5.ProviderServer) (tfprotov6.ProviderServer, error)
UpgradeServer wraps a protocol version 5 ProviderServer in a protocol version 6 server. Protocol version 6 is fully forwards compatible with protocol version 5, so no additional validation is performed.
Protocol version 6 servers require Terraform CLI 1.0 or later.
Terraform CLI 1.1.5 or later is required for terraform-provider-sdk based protocol version 5 servers to properly upgrade to protocol version 6.
Types ¶
This section is empty.