muxer

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SchemaOnlyPluginFrameworkProvider

func SchemaOnlyPluginFrameworkProvider(ctx context.Context, provider provider.Provider) shim.Provider

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 added in v0.9.0

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

func AugmentShimWithPF(ctx context.Context, shim shim.Provider, pf provider.Provider) *ProviderShim

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

func (*ProviderShim) Schema

func (p *ProviderShim) Schema() shim.SchemaMap

Jump to

Keyboard shortcuts

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