outputs

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package outputs provides the rules for the outputs category. Add the rules to the below slice to enable them.

Index

Constants

This section is empty.

Variables

View Source
var Rules = []tflint.Rule{
	NewRequiredOutputRule("required_output_rmfr7", "resource_id", "https://azure.github.io/Azure-Verified-Modules/specs/shared/#id-rmfr7---category-outputs---minimum-required-outputs"),
}

Functions

This section is empty.

Types

type RequiredOutputRule

type RequiredOutputRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

RequiredOutputRule is the struct that represents a rule that check for the correct usage of an interface.

func NewRequiredOutputRule

func NewRequiredOutputRule(ruleName, requiredOutputName, link string) *RequiredOutputRule

NewRequiredOutputRule returns a new rule with the given variable.

func (*RequiredOutputRule) Check

func (vcr *RequiredOutputRule) Check(r tflint.Runner) error

Check checks whether the module satisfies the interface. It will search for a variable with the same name as the interface. It will check the type, default value and nullable attributes.

func (*RequiredOutputRule) Enabled

func (or *RequiredOutputRule) Enabled() bool

Enabled returns whether the rule is enabled.

func (or *RequiredOutputRule) Link() string

Link returns the link to the rule documentation.

func (*RequiredOutputRule) Name

func (or *RequiredOutputRule) Name() string

Name returns the rule name.

func (*RequiredOutputRule) Severity

func (or *RequiredOutputRule) Severity() tflint.Severity

Severity returns the severity of the rule.

Jump to

Keyboard shortcuts

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