package testing
import "k8s.io/kubernetes/pkg/util/ipset/testing"
Index ¶
- type FakeIPSet
- func NewFake() *FakeIPSet
- func (*FakeIPSet) AddEntry(entry string, set string, ignoreExistErr bool) error
- func (*FakeIPSet) CreateSet(set *ipset.IPSet, ignoreExistErr bool) error
- func (*FakeIPSet) DelEntry(entry string, set string) error
- func (*FakeIPSet) DestroyAllSets() error
- func (*FakeIPSet) DestroySet(set string) error
- func (*FakeIPSet) FlushSet(set string) error
- func (*FakeIPSet) GetVersion() (string, error)
- func (*FakeIPSet) ListEntries(set string) ([]string, error)
- func (*FakeIPSet) ListSets() ([]string, error)
- func (*FakeIPSet) TestEntry(entry string, set string) (bool, error)
Types ¶
type FakeIPSet ¶
type FakeIPSet struct { Lines []byte }
FakeIPSet is a no-op implementation of ipset Interface
func NewFake ¶
func NewFake() *FakeIPSet
NewFake create a new fake ipset interface.
func (*FakeIPSet) AddEntry ¶
AddEntry is part of interface.
func (*FakeIPSet) CreateSet ¶
CreateSet is part of interface.
func (*FakeIPSet) DelEntry ¶
DelEntry is part of interface.
func (*FakeIPSet) DestroyAllSets ¶
DestroyAllSets is part of interface.
func (*FakeIPSet) DestroySet ¶
DestroySet is part of interface.
func (*FakeIPSet) FlushSet ¶
FlushSet is part of interface.
func (*FakeIPSet) GetVersion ¶
GetVersion is part of interface.
func (*FakeIPSet) ListEntries ¶
ListEntries is part of interface.
func (*FakeIPSet) ListSets ¶
ListSets is part of interface.
func (*FakeIPSet) TestEntry ¶
TestEntry is part of interface.
Source Files ¶
fake.go
- Version
- v1.9.6
- Published
- Mar 20, 2018
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 2 minutes ago –
Tools for package owners.