fwtype

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fwtype implements shared logic for interacting with the framework type system.

Index

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

func ContainsCollectionWithDynamic(typ attr.Type) bool

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

func ContainsMissingUnderlyingType(typ attr.Type) bool

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.

Jump to

Keyboard shortcuts

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