MCPcopy Index your code

hub / github.com/HewlettPackard/terraschema / functions

Functions51 in github.com/HewlettPackard/terraschema

↓ 7 callersFunctiongetNodeFromType
(name string, typeInterface any, nullable bool, options CreateSchemaOptions)
pkg/jsonschema/type.go:20
↓ 7 callersFunctionisExpressionVarName
(ex hcl.Expression, name string)
pkg/jsonschema/validation_util.go:14
↓ 6 callersFunctionExpressionToJSONObject
ExpressionToJSONObject converts an HCL expression to an `any` type so that can be marshaled to JSON later.
pkg/reader/value.go:12
↓ 5 callersFunctionGetVarMap
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 callersFunctionargumentsOfCall
(ex hcl.Expression, functionName string, args int)
pkg/jsonschema/validation_util.go:49
↓ 3 callersFunctionCreateSchema
(path string, options CreateSchemaOptions)
pkg/jsonschema/json-schema.go:24
↓ 3 callersFunctionGetTypeConstraint
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 callersFunctionprintToString
(in hcl.Expression, f *hcl.File)
pkg/reader/reader.go:133
↓ 2 callersMethodMarshalJSON
()
pkg/json/json.go:71
↓ 2 callersFunctioncanUpdateField
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 callersFunctionfilterMissingExpression
(in hcl.Expression)
pkg/reader/reader.go:123
↓ 2 callersFunctionisExpressionLengthVarName
(ex hcl.Expression, name string)
pkg/jsonschema/validation_util.go:40
↓ 1 callersFunctionExecute
Execute command with the following flags: - disallow-additional-properties: disallow additional properties in schema (default is false) - overwrite: o
cmd/cmd.go:58
↓ 1 callersFunctionExportVariables
(path string, options ExportVariablesOptions)
pkg/json/json.go:46
↓ 1 callersFunctioncreateNode
nolint:cyclop
pkg/jsonschema/json-schema.go:78
↓ 1 callersFunctionflipSign
(sign *hclsyntax.Operation)
pkg/jsonschema/validation_util.go:223
↓ 1 callersFunctiongetErrorLocationsFromValidationErr
(t *testing.T, valErr *jsonschema.ValidationError)
pkg/jsonschema/json-schema_test.go:104
↓ 1 callersFunctiongetGenericNode
(name string, typeInterface any, nullable bool, options CreateSchemaOptions)
pkg/jsonschema/type.go:46
↓ 1 callersFunctiongetList
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:223
↓ 1 callersFunctiongetMap
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:207
↓ 1 callersFunctiongetNodeFromSlice
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:126
↓ 1 callersFunctiongetNullableNode
(name string, typeInterface any, options CreateSchemaOptions)
pkg/jsonschema/type.go:97
↓ 1 callersFunctiongetObject
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:148
↓ 1 callersFunctiongetSet
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:240
↓ 1 callersFunctiongetTranslatedVariableFromBlock
(block *hcl.Block, file *hcl.File)
pkg/reader/reader.go:85
↓ 1 callersFunctiongetTuple
(in []any, options CreateSchemaOptions)
pkg/jsonschema/type.go:258
↓ 1 callersFunctioninputFileChecks
()
cmd/cmd.go:137
↓ 1 callersFunctionoutputFileChecks
()
cmd/cmd.go:155
↓ 1 callersFunctionparseComparisonExpression
(ex *hclsyntax.BinaryOpExpr, name string, node *map[string]any, nodeType string)
pkg/jsonschema/validation_util.go:92
↓ 1 callersFunctionparseConditionToNode
(ex hcl.Expression, _ string, name string, m *map[string]any)
pkg/jsonschema/validation.go:21
↓ 1 callersFunctionparseEqualityExpression
(ex *hclsyntax.BinaryOpExpr, name string, enum *[]any)
pkg/jsonschema/validation_util.go:260
↓ 1 callersFunctionparseProperties
()
cmd/cmd.go:254
↓ 1 callersFunctionperformOp
(op *hclsyntax.Operation, node *map[string]any, num float64, nodeType string)
pkg/jsonschema/validation_util.go:130
↓ 1 callersFunctionwalkComparison
(ex hcl.Expression, name string, node *map[string]any, nodeType string)
pkg/jsonschema/validation_util.go:64
↓ 1 callersFunctionwalkIsOneOf
(ex hcl.Expression, name string, enum *[]any)
pkg/jsonschema/validation_util.go:237
FunctionTestCreateSchema
(t *testing.T)
pkg/json/json_test.go:13
FunctionTestCreateSchema
(t *testing.T)
pkg/jsonschema/json-schema_test.go:17
FunctionTestCreateSchemaWithRootProperties
(t *testing.T)
pkg/jsonschema/json-schema_test.go:56
FunctionTestExpressionToJSONObject_Default
(t *testing.T)
pkg/reader/value_test.go:15
FunctionTestGetTypeConstraint
(t *testing.T)
pkg/reader/type-constraint_test.go:15
FunctionTestGetVarMap_Required
(t *testing.T)
pkg/reader/reader_test.go:10
FunctionTestSampleInput
nolint:funlen,maintidx
pkg/jsonschema/json-schema_test.go:135
FunctioncanRegex
(ex hcl.Expression, name string, t string)
pkg/jsonschema/validation.go:114
Functioncomparison
(ex hcl.Expression, name string, t string)
pkg/jsonschema/validation.go:94
Functioncontains
(ex hcl.Expression, name string, _ string)
pkg/jsonschema/validation.go:67
Functioninit
()
cmd/cmd.go:62
FunctionisOneOf
(ex hcl.Expression, name string, _ string)
pkg/jsonschema/validation.go:53
Functionmain
()
main.go:11
FunctionpreRunCommand
(cmd *cobra.Command, args []string)
cmd/cmd.go:125
FunctionrunCommand
(cmd *cobra.Command, args []string)
cmd/cmd.go:182
FunctionsortInterfaceAlphabetical
(a, b any)
pkg/jsonschema/json-schema.go:139