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 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 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.

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"`
	DynamicAttribute                 types.Dynamic `tfsdk:"dynamic_attribute"`
	Float64Attribute                 types.Float64 `tfsdk:"float64_attribute"`
	Int64Attribute                   types.Int64   `tfsdk:"int64_attribute"`
	ListAttribute                    types.List    `tfsdk:"list_attribute"`
	ListNestedAttribute              types.List    `tfsdk:"list_nested_attribute"`
	ListNestedBlock                  types.List    `tfsdk:"list_nested_block"`
	MapAttribute                     types.Map     `tfsdk:"map_attribute"`
	MapNestedAttribute               types.Map     `tfsdk:"map_nested_attribute"`
	NumberAttribute                  types.Number  `tfsdk:"number_attribute"`
	ObjectAttribute                  types.Object  `tfsdk:"object_attribute"`
	ObjectAttributeWithDynamic       types.Object  `tfsdk:"object_attribute_with_dynamic"`
	SetAttribute                     types.Set     `tfsdk:"set_attribute"`
	SetNestedAttribute               types.Set     `tfsdk:"set_nested_attribute"`
	SetNestedBlock                   types.Set     `tfsdk:"set_nested_block"`
	SingleNestedAttribute            types.Object  `tfsdk:"single_nested_attribute"`
	SingleNestedAttributeWithDynamic types.Object  `tfsdk:"single_nested_attribute_with_dynamic"`
	SingleNestedBlock                types.Object  `tfsdk:"single_nested_block"`
	SingleNestedBlockWithDynamic     types.Object  `tfsdk:"single_nested_block_with_dynamic"`
	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