reducer

package
v0.0.0-...-d14d10f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reduce

func Reduce(m builder.ResourceMap)

Reduce removes nested resources with a single field:

Example:

"allow": {
	 Type:     schema.TypeList,
  Optional: true,
	 MaxItems: 1,
	 Elem: &schema.Resource{
		Schema: SchemaBoolValue(), // Which has the single field value bool
	 },
},

is replaced with

"allow": {
  Type: schema.TypeBool,
  Optional: true,
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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