policydiff

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextCarrier

type ContextCarrier struct {
	// contains filtered or unexported fields
}

func NewContextCarrier

func NewContextCarrier() *ContextCarrier

func (*ContextCarrier) CarryRequest

func (c *ContextCarrier) CarryRequest(key, value string)

func (*ContextCarrier) Clear

func (c *ContextCarrier) Clear()

func (*ContextCarrier) GetAll

func (c *ContextCarrier) GetAll() map[string]string

func (*ContextCarrier) GetResponse

func (c *ContextCarrier) GetResponse(key string) string

type PolicyChange

type PolicyChange struct {
	Type      string    `json:"type"`
	RuleID    string    `json:"rule_id"`
	OldValue  string    `json:"old_value,omitempty"`
	NewValue  string    `json:"new_value,omitempty"`
	Timestamp time.Time `json:"timestamp"`
}

type PolicyDiffLogger

type PolicyDiffLogger struct {
	// contains filtered or unexported fields
}

func NewPolicyDiffLogger

func NewPolicyDiffLogger() *PolicyDiffLogger

func (*PolicyDiffLogger) Count

func (l *PolicyDiffLogger) Count() int

func (*PolicyDiffLogger) ExportJSON

func (l *PolicyDiffLogger) ExportJSON() ([]byte, error)

func (*PolicyDiffLogger) GetChanges

func (l *PolicyDiffLogger) GetChanges() []PolicyChange

func (*PolicyDiffLogger) LogAdded

func (l *PolicyDiffLogger) LogAdded(ruleID, value string)

func (*PolicyDiffLogger) LogChanged

func (l *PolicyDiffLogger) LogChanged(ruleID, oldVal, newVal string)

func (*PolicyDiffLogger) LogRemoved

func (l *PolicyDiffLogger) LogRemoved(ruleID, value string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL