Documentation ¶
Index ¶
- func CopyObjectJson(in any, out any) error
- func GetBlob(d *schema.ResourceData, key string) map[string]interface{}
- func GetBool(d *schema.ResourceData, key string) bool
- func GetBoolP(d *schema.ResourceData, key string) *bool
- func GetFloat64(d *schema.ResourceData, key string) float64
- func GetFloat64P(d *schema.ResourceData, key string) *float64
- func GetInt(d *schema.ResourceData, key string) int
- func GetIntP(d *schema.ResourceData, key string) *int
- func GetString(d *schema.ResourceData, key string) string
- func GetStringP(d *schema.ResourceData, key string) *string
- func PrintJson(i interface{}) string
- func Set(d *schema.ResourceData, key string, value any) error
- func SetOrPanic(d *schema.ResourceData, key string, value any)
- func StructFromProps[S any](blobs any) (S, error)
- func ToPointer[T any](data T) *T
- func ToValue[T any](p *T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyObjectJson ¶ added in v0.5.0
json marshals to bytes then unmarshals into struct to fill a struct. Out has to be a pointer
func GetFloat64 ¶
func GetFloat64(d *schema.ResourceData, key string) float64
func GetFloat64P ¶
func GetFloat64P(d *schema.ResourceData, key string) *float64
func GetStringP ¶
func GetStringP(d *schema.ResourceData, key string) *string
func SetOrPanic ¶
func SetOrPanic(d *schema.ResourceData, key string, value any)
func StructFromProps ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.