tf6to5server

package
Version: 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: 1

Documentation

Overview

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

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

- github.com/hashicorp/terraform-plugin-framework - github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server - github.com/hashicorp/terraform-plugin-mux/tf6muxserver

Refer to the DowngradeServer() function for wrapping a server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DowngradeServer

func DowngradeServer(ctx context.Context, v6server func() tfprotov6.ProviderServer) (tfprotov5.ProviderServer, error)

DowngradeServer wraps a protocol version 6 ProviderServer in a protocol version 5 server. Protocol version 5 is not backwards compatible with protocol version 6, so additional validation is performed:

  • GetProviderSchema is called to ensure SchemaAttribute.NestedType (nested attributes) are not implemented.

Protocol version 5 servers require Terraform CLI 0.12 or later.

Types

This section is empty.

Jump to

Keyboard shortcuts

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