tf5to6server

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MPL-2.0 Imports: 5 Imported by: 28

Documentation

Overview

Translate a protocol version 5 provider server into protocol version 6.

Supported protocol version 5 provider servers include any which implement the github.com/hashicorp/terraform-plugin-go/tfprotov5.ProviderServer interface, such as:

- github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server - github.com/hashicorp/terraform-plugin-mux/tf5muxserver - 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.

Jump to

Keyboard shortcuts

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