sdkv2

package
v1.79.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package sdkv2 contains the changes specific to the SDKv2

Note: This package shouldn't depend on internal/providers/pluginfw or internal/providers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureDatabricksClient

func ConfigureDatabricksClient(ctx context.Context, d *schema.ResourceData, configCustomizer func(*config.Config) error) (any, diag.Diagnostics)

func DatabricksProvider

func DatabricksProvider(opts ...SdkV2ProviderOption) *schema.Provider

DatabricksProvider returns the entire terraform provider object

Types

type SdkV2ProviderOption added in v1.71.0

type SdkV2ProviderOption func(*sdkV2ProviderOptions)

SdkV2ProviderOption is a functional option for configuring the SDK V2 provider.

func WithConfigCustomizer added in v1.71.0

func WithConfigCustomizer(customizer func(*config.Config) error) SdkV2ProviderOption

WithConfigCustomizer allows the caller to customize the SDK config after config resolution.

func WithSdkV2DataSourceFallbacks added in v1.71.0

func WithSdkV2DataSourceFallbacks(dataSources []string) SdkV2ProviderOption

WithSdkV2ResourceFallbacks configures the SDKv2 provider to support the provided data sources that are already migrated to the plugin framework. This should only be used for testing.

func WithSdkV2ResourceFallbacks added in v1.71.0

func WithSdkV2ResourceFallbacks(resources []string) SdkV2ProviderOption

WithSdkV2ResourceFallbacks configures the SDKv2 provider to support the provided resources that are already migrated to the plugin framework. This should only be used for testing.

type UserAgentExtra

type UserAgentExtra struct {
	Key   string
	Value string
}

func ParseUserAgentExtra

func ParseUserAgentExtra(env string) ([]UserAgentExtra, error)

Jump to

Keyboard shortcuts

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