Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/HewlettPackard/terraschema
/ functions
Functions
51 in github.com/HewlettPackard/terraschema
⨍
Functions
51
◇
Types & classes
13
↓ 7 callers
Function
getNodeFromType
(name string, typeInterface any, nullable bool, options CreateSchemaOptions)
pkg/jsonschema/type.go:20
↓ 7 callers
Function
isExpressionVarName
(ex hcl.Expression, name string)
pkg/jsonschema/validation_util.go:14
↓ 6 callers
Function
ExpressionToJSONObject
ExpressionToJSONObject converts an HCL expression to an `any` type so that can be marshaled to JSON later.
pkg/reader/value.go:12
↓ 5 callers
Function
GetVarMap
GetVarMap reads all .tf files in a directory and returns a map of variable names to their translated values. For the purpose of this application, all
pkg/reader/reader.go:34
↓ 4 callers
Function
argumentsOfCall
(ex hcl.Expression, functionName string, args int)
pkg/jsonschema/validation_util.go:49
↓ 3 callers
Function
CreateSchema
(path string, options CreateSchemaOptions)
pkg/jsonschema/json-schema.go:24
↓ 3 callers
Function
GetTypeConstraint
GetTypeConstraint converts the expression into a type constraint and marshals it to JSON. Returns the JSON output as a []byte. More info on exactly ho
pkg/reader/type-contraint.go:16
↓ 3 callers
Function
printToString
(in hcl.Expression, f *hcl.File)
pkg/reader/reader.go:133
↓ 2 callers
Method
MarshalJSON
()
pkg/json/json.go:71
↓ 2 callers
Function
canUpdateField
each of the minimum and maximum fields must pass this validation step before they are updated the field must not exist or - if the field exists but ca
pkg/jsonschema/validation_util.go:201
↓ 2 callers
Function
filterMissingExpression
(in hcl.Expression)
pkg/reader/reader.go:123
↓ 2 callers
Function
isExpressionLengthVarName
(ex hcl.Expression, name string)
pkg/jsonschema/validation_util.go:40
↓ 1 callers
Function
Execute
Execute command with the following flags: - disallow-additional-properties: disallow additional properties in schema (default is false) - overwrite: o
cmd/cmd.go:58
↓ 1 callers
Function
ExportVariables
(path string, options ExportVariablesOptions)
pkg/json/json.go:46
↓ 1 callers
Function
createNode
nolint:cyclop
pkg/jsonschema/json-schema.go:78
↓ 1 callers
Function
flipSign
(sign *hclsyntax.Operation)
pkg/jsonschema/validation_util.go:223
↓ 1 callers
Function
getErrorLocationsFromValidationErr
(t *testing.T, valErr *jsonschema.ValidationError)
pkg/jsonschema/json-schema_test.go:104
↓ 1 callers
Function
getGenericNode
(name string, typeInterface any, nullable bool, options CreateSchemaOptions)
pkg/jsonschema/type.go:46
↓ 1 callers
Function
getList
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:223
↓ 1 callers
Function
getMap
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:207
↓ 1 callers
Function
getNodeFromSlice
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:126
↓ 1 callers
Function
getNullableNode
(name string, typeInterface any, options CreateSchemaOptions)
pkg/jsonschema/type.go:97
↓ 1 callers
Function
getObject
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:148
↓ 1 callers
Function
getSet
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:240
↓ 1 callers
Function
getTranslatedVariableFromBlock
(block *hcl.Block, file *hcl.File)
pkg/reader/reader.go:85
↓ 1 callers
Function
getTuple
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:258
↓ 1 callers
Function
inputFileChecks
()
cmd/cmd.go:137
↓ 1 callers
Function
outputFileChecks
()
cmd/cmd.go:155
↓ 1 callers
Function
parseComparisonExpression
(ex *hclsyntax.BinaryOpExpr, name string, node *map[string]any, nodeType string)
pkg/jsonschema/validation_util.go:92
↓ 1 callers
Function
parseConditionToNode
(ex hcl.Expression, _ string, name string, m *map[string]any)
pkg/jsonschema/validation.go:21
↓ 1 callers
Function
parseEqualityExpression
(ex *hclsyntax.BinaryOpExpr, name string, enum *[]any)
pkg/jsonschema/validation_util.go:260
↓ 1 callers
Function
parseProperties
()
cmd/cmd.go:254
↓ 1 callers
Function
performOp
(op *hclsyntax.Operation, node *map[string]any, num float64, nodeType string)
pkg/jsonschema/validation_util.go:130
↓ 1 callers
Function
walkComparison
(ex hcl.Expression, name string, node *map[string]any, nodeType string)
pkg/jsonschema/validation_util.go:64
↓ 1 callers
Function
walkIsOneOf
(ex hcl.Expression, name string, enum *[]any)
pkg/jsonschema/validation_util.go:237
Function
TestCreateSchema
(t *testing.T)
pkg/json/json_test.go:13
Function
TestCreateSchema
(t *testing.T)
pkg/jsonschema/json-schema_test.go:17
Function
TestCreateSchemaWithRootProperties
(t *testing.T)
pkg/jsonschema/json-schema_test.go:56
Function
TestExpressionToJSONObject_Default
(t *testing.T)
pkg/reader/value_test.go:15
Function
TestGetTypeConstraint
(t *testing.T)
pkg/reader/type-constraint_test.go:15
Function
TestGetVarMap_Required
(t *testing.T)
pkg/reader/reader_test.go:10
Function
TestSampleInput
nolint:funlen,maintidx
pkg/jsonschema/json-schema_test.go:135
Function
canRegex
(ex hcl.Expression, name string, t string)
pkg/jsonschema/validation.go:114
Function
comparison
(ex hcl.Expression, name string, t string)
pkg/jsonschema/validation.go:94
Function
contains
(ex hcl.Expression, name string, _ string)
pkg/jsonschema/validation.go:67
Function
init
()
cmd/cmd.go:62
Function
isOneOf
(ex hcl.Expression, name string, _ string)
pkg/jsonschema/validation.go:53
Function
main
()
main.go:11
Function
preRunCommand
(cmd *cobra.Command, args []string)
cmd/cmd.go:125
Function
runCommand
(cmd *cobra.Command, args []string)
cmd/cmd.go:182
Function
sortInterfaceAlphabetical
(a, b any)
pkg/jsonschema/json-schema.go:139