Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigSchema = map[string]*schema.Attribute{ "email": {Type: schema.TypeString}, "password": {Type: schema.TypeString}, "other_config": {Type: schema.TypeBool}, }
Functions ¶
func ConfigInstance ¶
func ConfigInstance() interface{}
Types ¶
type SampleRESTConfig ¶
type SampleRESTConfig struct { Email *string `cty:"email"` Password *string `cty:"password"` OtherConfig *bool `cty:"other_config"` }
This uses go-cty: https://github.com/zclconf/go-cty/blob/main/docs/gocty.md#converting-to-and-from-structs
func GetConfig ¶
func GetConfig(connection *plugin.Connection) SampleRESTConfig
GetConfig :: retrieve and cast connection config from query data
func (SampleRESTConfig) String ¶
func (c SampleRESTConfig) String() string
Click to show internal directories.
Click to hide internal directories.