Documentation
¶
Index ¶
- func InsertionPosition(snapshot filter.Snapshot, desiredMarkers []string, targetMarker string) (int64, bool)
- func ManagedOrderDrift(snapshot filter.Snapshot, desiredMarkers []string) (map[string]struct{}, bool)
- func NextManagedOrderChange(snapshot filter.Snapshot, desiredMarkers []string) (string, int, bool, error)
- func ObservedByMarker(snapshot filter.Snapshot, marker string) (filter.ObservedRule, int, bool)
- func ObservedRule(observed filter.ObservedRule) filter.FirewallRule
- func ReasonMessage(code ReasonCode) string
- func StatesEqual[T any](left, right []T, key func(T) string) bool
- func SupportsManagedOrder(provider filter.Provider) bool
- type Desired
- type Item
- type Outcome
- type ReasonCode
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertionPosition ¶
func ManagedOrderDrift ¶
func NextManagedOrderChange ¶
func ObservedByMarker ¶
func ObservedRule ¶
func ObservedRule(observed filter.ObservedRule) filter.FirewallRule
func ReasonMessage ¶
func ReasonMessage(code ReasonCode) string
func StatesEqual ¶
func SupportsManagedOrder ¶
Types ¶
type ReasonCode ¶
type ReasonCode string
const ( ReasonInvalidPolicy ReasonCode = "invalid_policy" ReasonAlreadyExists ReasonCode = "already_exists_in_target" ReasonOnlyExistsInTarget ReasonCode = "only_exists_in_target" ReasonManagedOnlyInTarget ReasonCode = "managed_only_exists_in_target" ReasonUnsafeRemoval ReasonCode = "unsafe_managed_rule_removal" ReasonReadOnlyRule ReasonCode = "read_only_rule" )
Click to show internal directories.
Click to hide internal directories.