github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/legacy/helper/schema/valuetype.go (about)

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