github.com/opentofu/opentofu@v1.7.1/internal/legacy/helper/schema/valuetype.go (about) 1 // Copyright (c) The OpenTofu Authors 2 // SPDX-License-Identifier: MPL-2.0 3 // Copyright (c) 2023 HashiCorp, Inc. 4 // SPDX-License-Identifier: MPL-2.0 5 6 package schema 7 8 //go:generate go run golang.org/x/tools/cmd/stringer -type=ValueType valuetype.go 9 10 // ValueType is an enum of the type that can be represented by a schema. 11 type ValueType int 12 13 const ( 14 TypeInvalid ValueType = iota 15 TypeBool 16 TypeInt 17 TypeFloat 18 TypeString 19 TypeList 20 TypeMap 21 TypeSet 22 typeObject 23 ) 24 25 // NOTE: ValueType has more functions defined on it in schema.go. We can't 26 // put them here because we reference other files.