rules

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRulesTree

func BuildRulesTree(org, token, hostName string, tree treeprint.Tree) error

BuildRulesTree builds a tree for rules

func PushRules added in v1.0.0

func PushRules(pushDir, org, insightsToken, host string, deleteMissing, dryrun bool) error

PushRules pushes automation rules to insights

Types

type CompareResults

type CompareResults struct {
	RuleInsert []Rule
	RuleUpdate []Rule
	RuleDelete []Rule
}

CompareResults holds the rules for inserting, updating, and deleting

type Rule

type Rule struct {
	ID          int
	Cluster     string
	Name        string
	Description string
	Context     string
	ReportType  string `json:"reportType" yaml:"reportType"`
	Repository  string
	Action      string
}

Rule is the struct to hold the information for a rule

Jump to

Keyboard shortcuts

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