schemamapcompositelit

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MPL-2.0 Imports: 6 Imported by: 12

README

passes/helper/schema/schemamapcompositelit

This pass only works with Terraform schema maps that are fully defined:

Schema: map[string]*schema.Schema{
    "attr": {
        Type:         schema.TypeString,
        Optional:     true,
        Computed:     true,
        ValidateFunc: /* ... */,
    },
},

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "schemamapcompositelit",
	Doc:  "find map[string]*schema.Schema literals for later passes",
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
	Run:        run,
	ResultType: reflect.TypeOf([]*ast.CompositeLit{}),
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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