framework

package
v0.0.0-...-da9d332 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() provider.Provider

func NewBoolFunction

func NewBoolFunction() function.Function

func NewDynamicComputedTypeChangeResource

func NewDynamicComputedTypeChangeResource() resource.Resource

func NewDynamicFunction

func NewDynamicFunction() function.Function

func NewDynamicSchemaResource

func NewDynamicSchemaResource() resource.Resource

func NewDynamicVariadicFunction

func NewDynamicVariadicFunction() function.Function

func NewFloat64Function

func NewFloat64Function() function.Function

func NewFloat64PrecisionResource

func NewFloat64PrecisionResource() resource.Resource

func NewInt64Function

func NewInt64Function() function.Function

func NewListFunction

func NewListFunction() function.Function

func NewMapFunction

func NewMapFunction() function.Function

func NewNumberFunction

func NewNumberFunction() function.Function

func NewObjectFunction

func NewObjectFunction() function.Function

func NewObjectWithDynamicFunction

func NewObjectWithDynamicFunction() function.Function

func NewSchemaResource

func NewSchemaResource() resource.Resource

func NewSetFunction

func NewSetFunction() function.Function

func NewStringFunction

func NewStringFunction() function.Function

func NewTimeoutsResource

func NewTimeoutsResource() resource.Resource

func NewUserResource

func NewUserResource() resource.Resource

func NewVariadicFunction

func NewVariadicFunction() function.Function

Types

type BoolFunction

type BoolFunction struct{}

func (BoolFunction) Definition

func (BoolFunction) Metadata

func (BoolFunction) Run

type DynamicComputedTypeChangeResource

type DynamicComputedTypeChangeResource struct{}

DynamicComputedTypeChangeResource is for testing the ability of a computed dynamic attribute type to change on apply (update) when unknown Ref: https://github.com/hashicorp/terraform-plugin-framework/issues/969

func (DynamicComputedTypeChangeResource) Create

func (DynamicComputedTypeChangeResource) Delete

func (DynamicComputedTypeChangeResource) Metadata

func (DynamicComputedTypeChangeResource) Read

func (DynamicComputedTypeChangeResource) Schema

func (DynamicComputedTypeChangeResource) Update

type DynamicComputedTypeChangeResourceModel

type DynamicComputedTypeChangeResourceModel struct {
	RequiredDynamic            types.Dynamic `tfsdk:"required_dynamic"`
	ComputedDynamicTypeChanges types.Dynamic `tfsdk:"computed_dynamic_type_changes"`
}

type DynamicFunction

type DynamicFunction struct{}

func (DynamicFunction) Definition

func (DynamicFunction) Metadata

func (DynamicFunction) Run

type DynamicSchemaResource

type DynamicSchemaResource struct{}

DynamicSchemaResource is for testing the dynamic schema type.

This is separated from the standard `SchemaResource` for protocol v5 because of a bug in Terraform v0.12.x around handling null values. See this resource's acceptance tests for more details.

func (DynamicSchemaResource) Create

func (DynamicSchemaResource) Delete

func (DynamicSchemaResource) Metadata

func (DynamicSchemaResource) Read

func (DynamicSchemaResource) Schema

func (DynamicSchemaResource) Update

type DynamicSchemaResourceModel

type DynamicSchemaResourceModel struct {
	DynamicAttribute             types.Dynamic `tfsdk:"dynamic_attribute"`
	ObjectAttributeWithDynamic   types.Object  `tfsdk:"object_attribute_with_dynamic"`
	SingleNestedBlockWithDynamic types.Object  `tfsdk:"single_nested_block_with_dynamic"`
}

type DynamicVariadicFunction

type DynamicVariadicFunction struct{}

func (DynamicVariadicFunction) Definition

func (DynamicVariadicFunction) Metadata

func (DynamicVariadicFunction) Run

type Float64Function

type Float64Function struct{}

func (Float64Function) Definition

func (Float64Function) Metadata

func (Float64Function) Run

type Float64PrecisionResource

type Float64PrecisionResource struct{}

Float64PrecisionResource is for testing Float64/cty.Number quirks https://github.com/hashicorp/terraform-plugin-framework/issues/815

func (Float64PrecisionResource) Create

func (Float64PrecisionResource) Delete

func (Float64PrecisionResource) Metadata

func (Float64PrecisionResource) Read

func (Float64PrecisionResource) Schema

func (Float64PrecisionResource) Update

type Float64PrecisionResourceModel

type Float64PrecisionResourceModel struct {
	Float64Attribute types.Float64 `tfsdk:"float64_attribute"`
}

type Int64Function

type Int64Function struct{}

func (Int64Function) Definition

func (Int64Function) Metadata

func (Int64Function) Run

type ListFunction

type ListFunction struct{}

func (ListFunction) Definition

func (ListFunction) Metadata

func (ListFunction) Run

type MapFunction

type MapFunction struct{}

func (MapFunction) Definition

func (MapFunction) Metadata

func (MapFunction) Run

type NumberFunction

type NumberFunction struct{}

func (NumberFunction) Definition

func (NumberFunction) Metadata

func (NumberFunction) Run

type ObjectFunction

type ObjectFunction struct{}

func (ObjectFunction) Definition

func (ObjectFunction) Metadata

func (ObjectFunction) Run

type ObjectWithDynamicFunction

type ObjectWithDynamicFunction struct{}

func (ObjectWithDynamicFunction) Definition

func (ObjectWithDynamicFunction) Metadata

func (ObjectWithDynamicFunction) Run

type SchemaResource

type SchemaResource struct{}

SchemaResource is for testing all schema types, excluding dynamic schema types. (see `DynamicSchemaResource`)

func (SchemaResource) Create

func (SchemaResource) Delete

func (SchemaResource) Metadata

func (SchemaResource) Read

func (SchemaResource) Schema

func (SchemaResource) Update

type SchemaResourceModel

type SchemaResourceModel struct {
	BoolAttribute     types.Bool    `tfsdk:"bool_attribute"`
	Float64Attribute  types.Float64 `tfsdk:"float64_attribute"`
	Int64Attribute    types.Int64   `tfsdk:"int64_attribute"`
	ListAttribute     types.List    `tfsdk:"list_attribute"`
	ListNestedBlock   types.List    `tfsdk:"list_nested_block"`
	MapAttribute      types.Map     `tfsdk:"map_attribute"`
	NumberAttribute   types.Number  `tfsdk:"number_attribute"`
	ObjectAttribute   types.Object  `tfsdk:"object_attribute"`
	SetAttribute      types.Set     `tfsdk:"set_attribute"`
	SetNestedBlock    types.Set     `tfsdk:"set_nested_block"`
	SingleNestedBlock types.Object  `tfsdk:"single_nested_block"`
	StringAttribute   types.String  `tfsdk:"string_attribute"`
}

type SetFunction

type SetFunction struct{}

func (SetFunction) Definition

func (SetFunction) Metadata

func (SetFunction) Run

type StringFunction

type StringFunction struct{}

func (StringFunction) Definition

func (StringFunction) Metadata

func (StringFunction) Run

type TimeoutsResource

type TimeoutsResource struct{}

TimeoutsResource is for testing all schema types.

func (TimeoutsResource) Create

func (TimeoutsResource) Delete

func (TimeoutsResource) Metadata

func (TimeoutsResource) Read

func (TimeoutsResource) Schema

func (TimeoutsResource) Update

type TimeoutsResourceModel

type TimeoutsResourceModel struct {
	Timeouts timeouts.Value `tfsdk:"timeouts"`
}

type VariadicFunction

type VariadicFunction struct{}

func (VariadicFunction) Definition

func (VariadicFunction) Metadata

func (VariadicFunction) Run

Jump to

Keyboard shortcuts

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