github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/circonus/types.go (about) 1 package circonus 2 3 // NOTE(sean): One of the objectives of the use of types is to ensure that based 4 // on aesthetics alone are very few locations where type assertions or casting 5 // in the main resource files is required (mainly when interacting with the 6 // external API structs). As a rule of thumb, all type assertions should happen 7 // in the utils file and casting is only done at assignment time when storing a 8 // result to a struct. Said differently, contained tedium should enable 9 // compiler enforcement of types and easy verification. 10 11 type apiCheckType string 12 13 type attrDescr string 14 type attrDescrs map[schemaAttr]attrDescr 15 16 type schemaAttr string 17 18 type metricID string 19 20 type validString string 21 type validStringValues []validString