Versions in this module Expand all Collapse all v0 v0.2.0 Apr 23, 2026 Changes in this version + type CompensatingControl struct + func NewCompensatingControl(tenantID shared.ID, name string, controlType ControlType, ...) (*CompensatingControl, error) + func ReconstituteCompensatingControl(data CompensatingControlData) *CompensatingControl + func (c *CompensatingControl) Activate() + func (c *CompensatingControl) ControlType() ControlType + func (c *CompensatingControl) CreatedAt() time.Time + func (c *CompensatingControl) Deactivate() + func (c *CompensatingControl) Description() string + func (c *CompensatingControl) ExpiresAt() *time.Time + func (c *CompensatingControl) ID() shared.ID + func (c *CompensatingControl) IsEffective() bool + func (c *CompensatingControl) LastTestedAt() *time.Time + func (c *CompensatingControl) Name() string + func (c *CompensatingControl) RecordTest(result TestResult, evidence string) + func (c *CompensatingControl) ReductionFactor() float64 + func (c *CompensatingControl) SetDescription(desc string) + func (c *CompensatingControl) SetReductionFactor(factor float64) error + func (c *CompensatingControl) Status() ControlStatus + func (c *CompensatingControl) TenantID() shared.ID + func (c *CompensatingControl) TestEvidence() string + func (c *CompensatingControl) TestResult() *TestResult + type CompensatingControlData struct + ControlType ControlType + CreatedAt time.Time + CreatedBy *shared.ID + Description string + ExpiresAt *time.Time + ID shared.ID + LastTestedAt *time.Time + Name string + ReductionFactor float64 + Status ControlStatus + TenantID shared.ID + TestEvidence string + TestResult *TestResult + UpdatedAt time.Time + type ControlStatus string + const ControlStatusActive + const ControlStatusExpired + const ControlStatusInactive + const ControlStatusUntested + type ControlType string + const ControlTypeDetection + const ControlTypeIdentity + const ControlTypeOther + const ControlTypeRuntime + const ControlTypeSegmentation + type TestResult string + const TestResultFail + const TestResultPartial + const TestResultPass