Documentation ¶
Index ¶
- Constants
- func ConvertInterfaceToStringArray(data any, maxWidth int) ([][][]string, bool)
- func CreateGoTemplatingFuncMap(removeDangerousFuncs bool) template.FuncMap
- func CtyValueToHCLString(ctyVal cty.Value) string
- func FirstOrDefault(defaultVal interface{}, list interface{}) interface{}
- func FromJson(data string) (interface{}, error)
- func GetStringArrayFromMap(item map[string]interface{}, maxWidth int) [][]string
- func JsonToHcl(jsonString string) (*string, error)
- func NewArray() []interface{}
- func ObjectToHcl(obj interface{}) *string
- func PrefixStringArray(prefix string, users []interface{}) []string
- func PrefixSuffixStringArray(prefix string, suffix string, users []interface{}) []string
- func PrintMarkdownTable(headers []string, data any, maxWidth int) string
- func PrintObjectTable(headers []string, data any, maxWidth int) string
- func RemoveFromStringArray(toRemove string, users []interface{}) []string
- func RenderTemplateValues(ctx context.Context, templateContent string, path string, dataSource any, ...) ([]byte, error)
- func Select(propertyName string, data interface{}) (interface{}, error)
- func SuffixStringArray(suffix string, users []interface{}) []string
- func ToDnsString(s string) string
- func Where(propertyName string, propertyValue string, data interface{}) (map[string]interface{}, error)
- type RenderTemplateOptions
Constants ¶
View Source
const ( LeftDelimPropertyName = "leftDelim" RightDelimPropertyName = "rightDelim" IgnoreTemplateErrors = "ignoreTemplateErrors" )
Variables ¶
This section is empty.
Functions ¶
func CtyValueToHCLString ¶
func FirstOrDefault ¶
func FirstOrDefault(defaultVal interface{}, list interface{}) interface{}
func GetStringArrayFromMap ¶
func ObjectToHcl ¶
func ObjectToHcl(obj interface{}) *string
func PrefixStringArray ¶
func PrefixSuffixStringArray ¶
func RemoveFromStringArray ¶
func RenderTemplateValues ¶
func SuffixStringArray ¶
func ToDnsString ¶
Types ¶
type RenderTemplateOptions ¶
type RenderTemplateOptions struct { LeftDelim string RightDelim string IgnoreTemplateErrors bool RemoveDangerousFuncs bool }
func NewRenderTemplateOptions ¶
func NewRenderTemplateOptions() RenderTemplateOptions
Click to show internal directories.
Click to hide internal directories.