Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommands ¶
Types ¶
type AssessRequest ¶ added in v0.12.0
type AssessResponse ¶ added in v0.12.0
type AssessResponse struct {
Decision string `json:"decision"` // "ALLOW" or "HALT"
DecisionID string `json:"decision_id"`
PolicyHash string `json:"policy_hash,omitempty"`
Action string `json:"action,omitempty"`
Payload any `json:"payload,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
type DenyResponse ¶ added in v0.12.0
type DenyResponse struct {
Decision string `json:"decision"` // "HALT"
DecisionID string `json:"decision_id"`
PolicyHash string `json:"policy_hash,omitempty"`
RuleID string `json:"rule_id,omitempty"`
Tier string `json:"tier,omitempty"`
Reasons []string `json:"reasons"`
ProofTree string `json:"proof_tree,omitempty"`
}
type ExplainRequest ¶ added in v0.12.0
type ExplainResponse ¶ added in v0.12.0
type HealthResponse ¶ added in v0.12.0
type PolicyResponse ¶ added in v0.12.0
type ServerState ¶ added in v0.12.0
ServerState tracks the active client, policy path, and cryptographic policy fingerprint.
func (*ServerState) GetPolicyHash ¶ added in v0.12.0
func (s *ServerState) GetPolicyHash() string
func (*ServerState) SetPolicyHash ¶ added in v0.12.0
func (s *ServerState) SetPolicyHash(h string)
Click to show internal directories.
Click to hide internal directories.