linter

package
v0.0.0-...-bb43cbb Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linter

type Linter struct {
	Config     *shared.Configuration
	Plan       *plans.Plan
	Violations []Violation
}

func New

func New(config *shared.Configuration, plan *plans.Plan) (*Linter, []error)

func (*Linter) Lint

func (linter *Linter) Lint() []Violation

func (*Linter) LintChange

func (linter *Linter) LintChange(change plans.ResourceInstanceChangeSrc) error

type Violation

type Violation struct {
	Reason    string
	Change    *plans.ResourceInstanceChange
	Attribute shared.RuleAttributeDefinition
	Value     *cty.Value
}

Jump to

Keyboard shortcuts

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