utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertInterfaceListToStringList added in v0.4.0

func ConvertInterfaceListToStringList(list []interface{}) []string

ConvertInterfaceListToStringList converts a list of interfaces to a list of strings

func GetJSON added in v0.4.0

func GetJSON(query string, json interface{}) ([]interface{}, error)

GetJSON returns the result of a jq query on a json object

func GetValueOfExpression added in v0.3.1

func GetValueOfExpression(expression *tfjson.Expression, tfPlan *tfjson.Plan, configModuleOptional ...*tfjson.ConfigModule) (interface{}, error)

func InitWithConfig added in v0.3.0

func InitWithConfig(customConfigFilePath string)

InitWithConfig initializes the configuration with a custom config file

func InitWithDefaultConfig added in v0.3.0

func InitWithDefaultConfig()

InitWithDefaultConfig initializes the configuration with the default config file

func LoadPlan added in v0.3.2

func LoadPlan(planFilePath string) *tfjson.Plan

func ParseToInt added in v0.4.0

func ParseToInt(value interface{}) (int, error)

ParseToInt converts to an int an interface that could be int, float or string

Types

This section is empty.

Jump to

Keyboard shortcuts

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