github.com/iaas-resource-provision/iaas-rpc@v1.0.7-0.20211021023331-ed21f798c408/internal/legacy/helper/schema/valuetype.go (about) 1 package schema 2 3 //go:generate go run golang.org/x/tools/cmd/stringer -type=ValueType valuetype.go 4 5 // ValueType is an enum of the type that can be represented by a schema. 6 type ValueType int 7 8 const ( 9 TypeInvalid ValueType = iota 10 TypeBool 11 TypeInt 12 TypeFloat 13 TypeString 14 TypeList 15 TypeMap 16 TypeSet 17 typeObject 18 ) 19 20 // NOTE: ValueType has more functions defined on it in schema.go. We can't 21 // put them here because we reference other files.