type Fake …
type FakeTable …
type FakeChain …
type FakeSet …
type FakeMap …
func NewFake(family Family, table string) *Fake { … }
var _ …
func (fake *Fake) List(_ context.Context, objectType string) ([]string, error) { … }
func (fake *Fake) ListRules(_ context.Context, chain string) ([]*Rule, error) { … }
func (fake *Fake) ListElements(_ context.Context, objectType, name string) ([]*Element, error) { … }
func (fake *Fake) NewTransaction() *Transaction { … }
func (fake *Fake) Run(_ context.Context, tx *Transaction) error { … }
func (fake *Fake) Check(_ context.Context, tx *Transaction) error { … }
func (fake *Fake) run(tx *Transaction) (*FakeTable, error) { … }
func checkExists(verb verb, objectType, name string, exists bool) error { … }
func checkRuleRefs(rule *Rule, table *FakeTable) error { … }
func checkElementRefs(element *Element, table *FakeTable) error { … }
func (fake *Fake) Dump() string { … }
func (fake *Fake) ParseDump(data string) (err error) { … }
func sortKeys[K ~string, V any](m map[K]V) []K { … }
func findRule(rules []*Rule, handle int) int { … }
func findElement(elements []*Element, key []string) int { … }
func (table *FakeTable) copy() *FakeTable { … }
func (s *FakeSet) FindElement(key ...string) *Element { … }
func (m *FakeMap) FindElement(key ...string) *Element { … }