kubernetes/pkg/proxy/ipvs/ipset/testing/fake.go

type FakeIPSet

// NewFake create a new fake ipset interface - it initialize the FakeIPSet.
func NewFake(version string) *FakeIPSet {}

// GetVersion is part of interface.
func (f *FakeIPSet) GetVersion() (string, error) {}

// FlushSet is part of interface.  It deletes all entries from a named set but keeps the set itself.
func (f *FakeIPSet) FlushSet(set string) error {}

// DestroySet is part of interface.  It deletes both the entries and the set itself.
func (f *FakeIPSet) DestroySet(set string) error {}

// DestroyAllSets is part of interface.
func (f *FakeIPSet) DestroyAllSets() error {}

// CreateSet is part of interface.
func (f *FakeIPSet) CreateSet(set *ipset.IPSet, ignoreExistErr bool) error {}

// AddEntry is part of interface.
func (f *FakeIPSet) AddEntry(entry string, set *ipset.IPSet, ignoreExistErr bool) error {}

// DelEntry is part of interface.
func (f *FakeIPSet) DelEntry(entry string, set string) error {}

// TestEntry is part of interface.
func (f *FakeIPSet) TestEntry(entry string, set string) (bool, error) {}

// ListEntries is part of interface.
func (f *FakeIPSet) ListEntries(set string) ([]string, error) {}

// ListSets is part of interface.
func (f *FakeIPSet) ListSets() ([]string, error) {}

var _