Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceAttribute(name string, val resourceschema.Attribute, diags *diag.Diagnostics) datasourceschema.Attribute
- func DataSourceAttributeMap(r map[string]resourceschema.Attribute, diags *diag.Diagnostics) map[string]datasourceschema.Attribute
- func DataSourceNestedAttributeObject(r resourceschema.NestedAttributeObject, diags *diag.Diagnostics) datasourceschema.NestedAttributeObject
- func ExtractResourceId(id string) string
- func Ptr[T any](t T) *T
- func ReadWithPages[T any](read func(offset, limit int32) ([]T, error)) ([]T, error)
- func ToComputedAttribute(name string, val resourceschema.Attribute) resourceschema.Attribute
- func ToComputedAttributeMap(r map[string]resourceschema.Attribute) map[string]resourceschema.Attribute
- func ToComputedNestedAttributeObject(r resourceschema.NestedAttributeObject) resourceschema.NestedAttributeObject
Constants ¶
const ReadPageSizeLimit int32 = 1000
Variables ¶
var GlobalMutexStore = newMutexStore()
GlobalMutexStore is a global mutex store.
Functions ¶
func DataSourceAttribute ¶
func DataSourceAttribute(name string, val resourceschema.Attribute, diags *diag.Diagnostics) datasourceschema.Attribute
DataSourceAttribute converts a resource schema attribute to data source schema attribute
func DataSourceAttributeMap ¶
func DataSourceAttributeMap(r map[string]resourceschema.Attribute, diags *diag.Diagnostics) map[string]datasourceschema.Attribute
DataSourceAttributeMap converts a map of resource schema attributes to data source schema attributes
func DataSourceNestedAttributeObject ¶
func DataSourceNestedAttributeObject(r resourceschema.NestedAttributeObject, diags *diag.Diagnostics) datasourceschema.NestedAttributeObject
DataSourceNestedAttributeObject converts a resource schema nested attribute object to data source schema nested attribute object
func ExtractResourceId ¶ added in v1.1.0
func ReadWithPages ¶
func ToComputedAttribute ¶
func ToComputedAttribute(name string, val resourceschema.Attribute) resourceschema.Attribute
ToComputedAttribute converts a resource schema attribute having all attributes set to "computed".
func ToComputedAttributeMap ¶
func ToComputedAttributeMap(r map[string]resourceschema.Attribute) map[string]resourceschema.Attribute
ToComputedAttributeMap converts a map of resource schema attributes to schema attributes with all fields set to "computed".
func ToComputedNestedAttributeObject ¶
func ToComputedNestedAttributeObject(r resourceschema.NestedAttributeObject) resourceschema.NestedAttributeObject
ToComputedNestedAttributeObject converts a resource schema nested attribute object to nested attribute object with all fields set to "computed".
Types ¶
This section is empty.