conversion

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolValueToPointer added in v0.6.3

func BoolValueToPointer(s basetypes.BoolValue) *bool

BoolValueToPointer converts basetypes.BoolValue to a pointer to bool. It returns nil if the value is null or unknown.

func Float64ValueToPointer added in v0.23.0

func Float64ValueToPointer(s basetypes.Float64Value) *float64

Float64ValueToPointer converts basetypes.Float64Value to a pointer to float64. It returns nil if the value is null or unknown.

func Int64ValueToPointer added in v0.6.3

func Int64ValueToPointer(s basetypes.Int64Value) *int64

Int64ValueToPointer converts basetypes.Int64Value to a pointer to int64. It returns nil if the value is null or unknown.

func ParseProviderData added in v0.54.0

func ParseProviderData(ctx context.Context, providerData any, diags *diag.Diagnostics) (core.ProviderData, bool)

func StringListToPointer added in v0.21.0

func StringListToPointer(list basetypes.ListValue) (*[]string, error)

StringListToPointer converts basetypes.ListValue to a pointer to a list of strings. It returns nil if the value is null or unknown.

func StringValueToPointer added in v0.6.3

func StringValueToPointer(s basetypes.StringValue) *string

StringValueToPointer converts basetypes.StringValue to a pointer to string. It returns nil if the value is null or unknown.