checks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(layers []*data.Layer) []data.Check

func Dry added in v0.2.0

func Dry() (data.Check, error)

func IterateUseForEach

func IterateUseForEach(layers []*data.Layer) (data.Check, error)

func LayerStaticChecks added in v0.2.0

func LayerStaticChecks() []data.Check

func ModuleStaticChecks added in v0.2.0

func ModuleStaticChecks() []data.Check

func Profile

func Profile(codebase data.Codebase, verbose bool)

func ProviderInModule

func ProviderInModule(modules map[string]data.TerraformModule) (data.Check, error)

func RefreshTime

func RefreshTime(layers []*data.Layer) (data.Check, error)

func RemoteModuleVersion

func RemoteModuleVersion(modules map[string]data.TerraformModule) (data.Check, error)

func RequiredProviderVersionOperatorInModules

func RequiredProviderVersionOperatorInModules(modules map[string]data.TerraformModule) (data.Check, error)

func ResourceNamingThisThese

func ResourceNamingThisThese(modules map[string]data.TerraformModule) (data.Check, error)

func SnakeCase

func SnakeCase(modules map[string]data.TerraformModule) (data.Check, error)

func StateChecks

func StateChecks(layers []*data.Layer) []data.Check

func Stuttering

func Stuttering(modules map[string]data.TerraformModule) (data.Check, error)

func VarContainsDescription

func VarContainsDescription(modules map[string]data.TerraformModule) (data.Check, error)

func VarNumberMatchesType

func VarNumberMatchesType(modules map[string]data.TerraformModule) (data.Check, error)

func VarTypeAny

func VarTypeAny(modules map[string]data.TerraformModule) (data.Check, error)

Types

type Change

type Change struct {
	Actions []string `json:"actions"`
}

type Input added in v0.2.0

type Input struct {
	Inputs *cty.Value `hcl:"inputs,attr"`
}

We use a custom struct and not the one from Terragrunt because it's simplier

type ResourceChange

type ResourceChange struct {
	Address      string `json:"address"`
	Mode         string `json:"mode"`
	Type         string `json:"type"`
	Name         string `json:"name"`
	Index        string `json:"index"`
	ProviderName string `json:"provider_name"`
	Change       Change `json:"change"`
}

type ResourceChanges

type ResourceChanges struct {
	ResourceChanges []ResourceChange `json:"resource_changes"`
}

Jump to

Keyboard shortcuts

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