Registry / cloud / hashicorp-terraform-plugin-go

hashicorp-terraform-plugin-go

JSON →
library0.31.0gogounverified

Package for building Terraform providers using the Go programming language.

go get github.com/hashicorp/terraform-plugin-go
INSTALL
IMPORT
SIG · HASHICORP-TERRAFOR
H
hashicorp-terraform-plugin-go
cloudgov0.31.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tfprotov5
github.com/hashicorp/terraform-plugin-go

Serve a Terraform provider using the protocol version 5 server.

package main import ( "github.com/hashicorp/terraform-plugin-go/tfprotov5" "github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server" ) func main() { provider := &tfprotov5.ProviderServer{} tf5server.Serve("registry.terraform.io/example/example", provider) }
Debug
Known issues
breakingBreaking changes between protocol versions (v5 vs v6).
fix
Use the correct protocol version package (tfprotov5 or tfprotov6) matching your Terraform core version.
affects: >=0.12.0
Upgrade
Version history
0.31.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
hashicorp-terraform-plugin-go — go get hashicorp-terraform-plugin-go · libregistry