auth0

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool added in v0.1.1

func Bool(d Data, key string) (b *bool)

Bool accesses the value held by key and type asserts it to a pointer to a bool.

func Int added in v0.1.1

func Int(d Data, key string) (i *int)

Int accesses the value held by key and type asserts it to a pointer to a int.

func List added in v0.1.8

func List(d Data, key string) *iterator

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.

func Map added in v0.1.1

func Map(d Data, key string) (m map[string]interface{})

Map accesses the value held by key and type asserts it to a map.

func Provider

func Provider() *schema.Provider

func Slice added in v0.1.1

func Slice(d Data, key string) (s []interface{})

Slice accesses the value held by key and type asserts it to a slice.

func String added in v0.1.1

func String(d Data, key string) (s *string)

String accesses the value held by key and type asserts it to a pointer to a string.

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

func (md MapData) GetOkExists(key string) (interface{}, bool)

func (MapData) HasChange added in v0.1.9

func (md MapData) HasChange(key string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL