acctest

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileConfig

func CompileConfig(header string, fieldMaps ...map[string]interface{}) string

func CompileDataSourceConfig

func CompileDataSourceConfig(dataSourceType, dataSourceName string, fieldMaps ...map[string]interface{}) string

func CompileLocalsConfig

func CompileLocalsConfig(fieldMaps ...map[string]interface{}) string

func CompileProviderConfig

func CompileProviderConfig(providerName string, fieldMaps ...map[string]interface{}) string

func CompileResourceConfig

func CompileResourceConfig(resourceType, resourceName string, fieldMaps ...map[string]interface{}) string

func ConfigValue

func ConfigValue(in interface{}) string

ConfigValue attempts to convert the provided input to a Terraform config safe representation of its value

func DataSourceHeader

func DataSourceHeader(dataSourceType, dataSourceName string) string

func DefaultConfigValueFuncs added in v0.1.1

func DefaultConfigValueFuncs() map[string]ConfigValueFunc

func JoinConfigs

func JoinConfigs(confs ...string) string

func MergeMaps

func MergeMaps(maps ...map[string]interface{}) map[string]interface{}

func MergeMapsRooted

func MergeMapsRooted(root map[string]interface{}, maps ...map[string]interface{}) map[string]interface{}

func ProviderHeader

func ProviderHeader(name string) string

func ResourceHeader

func ResourceHeader(resourceType, resourceName string) string

func SetConfigValueFunc added in v0.1.1

func SetConfigValueFunc(t interface{}, fn ConfigValueFunc)

Types

type ConfigLiteral

type ConfigLiteral string

type ConfigValueFunc added in v0.1.1

type ConfigValueFunc func(interface{}) string

func GetConfigValueFunc added in v0.1.1

func GetConfigValueFunc(t interface{}) (ConfigValueFunc, bool)

Jump to

Keyboard shortcuts

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