rules

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RuleSortKeyFromTypeSHA

func RuleSortKeyFromTypeSHA(sha256 string, ruleType types.RuleType) string

Types

type SantaRule

type SantaRule struct {
	RuleType      types.RuleType `dynamodbav:"RuleType"`
	Policy        types.Policy   `dynamodbav:"Policy"`
	SHA256        string         `dynamodbav:"SHA256"`
	CustomMessage string         `dynamodbav:"CustomMessage,omitempty"`
}

SantaRule is the trimmed down concept of a rule These fields are commonly shared across different sub-types of rules:

- global rules: Source of truth for rules that are intended to be distributed to all endpoints - feed rules: A timeline-based feed of rule "diffs" that endpoints can download - machine rules: Rules intended only to be deployed to specific endpoints

Jump to

Keyboard shortcuts

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