Documentation
¶
Index ¶
Constants ¶
View Source
const ( CoverageProtected = "protected" CoverageUnprotected = "unprotected" CoverageUnknown = "unknown" )
View Source
const ( PolicyPostureAllow = "allow" PolicyPostureDeny = "deny" PolicyPostureUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
Detected bool
DefaultAction string
Rules map[string]string
SourceFiles []string
Ambiguous bool
}
Policy is the normalized repo-level gateway policy posture.
func LoadPolicy ¶
LoadPolicy parses all recognized gateway config files in root and returns one normalized policy.
type Result ¶
type Result struct {
Coverage string
PolicyPosture string
DefaultAction string
ReasonCode string
GatewaySources []string
}
Result is a normalized gateway coverage decision for one declaration.
func EvaluateCoverage ¶
EvaluateCoverage determines coverage posture for one declaration using normalized policy.
Click to show internal directories.
Click to hide internal directories.