Documentation
¶
Overview ¶
Package fwtype implements shared logic for interacting with the framework type system.
Index ¶
- func AttributeCollectionWithDynamicTypeDiag(attributePath path.Path) diag.Diagnostic
- func BlockCollectionWithDynamicTypeDiag(attributePath path.Path) diag.Diagnostic
- func ContainsCollectionWithDynamic(typ attr.Type) bool
- func ContainsMissingUnderlyingType(typ attr.Type) bool
- func ParameterCollectionWithDynamicTypeDiag(argument int64, name string) diag.Diagnostic
- func ParameterMissingUnderlyingTypeDiag(name string, position *int64) diag.Diagnostic
- func ReturnCollectionWithDynamicTypeDiag() diag.Diagnostic
- func ReturnMissingUnderlyingTypeDiag() diag.Diagnostic
- func VariadicParameterCollectionWithDynamicTypeDiag(name string) diag.Diagnostic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeCollectionWithDynamicTypeDiag ¶
func AttributeCollectionWithDynamicTypeDiag(attributePath path.Path) diag.Diagnostic
func BlockCollectionWithDynamicTypeDiag ¶
func BlockCollectionWithDynamicTypeDiag(attributePath path.Path) diag.Diagnostic
func ContainsCollectionWithDynamic ¶
ContainsCollectionWithDynamic will return true if an attr.Type is a complex type that either is or contains any collection types with dynamic types, which are not supported by the framework type system. Primitives, invalid types (missingType), or nil will return false.
Unsupported collection types include:
- Lists that contain a dynamic type
- Maps that contain a dynamic type
- Sets that contain a dynamic type
func ContainsMissingUnderlyingType ¶ added in v1.9.0
ContainsMissingUnderlyingType will return true if an attr.Type is a complex type that either is or contains any collection types with missing element or attribute types. Primitives will return false. Nil will return true.
func ParameterCollectionWithDynamicTypeDiag ¶
func ParameterCollectionWithDynamicTypeDiag(argument int64, name string) diag.Diagnostic
func ParameterMissingUnderlyingTypeDiag ¶ added in v1.9.0
func ParameterMissingUnderlyingTypeDiag(name string, position *int64) diag.Diagnostic
func ReturnCollectionWithDynamicTypeDiag ¶
func ReturnCollectionWithDynamicTypeDiag() diag.Diagnostic
func ReturnMissingUnderlyingTypeDiag ¶ added in v1.9.0
func ReturnMissingUnderlyingTypeDiag() diag.Diagnostic
func VariadicParameterCollectionWithDynamicTypeDiag ¶
func VariadicParameterCollectionWithDynamicTypeDiag(name string) diag.Diagnostic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.