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

Method DeleteChain

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

Source from the content-addressed store, hash-verified

80}
81
82func (this *Table) DeleteChain(name string) error {
83 chain, err := this.GetChain(name)
84 if err != nil {
85 if err == ErrChainNotFound {
86 return nil
87 }
88 return err
89 }
90 this.conn.Raw().DelChain(chain.Raw())
91 return this.conn.Commit()
92}
93
94func (this *Table) GetSet(name string) (*Set, error) {
95 rawSet, err := this.conn.Raw().GetSetByName(this.rawTable, name)

Callers 1

TestTable_DeleteChainFunction · 0.80

Calls 3

GetChainMethod · 0.95
RawMethod · 0.45
CommitMethod · 0.45

Tested by 1

TestTable_DeleteChainFunction · 0.64