Documentation
¶
Index ¶
- func DefaultConfigDir() string
- func HookIsActive(session registry.Session, now time.Time) bool
- func ShouldDetectScreen(session registry.Session, now time.Time) bool
- func SupportsScreen(harness registry.Harness) bool
- type Authority
- type Decision
- type HookEvaluation
- type Loader
- type Manifest
- type Policy
- type Rule
- type RuleEvidence
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigDir ¶
func DefaultConfigDir() string
func SupportsScreen ¶
Types ¶
type Decision ¶
type Decision struct {
Activity registry.Activity `json:"activity"`
Reason string `json:"reason"`
RuleID string `json:"rule_id,omitempty"`
ManifestSource string `json:"manifest_source"`
ManifestVersion int `json:"manifest_version"`
Warning string `json:"warning,omitempty"`
Evidence []RuleEvidence `json:"evidence"`
}
type HookEvaluation ¶
func EvaluateHook ¶
func EvaluateHook(session registry.Session, now time.Time) HookEvaluation
type Manifest ¶
type Rule ¶
type Rule struct {
ID string `json:"id" toml:"id"`
State string `json:"state" toml:"state"`
Priority int `json:"priority" toml:"priority"`
Region string `json:"region" toml:"region"`
CaseSensitive bool `json:"case_sensitive" toml:"case_sensitive"`
All []string `json:"all,omitempty" toml:"all"`
Any []string `json:"any,omitempty" toml:"any"`
None []string `json:"none,omitempty" toml:"none"`
RegexAll []string `json:"regex_all,omitempty" toml:"regex_all"`
RegexAny []string `json:"regex_any,omitempty" toml:"regex_any"`
RegexNone []string `json:"regex_none,omitempty" toml:"regex_none"`
TitleAny []string `json:"title_any,omitempty" toml:"title_any"`
TitleRegexAny []string `json:"title_regex_any,omitempty" toml:"title_regex_any"`
// contains filtered or unexported fields
}
type RuleEvidence ¶
Click to show internal directories.
Click to hide internal directories.