pulcheck

package
v3.101.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BridgedProvider

func BridgedProvider(t T, providerName string, tfp *schema.Provider, opts ...BridgedProviderOpt) info.Provider

This is an experimental API.

func EnsureProviderValid

func EnsureProviderValid(t T, tfp *schema.Provider)

This is an experimental API.

func ProviderServerFromInfo

func ProviderServerFromInfo(
	ctx context.Context, providerInfo tfbridge.ProviderInfo,
) (pulumirpc.ResourceProviderServer, error)

func PulCheck

func PulCheck(t T, bridgedProvider info.Provider, program string, opts ...opttest.Option) *pulumitest.PulumiTest

This is an experimental API.

func StartPulumiProvider

func StartPulumiProvider(ctx context.Context, providerInfo tfbridge.ProviderInfo) (*rpcutil.ServeHandle, error)

This is an experimental API.

Types

type BridgedProviderOpt

type BridgedProviderOpt func(*bridgedProviderOpts)

BridgedProviderOpts

func EnableAccurateBridgePreviews

func EnableAccurateBridgePreviews() BridgedProviderOpt

func WithConfigInfo

func WithConfigInfo(info map[string]*info.Schema) BridgedProviderOpt

WithResourceInfo allows the user to set the info.Provider.Config field within a BridgedProvider.

This is an experimental API.

func WithResourceInfo

func WithResourceInfo(info map[string]*info.Resource) BridgedProviderOpt

WithResourceInfo allows the user to set the info.Provider.Resources field within a BridgedProvider.

This is an experimental API.

type T

type T interface {
	Logf(string, ...any)
	TempDir() string
	Skip(...any)
	require.TestingT
	assert.TestingT
	pulumitest.PT
}

This is an experimental API.

Jump to

Keyboard shortcuts

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