Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmay-db committed Aug 20, 2024
1 parent 99d3f97 commit b72057b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions provider/provider_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ import (
"github.com/hashicorp/terraform-plugin-mux/tf6muxserver"
)

// GetProviderServer initializes and returns a Terraform Protocol v6 ProviderServer.
// The function begins by initializing the Databricks provider using the SDK plugin
// and then upgrades this provider to be compatible with Terraform's Protocol v6 using
// the v5-to-v6 upgrade mechanism. Additionally, it retrieves the Databricks provider
// that is implemented using the Terraform Plugin Framework. These different provider
// implementations are then combined using a multiplexing server, which allows multiple
// Protocol v6 providers to be served together. The function returns the multiplexed
// ProviderServer, or an error if any part of the process fails.
func GetProviderServer(ctx context.Context) (tfprotov6.ProviderServer, error) {
sdkPluginProvider := DatabricksProvider()

Expand Down

0 comments on commit b72057b

Please sign in to comment.