Documentation ¶
Index ¶
- func BoolPtrToBool(b *bool) bool
- func BoolPtrToTypeBool(b *bool) types.Bool
- func ByteToString(b []byte) string
- func DateOnlyPtrToString(date *serialization.DateOnly) types.String
- func EnumListPtrToTypeStringSlice[T fmt.Stringer](input []*T) []types.String
- func EnumPtrToTypeString[T fmt.Stringer](e *T) types.String
- func EnumSliceToTypeStringSlice[T fmt.Stringer](input []T) []types.String
- func Int32PtrToTypeInt32(i *int32) types.Int32
- func Int32PtrToTypeInt64(i *int32) types.Int64
- func Int64PtrToTypeInt64(i *int64) types.Int64
- func SliceToTypeStringSlice(input []string) []types.String
- func StringPtrToString(s *string) string
- func TimeToString(t *time.Time) types.String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPtrToBool ¶
BoolPtrToBool converts a bool pointer to a bool. If the input is nil, it returns false.
func BoolPtrToTypeBool ¶
BoolPtrToTypeBool converts a *bool to a types.Bool. If the input is nil, it returns types.BoolNull().
func ByteToString ¶
ByteToString converts a byte slice to a string. It returns the byte slice encoded as a base64 string.
func DateOnlyPtrToString ¶
func DateOnlyPtrToString(date *serialization.DateOnly) types.String
DateOnlyPtrToString converts a DateOnly pointer to a Terraform string.
func EnumListPtrToTypeStringSlice ¶
EnumListPtrToTypeStringSlice converts a slice of pointers to enum-like constants to a slice of types.String. It uses the String() method of the enum type to convert each value to a string.
func EnumPtrToTypeString ¶
EnumPtrToTypeString converts a pointer to an enum-like type to a types.String. It uses the String() method of the enum type to convert the value to a string.
func EnumSliceToTypeStringSlice ¶
EnumSliceToTypeStringSlice converts a slice of enum-like constants to a slice of types.String. It uses the String() method of the enum type to convert each value to a string.
func Int32PtrToTypeInt32 ¶
Int32PtrToTypeInt32 converts a pointer to an int32 to a types.Int32. This function is useful for converting nullable int32 values from the SDK to Terraform's types.Int32.
func Int32PtrToTypeInt64 ¶
Int32PtrToTypeInt64 converts a pointer to an int32 to a types.Int64. This function is useful for converting nullable int32 values from the SDK to Terraform's types.Int64.
func Int64PtrToTypeInt64 ¶
Int64PtrToTypeInt64 converts a *int64 to a types.Int64. If the input is nil, it returns types.Int64Null().
func SliceToTypeStringSlice ¶
SliceToTypeStringSlice converts a slice of strings to a slice of types.String. It handles nil input by returning nil, and empty slices by returning an empty slice of types.String.
func StringPtrToString ¶
StringPtrToString converts a string pointer to a string.
Types ¶
This section is empty.