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 ¶
- func GetDatabricksProviderPluginFramework(opts ...PluginFrameworkOption) provider.Provider
- func GetSdkV2DataSourcesToRemove(dataSourceFallbacks, pluginFrameworkOptIns []string) []string
- func GetSdkV2ResourcesToRemove(resourceFallbacks, pluginFrameworkOptIns []string) []string
- func PluginFrameworkOptInDataSourceNames() []string
- func PluginFrameworkOptInResourceNames() []string
- type DatabricksProviderPluginFramework
- func (p *DatabricksProviderPluginFramework) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *DatabricksProviderPluginFramework) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *DatabricksProviderPluginFramework) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *DatabricksProviderPluginFramework) Resources(ctx context.Context) []func() resource.Resource
- func (p *DatabricksProviderPluginFramework) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type PluginFrameworkOption
- func WithConfigCustomizer(customizer func(*config.Config) error) PluginFrameworkOption
- func WithPluginFrameworkDataSources(dataSources []string) PluginFrameworkOption
- func WithPluginFrameworkResources(resources []string) PluginFrameworkOption
- func WithSdkV2DataSourceFallbacks(fallbacks []string) PluginFrameworkOption
- func WithSdkV2ResourceFallbacks(fallbacks []string) PluginFrameworkOption
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
GetSdkV2DataSourcesToRemove is the data source counterpart of GetSdkV2ResourcesToRemove.
func GetSdkV2ResourcesToRemove ¶ added in v1.57.0
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 (p *DatabricksProviderPluginFramework) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*DatabricksProviderPluginFramework) DataSources ¶
func (p *DatabricksProviderPluginFramework) DataSources(ctx context.Context) []func() datasource.DataSource
func (*DatabricksProviderPluginFramework) Metadata ¶
func (p *DatabricksProviderPluginFramework) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*DatabricksProviderPluginFramework) Resources ¶
func (p *DatabricksProviderPluginFramework) Resources(ctx context.Context) []func() resource.Resource
func (*DatabricksProviderPluginFramework) Schema ¶
func (p *DatabricksProviderPluginFramework) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
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
|
|
|
Code generated from OpenAPI specs by Databricks SDK Generator.
|
Code generated from OpenAPI specs by Databricks SDK Generator. |