models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package models represents data structure which are shared between packages. Changes made here will regenerate the protobuf definitions and maybe require an version bump for the sdk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	ID      string `hcl:"id,label"`
	Name    string `hcl:"name"`
	Short   string `hcl:"short"`
	Long    string `hcl:"long"`
	Link    string `hcl:"link"`
	Enabled bool   `hcl:"enabled"`
}

Rule represents a single lint check within a ruleset.

type Ruleset

type Ruleset struct {
	Name       string `hcl:"name,label"`
	Version    string `hcl:"version"`
	Repository string `hcl:"repository"`
	Enabled    bool   `hcl:"enabled"`
	Rules      []Rule `hcl:"rule,block"`
}

Ruleset represents a packaged set of rules that govern what tfvet checks for.

Jump to

Keyboard shortcuts

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