 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type FakeIPSet
- func (f *FakeIPSet) AddEntry(entry string, set *ipset.IPSet, ignoreExistErr bool) error
- func (f *FakeIPSet) CreateSet(set *ipset.IPSet, ignoreExistErr bool) error
- func (f *FakeIPSet) DelEntry(entry string, set string) error
- func (f *FakeIPSet) DestroyAllSets() error
- func (f *FakeIPSet) DestroySet(set string) error
- func (f *FakeIPSet) FlushSet(set string) error
- func (f *FakeIPSet) GetVersion() (string, error)
- func (f *FakeIPSet) ListEntries(set string) ([]string, error)
- func (f *FakeIPSet) ListSets() ([]string, error)
- func (f *FakeIPSet) TestEntry(entry string, set string) (bool, error)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeIPSet ¶
type FakeIPSet struct {
	// version of ipset util
	Version string
	// The key of Sets map is the ip set name
	Sets map[string]*ipset.IPSet
	// The key of Entries map is the ip set name where the entries exists
	Entries map[string]sets.String
}
    FakeIPSet is a no-op implementation of ipset Interface
func (*FakeIPSet) DestroyAllSets ¶
DestroyAllSets is part of interface.
func (*FakeIPSet) DestroySet ¶
DestroySet is part of interface. It deletes both the entries and the set itself.
func (*FakeIPSet) FlushSet ¶
FlushSet is part of interface. It deletes all entries from a named set but keeps the set itself.
func (*FakeIPSet) GetVersion ¶
GetVersion is part of interface.
func (*FakeIPSet) ListEntries ¶
ListEntries is part of interface.
 Click to show internal directories. 
   Click to hide internal directories.