rules

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RuleSortKeyFromTypeIdentifier added in v1.0.1

func RuleSortKeyFromTypeIdentifier(identifier string, ruleType types.RuleType) string

func RuleSortKeyFromTypeSHA

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

@deprecated

func ValidSha256 added in v1.0.2

func ValidSha256(sha256 string) bool

func ValidSigningID added in v1.0.2

func ValidSigningID(signingID string) bool

func ValidTeamID added in v1.0.2

func ValidTeamID(teamID string) bool

Types

type SantaRule

type SantaRule struct {
	RuleType      types.RuleType `dynamodbav:"RuleType" json:"rule_type"`
	Policy        types.Policy   `dynamodbav:"Policy" json:"policy"`
	SHA256        string         `dynamodbav:"SHA256,omitempty" json:"sha256,omitempty"` // @deprecated - Use Identifier instead
	Identifier    string         `dynamodbav:"Identifier" json:"identifier"`
	CustomMessage string         `dynamodbav:"CustomMessage,omitempty" json:"custom_msg,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