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(sdkV2FallbackOptions ...SdkV2FallbackOption) provider.Provider
- func GetSdkV2DataSourcesToRemove(sdkV2Fallbacks ...SdkV2FallbackOption) []string
- func GetSdkV2ResourcesToRemove(sdkV2Fallbacks ...SdkV2FallbackOption) []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 SdkV2FallbackOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabricksProviderPluginFramework ¶
func GetDatabricksProviderPluginFramework(sdkV2FallbackOptions ...SdkV2FallbackOption) provider.Provider
func GetSdkV2DataSourcesToRemove ¶ added in v1.57.0
func GetSdkV2DataSourcesToRemove(sdkV2Fallbacks ...SdkV2FallbackOption) []string
GetSdkV2DataSourcesToRemove is a helper function to get the list of data sources that are migrated away from sdkv2 to plugin framework
func GetSdkV2ResourcesToRemove ¶ added in v1.57.0
func GetSdkV2ResourcesToRemove(sdkV2Fallbacks ...SdkV2FallbackOption) []string
GetSdkV2ResourcesToRemove is a helper function to get the list of resources that are migrated away from sdkv2 to plugin framework
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 SdkV2FallbackOption ¶ added in v1.57.0
type SdkV2FallbackOption interface {
Apply(*sdkV2FallbackOptions)
}
SdkV2FallbackOption is an interface for acceptance tests to specify resources / data sources to fallback to SDK V2
func WithSdkV2DataSourceFallbacks ¶ added in v1.57.0
func WithSdkV2DataSourceFallbacks(fallbacks []string) SdkV2FallbackOption
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) SdkV2FallbackOption
WithSdkV2ResourceFallbacks is a helper function to specify resources to fallback to SDK V2