fwxschema

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fwxschema implements extra framework-based schema functionality on top of base Terraform attribute functionality.

This package is separated from fwschema to prevent import cycles with existing tfsdk functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeWithPlanModifiers

type AttributeWithPlanModifiers interface {
	// Implementations should include the fwschema.Attribute interface methods
	// for proper attribute handling.
	fwschema.Attribute

	// GetPlanModifiers should return a list of attribute-based plan modifiers.
	// This is named differently than PlanModifiers to prevent a conflict with
	// the tfsdk.Attribute field name.
	GetPlanModifiers() tfsdk.AttributePlanModifiers
}

AttributeWithPlanModifiers is an optional interface on Attribute which enables plan modification support.

type AttributeWithValidators

type AttributeWithValidators interface {
	// Implementations should include the fwschema.Attribute interface methods
	// for proper attribute handling.
	fwschema.Attribute

	// GetValidators should return a list of attribute-based validators. This
	// is named differently than PlanModifiers to prevent a conflict with the
	// tfsdk.Attribute field name.
	GetValidators() []tfsdk.AttributeValidator
}

AttributeWithValidators is an optional interface on Attribute which enables validation support.

type BlockWithPlanModifiers

type BlockWithPlanModifiers interface {
	// Implementations should include the fwschema.Block interface methods
	// for proper block handling.
	fwschema.Block

	// GetPlanModifiers should return a list of attribute-based plan modifiers.
	// This is named differently than PlanModifiers to prevent a conflict with
	// the tfsdk.Block field name.
	GetPlanModifiers() tfsdk.AttributePlanModifiers
}

BlockWithPlanModifiers is an optional interface on Block which enables plan modification support.

type BlockWithValidators

type BlockWithValidators interface {
	// Implementations should include the fwschema.Block interface methods
	// for proper block handling.
	fwschema.Block

	// GetValidators should return a list of attribute-based validators. This
	// is named differently than Validators to prevent a conflict with the
	// tfsdk.Block field name.
	GetValidators() []tfsdk.AttributeValidator
}

BlockWithValidators is an optional interface on Block which enables validation support.

Jump to

Keyboard shortcuts

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