Documentation
¶
Overview ¶
Package schema provides types used to define the plugin.ConnectionConfigSchema
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SchemaToObjectSpec ¶
func SchemaToObjectSpec(schema map[string]*Attribute) hcldec.ObjectSpec
Types ¶
type Attribute ¶
type Attribute struct {
// name - this will be inferred by the schema map key
Name string
// Type is the type of the value and must be one of the ValueType values.
// TypeBool - bool
// TypeInt - int
// TypeFloat - float64
// TypeString - string
// TypeList - []interface{}
Type ValueType
// Elem represents the element type. This may only be set for only set for TypeList.
Elem *Attribute
// is this attribute required
Required bool
}
Click to show internal directories.
Click to hide internal directories.