glue

package
v0.0.0-...-0fd8e10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayToSet

func ArrayToSet(slice []interface{}) map[interface{}]bool

func ArrayToStrings

func ArrayToStrings(o []interface{}) []string

func PrintResourceAttributes

func PrintResourceAttributes(s *terraform.State, n string) error

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

func SetSeed

func SetSeed()

func StringsToArray

func StringsToArray(s []string) []interface{}

func StringsToSet

func StringsToSet(slice []string) map[string]bool

Types

type Config

type Config struct {
	EnvPath string
}

Config represents the provider configuration

func (*Config) Client

func (c *Config) Client() (interface{}, error)

Client returns the configured provider client.

type KeyFilter

type KeyFilter struct {
	Input interface{}
	Func  MapKeyFilterFunc
}

type MapFilter

type MapFilter struct {
	Input  map[string]interface{}
	Output map[string]interface{}
	// contains filtered or unexported fields
}

MapFilter ...

func (*MapFilter) Apply

func (m *MapFilter) Apply()

Apply ..

func (*MapFilter) ApplyKeyFilter

func (m *MapFilter) ApplyKeyFilter(
	filterType MapKeyFilterType,
	key string,
	value interface{}) bool

func (*MapFilter) KeyFilter

func (m *MapFilter) KeyFilter(filterType MapKeyFilterType) (interface{}, MapKeyFilterFunc, bool)

func (*MapFilter) SetKeyFilter

func (m *MapFilter) SetKeyFilter(name string, values []interface{}) bool

type MapKeyFilterFunc

type MapKeyFilterFunc func(key string, input interface{}) bool

MapKeyFilterFunc ...

type MapKeyFilterType

type MapKeyFilterType int

MapKeyFilterType is an enum of the type of map key filter.

const (
	// TypeKeyEquals ...
	TypeKeyEquals MapKeyFilterType = iota
	// TypeKeyContains ...
	TypeKeyContains
	// TypeKeyPrefix ...
	TypeKeyPrefix
	// TypeKeySuffix ...
	TypeKeySuffix
)

Directories

Path Synopsis
test-commands

Jump to

Keyboard shortcuts

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