tf5to6server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MPL-2.0 Imports: 5 Imported by: 30

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:

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