testing

package
v1.9.0-rancher1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

func (*FakeIPSet) AddEntry(entry string, set string, ignoreExistErr bool) error

AddEntry is part of interface.

func (*FakeIPSet) CreateSet

func (*FakeIPSet) CreateSet(set *ipset.IPSet, ignoreExistErr bool) error

CreateSet is part of interface.

func (*FakeIPSet) DelEntry

func (*FakeIPSet) DelEntry(entry string, set string) error

DelEntry is part of interface.

func (*FakeIPSet) DestroyAllSets

func (*FakeIPSet) DestroyAllSets() error

DestroyAllSets is part of interface.

func (*FakeIPSet) DestroySet

func (*FakeIPSet) DestroySet(set string) error

DestroySet is part of interface.

func (*FakeIPSet) FlushSet

func (*FakeIPSet) FlushSet(set string) error

FlushSet is part of interface.

func (*FakeIPSet) GetVersion

func (*FakeIPSet) GetVersion() (string, error)

GetVersion is part of interface.

func (*FakeIPSet) ListEntries

func (*FakeIPSet) ListEntries(set string) ([]string, error)

ListEntries is part of interface.

func (*FakeIPSet) ListSets

func (*FakeIPSet) ListSets() ([]string, error)

ListSets is part of interface.

func (*FakeIPSet) TestEntry

func (*FakeIPSet) TestEntry(entry string, set string) (bool, error)

TestEntry is part of interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL