pluginfw

package
v1.121.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 84 Imported by: 0

Documentation

Overview

Package pluginfw contains the changes specific to the plugin framework

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabricksProviderPluginFramework

func GetDatabricksProviderPluginFramework(opts ...PluginFrameworkOption) provider.Provider

func GetSdkV2DataSourcesToRemove added in v1.57.0

func GetSdkV2DataSourcesToRemove(dataSourceFallbacks, pluginFrameworkOptIns []string) []string

GetSdkV2DataSourcesToRemove is the data source counterpart of GetSdkV2ResourcesToRemove.

func GetSdkV2ResourcesToRemove added in v1.57.0

func GetSdkV2ResourcesToRemove(resourceFallbacks, pluginFrameworkOptIns []string) []string

GetSdkV2ResourcesToRemove returns the resources the SDK V2 provider should drop from its resource map so they don't collide with the plugin framework registrations. This is the inverse of getPluginFrameworkResourcesToRegister: migrated resources that haven't been opted out, plus opt-in resources that the user has enabled.

func PluginFrameworkOptInDataSourceNames added in v1.121.0

func PluginFrameworkOptInDataSourceNames() []string

PluginFrameworkOptInDataSourceNames is the data source counterpart of PluginFrameworkOptInResourceNames.

func PluginFrameworkOptInResourceNames added in v1.121.0

func PluginFrameworkOptInResourceNames() []string

PluginFrameworkOptInResourceNames returns the resource type names of all opt-in plugin framework resources. Exposed for cross-package invariant tests; production code should not need this.

Types

type DatabricksProviderPluginFramework

type DatabricksProviderPluginFramework struct {
	// contains filtered or unexported fields
}

func (*DatabricksProviderPluginFramework) Configure

func (*DatabricksProviderPluginFramework) DataSources

func (*DatabricksProviderPluginFramework) Metadata

func (*DatabricksProviderPluginFramework) Resources

func (*DatabricksProviderPluginFramework) Schema

type PluginFrameworkOption added in v1.71.0

type PluginFrameworkOption interface {
	Apply(*pluginFrameworkOptions)
}

PluginFrameworkOption is an interface for acceptance tests to specify resources / data sources to fallback to SDK V2

func WithConfigCustomizer added in v1.71.0

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

WithConfigCustomizer allows the caller to customize the SDK config before config resolution, so customizer-set fields (e.g. Host) participate in resolveHostMetadata and auth.

func WithPluginFrameworkDataSources added in v1.121.0

func WithPluginFrameworkDataSources(dataSources []string) PluginFrameworkOption

WithPluginFrameworkDataSources is the data source counterpart of WithPluginFrameworkResources.

func WithPluginFrameworkResources added in v1.121.0

func WithPluginFrameworkResources(resources []string) PluginFrameworkOption

WithPluginFrameworkResources force-enables opt-in plugin framework resources regardless of the DATABRICKS_TF_ENABLED_PF_RESOURCES env var. Used by acceptance tests to exercise the PF implementation deterministically.

func WithSdkV2DataSourceFallbacks added in v1.57.0

func WithSdkV2DataSourceFallbacks(fallbacks []string) PluginFrameworkOption

WithSdkV2DataSourceFallbacks is a helper function to specify data sources to fallback to SDK V2

func WithSdkV2ResourceFallbacks added in v1.57.0

func WithSdkV2ResourceFallbacks(fallbacks []string) PluginFrameworkOption

WithSdkV2ResourceFallbacks is a helper function to specify resources to fallback to SDK V2

Directories

Path Synopsis
Code generated from OpenAPI specs by Databricks SDK Generator.
Code generated from OpenAPI specs by Databricks SDK Generator.
Code generated from OpenAPI specs by Databricks SDK Generator.
Code generated from OpenAPI specs by Databricks SDK Generator.
Code generated from OpenAPI specs by Databricks SDK Generator.
Code generated from OpenAPI specs by Databricks SDK Generator.
Code generated from OpenAPI specs by Databricks SDK Generator.
Code generated from OpenAPI specs by Databricks SDK Generator.
Package declarative classifies Databricks API errors that carry server-provided "declarative_context" metadata, so generated Terraform resources can act on server-signaled conditions (e.g.
Package declarative classifies Databricks API errors that carry server-provided "declarative_context" metadata, so generated Terraform resources can act on server-signaled conditions (e.g.
products
app
Code generated from OpenAPI specs by Databricks SDK Generator.
Code generated from OpenAPI specs by Databricks SDK Generator.

Jump to

Keyboard shortcuts

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