A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/providerserver below:

providerserver package - github.com/hashicorp/terraform-plugin-framework/providerserver - Go Packages

Package providerserver implements functionality for serving a provider, such as directly starting a server in a production binary and conversion functions for testing.

For production usage, call the Serve function from binary startup, such as from the provider codebase main package. If multiplexing the provider server via terraform-plugin-mux functionality, use the NewProtocol* functions and call the Serve function from that Go module. For testing usage, call the NewProtocol* functions.

All functionality in this package requires the provider.Provider type, which contains the provider implementation including all managed resources and data sources.

This section is empty.

This section is empty.

NewProtocol5 returns a protocol version 5 ProviderServer implementation based on the given Provider and suitable for usage with the github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.Serve() function and various terraform-plugin-mux functions.

NewProtocol5WithError returns a protocol version 5 ProviderServer implementation based on the given Provider and suitable for usage with github.com/hashicorp/terraform-plugin-testing/helper/resource.TestCase.ProtoV5ProviderFactories.

The error return is not currently used, but it may be in the future.

NewProtocol6 returns a protocol version 6 ProviderServer implementation based on the given Provider and suitable for usage with the github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.Serve() function and various terraform-plugin-mux functions.

NewProtocol6WithError returns a protocol version 6 ProviderServer implementation based on the given Provider and suitable for usage with github.com/hashicorp/terraform-plugin-testing/helper/resource.TestCase.ProtoV6ProviderFactories.

The error return is not currently used, but it may be in the future.

Serve serves a provider, blocking until the context is canceled.

type ServeOpts struct {
	
	
	
	
	
	Address string

	
	
	
	
	Debug bool

	
	
	
	
	
	
	
	
	
	ProtocolVersion int
}

ServeOpts are options for serving the provider.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4