Documentation ¶
Index ¶
- func Bool(d Data, key string) (b *bool)
- func Int(d Data, key string) (i *int)
- func List(d Data, key string) *iterator
- func Map(d Data, key string) (m map[string]interface{})
- func Provider() *schema.Provider
- func Slice(d Data, key string) (s []interface{})
- func String(d Data, key string) (s *string)
- type Data
- type MapData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶ added in v0.1.1
Bool accesses the value held by key and type asserts it to a pointer to a bool.
func Int ¶ added in v0.1.1
Int accesses the value held by key and type asserts it to a pointer to a int.
func List ¶ added in v0.1.8
List accesses the value held by key and returns an iterator able to go over the items of the list.
The iterator can go over all the items in the list or just the first one, which is a common use case for defining nested schemas in Terraform.
Types ¶
type Data ¶ added in v0.1.8
type Data interface { // HasChange reports whether or not the given key has been changed. HasChange(key string) bool // GetOkExists returns the data for a given key and whether or not the key // has been set to a non-zero value. This is only useful for determining // if boolean attributes have been set, if they are Optional but do not // have a Default value. GetOkExists(key string) (interface{}, bool) }
Data generalises schema.ResourceData so that we can reuse the accessor methods defined below.
type MapData ¶ added in v0.1.8
type MapData map[string]interface{}
MapData wraps a map satisfying the Data interface, so it can be used in the accessor methods defined below.
func (MapData) GetOkExists ¶ added in v0.1.9
Source Files ¶
- provider.go
- resource_auth0_client.go
- resource_auth0_client_grant.go
- resource_auth0_connection.go
- resource_auth0_custom_domain.go
- resource_auth0_email.go
- resource_auth0_email_template.go
- resource_auth0_resource_server.go
- resource_auth0_rule.go
- resource_auth0_rule_config.go
- resource_auth0_tenant.go
- resource_auth0_user.go
- resource_data.go
Click to show internal directories.
Click to hide internal directories.