mockprovider

package
v6.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

nolint

nolint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIpset

type MockIpset struct {
	// contains filtered or unexported fields
}

Mock of Ipset interface

func NewMockIpset

func NewMockIpset(ctrl *gomock.Controller) *MockIpset

func (*MockIpset) Add

func (_m *MockIpset) Add(entry string, timeout int) error

func (*MockIpset) AddOption

func (_m *MockIpset) AddOption(entry string, option string, timeout int) error

func (*MockIpset) Del

func (_m *MockIpset) Del(entry string) error

func (*MockIpset) Destroy

func (_m *MockIpset) Destroy() error

func (*MockIpset) EXPECT

func (_m *MockIpset) EXPECT() *_MockIpsetRecorder

func (*MockIpset) Flush

func (_m *MockIpset) Flush() error

func (*MockIpset) Test

func (_m *MockIpset) Test(entry string) (bool, error)

type MockIpsetProvider

type MockIpsetProvider struct {
	// contains filtered or unexported fields
}

Mock of IpsetProvider interface

func NewMockIpsetProvider

func NewMockIpsetProvider(ctrl *gomock.Controller) *MockIpsetProvider

func (*MockIpsetProvider) DestroyAll

func (_m *MockIpsetProvider) DestroyAll() error

func (*MockIpsetProvider) EXPECT

func (_m *MockIpsetProvider) EXPECT() *_MockIpsetProviderRecorder

func (*MockIpsetProvider) NewIpset

func (_m *MockIpsetProvider) NewIpset(name string, hasht string, p *ipset.Params) (provider.Ipset, error)

type MockIptablesProvider

type MockIptablesProvider struct {
	// contains filtered or unexported fields
}

Mock of IptablesProvider interface

func NewMockIptablesProvider

func NewMockIptablesProvider(ctrl *gomock.Controller) *MockIptablesProvider

func (*MockIptablesProvider) Append

func (_m *MockIptablesProvider) Append(table string, chain string, rulespec ...string) error

func (*MockIptablesProvider) ClearChain

func (_m *MockIptablesProvider) ClearChain(table string, chain string) error

func (*MockIptablesProvider) Delete

func (_m *MockIptablesProvider) Delete(table string, chain string, rulespec ...string) error

func (*MockIptablesProvider) DeleteChain

func (_m *MockIptablesProvider) DeleteChain(table string, chain string) error

func (*MockIptablesProvider) EXPECT

func (_m *MockIptablesProvider) EXPECT() *_MockIptablesProviderRecorder

func (*MockIptablesProvider) Insert

func (_m *MockIptablesProvider) Insert(table string, chain string, pos int, rulespec ...string) error

func (*MockIptablesProvider) ListChains

func (_m *MockIptablesProvider) ListChains(table string) ([]string, error)

func (*MockIptablesProvider) NewChain

func (_m *MockIptablesProvider) NewChain(table string, chain string) error

Jump to

Keyboard shortcuts

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