testprovider

package
v3.93.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BigMetadata []byte

Functions

func AssertProvider

func AssertProvider(f AssertFn) tfbridge.ProviderInfo

func MuxedRandomProvider

func MuxedRandomProvider() tfbridge.ProviderInfo

func MuxedRandomProviderWithSdkProvider

func MuxedRandomProviderWithSdkProvider(sdk2provider *sdk2schema.Provider) tfbridge.ProviderInfo

func RandomProvider

func RandomProvider() tfbridge.ProviderInfo

Adapts Random provider to tfbridge for testing tfbridge against a realistic provider.

func SyntheticTestBridgeProvider

func SyntheticTestBridgeProvider() tfbridge.ProviderInfo

Synthetic provider is specifically constructed to test various features of tfbridge and is the core of pulumi-resource-testbridge.

func TLSProvider

func TLSProvider() tfbridge.ProviderInfo

Adapts tls provider to tfbridge for testing tfbridge against another realistic provider.

Types

type AssertFn

type AssertFn = func(config tfsdk.Config, old *tfsdk.State, new *tfsdk.State)

type ConfigTestProvider

type ConfigTestProvider struct {
	ProviderSchema schema.Schema
	ConfigErr      diag.ErrorDiagnostic
}

func (*ConfigTestProvider) Configure

func (*ConfigTestProvider) DataSources

func (*ConfigTestProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*ConfigTestProvider) Metadata

func (*ConfigTestProvider) Resources

func (*ConfigTestProvider) Resources(context.Context) []func() resource.Resource

func (*ConfigTestProvider) Schema

type PortModel

type PortModel struct {
	Handlers []string `tfsdk:"handlers" json:"handlers"`
	Port     *int64   `tfsdk:"port" json:"port"`
}

type PropagatesNullFrom

type PropagatesNullFrom struct {
	AnotherAttribute string
}

func (PropagatesNullFrom) Description

func (mod PropagatesNullFrom) Description(_ context.Context) string

func (PropagatesNullFrom) MarkdownDescription

func (mod PropagatesNullFrom) MarkdownDescription(ctx context.Context) string

func (PropagatesNullFrom) PlanModifyBool

func (PropagatesNullFrom) PlanModifyList

func (PropagatesNullFrom) PlanModifyMap

func (PropagatesNullFrom) PlanModifyNumber

func (PropagatesNullFrom) PlanModifyString

type ServiceModel

type ServiceModel struct {
	InternalPort *int64      `tfsdk:"intport" json:"intport"`
	Ports        []PortModel `tfsdk:"ports" json:"ports"`
	Protocol     *string     `tfsdk:"protocol" json:"protocol"`
}

type SingleNestedAttrModel

type SingleNestedAttrModel struct {
	Description *string  `tfsdk:"description" json:"description"`
	Quantity    *float64 `tfsdk:"quantity" json:"quantity"`
}

type TupleType

type TupleType struct {
	Types []attr.Type
}

func (TupleType) ApplyTerraform5AttributePathStep

func (c TupleType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (any, error)

func (TupleType) ElementTypes

func (c TupleType) ElementTypes() []attr.Type

func (TupleType) Equal

func (c TupleType) Equal(o attr.Type) bool

func (TupleType) GetDeprecationMessage

func (c TupleType) GetDeprecationMessage() string

func (TupleType) GetDescription

func (c TupleType) GetDescription() string

func (TupleType) GetMarkdownDescription

func (c TupleType) GetMarkdownDescription() string

func (TupleType) String

func (c TupleType) String() string

func (TupleType) TerraformType

func (c TupleType) TerraformType(ctx context.Context) tftypes.Type

func (TupleType) Type

func (c TupleType) Type() attr.Type

func (TupleType) ValueFromTerraform

func (c TupleType) ValueFromTerraform(ctx context.Context, val tftypes.Value) (attr.Value, error)

func (TupleType) ValueType

func (c TupleType) ValueType(context.Context) attr.Value

func (TupleType) WithElementTypes

func (c TupleType) WithElementTypes(types []attr.Type) attr.TypeWithElementTypes

type TupleValue

type TupleValue struct {
	// contains filtered or unexported fields
}

func (TupleValue) Equal

func (c TupleValue) Equal(o attr.Value) bool

func (TupleValue) IsNull

func (c TupleValue) IsNull() bool

func (TupleValue) IsUnknown

func (c TupleValue) IsUnknown() bool

func (TupleValue) String

func (c TupleValue) String() string

func (TupleValue) ToTerraformValue

func (c TupleValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (TupleValue) Type

Directories

Path Synopsis
cmd
pulumi-resource-muxedrandom
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
pulumi-resource-random
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
pulumi-resource-testbridge
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
pulumi-resource-tls
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
pulumi-tfgen-muxedrandom
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
pulumi-tfgen-random
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
pulumi-tfgen-testbridge
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
Implements a Pulumi provider for testing the functionality of bridging Terraform Plugin Framework based providers.
Implements a TF Provider against SDKv2 for testing the muxer.
Implements a TF Provider against SDKv2 for testing the muxer.

Jump to

Keyboard shortcuts

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