MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / DeleteSet

Method DeleteSet

internal/firewalls/nftables/table.go:140–151  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

138}
139
140func (this *Table) DeleteSet(name string) error {
141 set, err := this.GetSet(name)
142 if err != nil {
143 if err == ErrSetNotFound {
144 return nil
145 }
146 return err
147 }
148
149 this.conn.Raw().DelSet(set.Raw())
150 return this.conn.Commit()
151}
152
153func (this *Table) Flush() error {
154 this.conn.Raw().FlushTable(this.rawTable)

Callers 1

TestTable_DeleteSetFunction · 0.80

Calls 3

GetSetMethod · 0.95
RawMethod · 0.45
CommitMethod · 0.45

Tested by 1

TestTable_DeleteSetFunction · 0.64