Documentation ¶
Index ¶
- func SchemaOnlyPluginFrameworkProvider(ctx context.Context, provider provider.Provider) shim.Provider
- type ProviderShim
- func (m *ProviderShim) DataSourceIsPF(token string) bool
- func (p *ProviderShim) DataSourcesMap() shim.ResourceMap
- func (m *ProviderShim) ResolveDispatch(info *tfbridge.ProviderInfo) (muxer.DispatchTable, error)
- func (m *ProviderShim) ResourceIsPF(token string) bool
- func (p *ProviderShim) ResourcesMap() shim.ResourceMap
- func (p *ProviderShim) Schema() shim.SchemaMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProviderShim ¶
type ProviderShim struct { MuxedProviders []shim.Provider // contains filtered or unexported fields }
A merged `shim.Provider` that remembers which `shim.Provider`s it is composed of.
func AugmentShimWithDisjointPF ¶
func AugmentShimWithDisjointPF(ctx context.Context, shim shim.Provider, pf provider.Provider) *ProviderShim
AugmentShimWithDisjointPF augments an existing shim with a PF provider.Provider.
This function asserts that there is no overlap between providers.
func AugmentShimWithPF ¶
AugmentShimWithPF augments an existing shim with a PF provider.Provider.
If there is overlap between shim and pf, shim will dominate.
func (*ProviderShim) DataSourceIsPF ¶
func (m *ProviderShim) DataSourceIsPF(token string) bool
Check if a DataSource is served via the Plugin Framework.
func (*ProviderShim) DataSourcesMap ¶
func (p *ProviderShim) DataSourcesMap() shim.ResourceMap
func (*ProviderShim) ResolveDispatch ¶
func (m *ProviderShim) ResolveDispatch(info *tfbridge.ProviderInfo) (muxer.DispatchTable, error)
Assign each Resource and DataSource mapped in `info` whichever runtime provider defines it.
For alias based mappings to work correctly at runtime, it is necessary to call `ResolveDispatch` before running the provider.
func (*ProviderShim) ResourceIsPF ¶
func (m *ProviderShim) ResourceIsPF(token string) bool
Check if a Resource is served via in the Plugin Framework.
func (*ProviderShim) ResourcesMap ¶
func (p *ProviderShim) ResourcesMap() shim.ResourceMap