utils

package
v7.0.0-...-bd4ed7e Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJSON

func DecodeJSON(data map[string]interface{}, v interface{}) error

DecodeJSON decodes the map object into the target struct.

func MapToCtyValWithSchema

func MapToCtyValWithSchema(m map[string]interface{}, s map[string]*schema.Schema) (cty.Value, error)

MapToCtyValWithSchema normalizes and converts resource from untyped map format to TF JSON.

Normalization is a post-processing of the output map, which does the following: * Converts unmarshallable "schema.Set" to marshallable counterpart. * Strips out properties, which are not part ofthe resource TF schema.

func NewConfig

func NewConfig() *transport_tpg.Config

func ParseFieldValue

func ParseFieldValue(url string, name string) string

ParseFieldValue extracts named part from resource url.

func RemoveTerraformAttributionLabel

func RemoveTerraformAttributionLabel(raw interface{}) interface{}

Remove the Terraform attribution label "goog-terraform-provisioned" from labels

Types

This section is empty.

Jump to

Keyboard shortcuts

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