tf5muxserver

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MPL-2.0 Imports: 10 Imported by: 40

Documentation

Overview

Package tf5muxserver combines multiple provider servers that implement protocol version 5, into a single server.

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 NewMuxServer() function for creating a combined server.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMuxServer

func NewMuxServer(_ context.Context, servers ...func() tfprotov5.ProviderServer) (*muxServer, error)

NewMuxServer returns a muxed server that will route gRPC requests between tfprotov5.ProviderServers specified. The GetProviderSchema method of each is called to verify that the overall muxed server is compatible by ensuring:

  • All provider schemas exactly match
  • All provider meta schemas exactly match
  • Only one provider implements each managed resource
  • Only one provider implements each data source
  • Only one provider implements each function
Example
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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