mock_iptableswrapper

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_iptableswrapper is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIPTablesIface

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

MockIPTablesIface is a mock of IPTablesIface interface.

func NewMockIPTablesIface

func NewMockIPTablesIface(ctrl *gomock.Controller) *MockIPTablesIface

NewMockIPTablesIface creates a new mock instance.

func (*MockIPTablesIface) Append

func (m *MockIPTablesIface) Append(arg0, arg1 string, arg2 ...string) error

Append mocks base method.

func (*MockIPTablesIface) AppendUnique

func (m *MockIPTablesIface) AppendUnique(arg0, arg1 string, arg2 ...string) error

AppendUnique mocks base method.

func (*MockIPTablesIface) ChainExists added in v1.16.2

func (m *MockIPTablesIface) ChainExists(arg0, arg1 string) (bool, error)

ChainExists mocks base method.

func (*MockIPTablesIface) ClearChain

func (m *MockIPTablesIface) ClearChain(arg0, arg1 string) error

ClearChain mocks base method.

func (*MockIPTablesIface) Delete

func (m *MockIPTablesIface) Delete(arg0, arg1 string, arg2 ...string) error

Delete mocks base method.

func (*MockIPTablesIface) DeleteChain

func (m *MockIPTablesIface) DeleteChain(arg0, arg1 string) error

DeleteChain mocks base method.

func (*MockIPTablesIface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIPTablesIface) Exists

func (m *MockIPTablesIface) Exists(arg0, arg1 string, arg2 ...string) (bool, error)

Exists mocks base method.

func (*MockIPTablesIface) HasRandomFully

func (m *MockIPTablesIface) HasRandomFully() bool

HasRandomFully mocks base method.

func (*MockIPTablesIface) Insert

func (m *MockIPTablesIface) Insert(arg0, arg1 string, arg2 int, arg3 ...string) error

Insert mocks base method.

func (*MockIPTablesIface) List

func (m *MockIPTablesIface) List(arg0, arg1 string) ([]string, error)

List mocks base method.

func (*MockIPTablesIface) ListChains

func (m *MockIPTablesIface) ListChains(arg0 string) ([]string, error)

ListChains mocks base method.

func (*MockIPTablesIface) NewChain

func (m *MockIPTablesIface) NewChain(arg0, arg1 string) error

NewChain mocks base method.

type MockIPTablesIfaceMockRecorder

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

MockIPTablesIfaceMockRecorder is the mock recorder for MockIPTablesIface.

func (*MockIPTablesIfaceMockRecorder) Append

func (mr *MockIPTablesIfaceMockRecorder) Append(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Append indicates an expected call of Append.

func (*MockIPTablesIfaceMockRecorder) AppendUnique

func (mr *MockIPTablesIfaceMockRecorder) AppendUnique(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

AppendUnique indicates an expected call of AppendUnique.

func (*MockIPTablesIfaceMockRecorder) ChainExists added in v1.16.2

func (mr *MockIPTablesIfaceMockRecorder) ChainExists(arg0, arg1 interface{}) *gomock.Call

ChainExists indicates an expected call of ChainExists.

func (*MockIPTablesIfaceMockRecorder) ClearChain

func (mr *MockIPTablesIfaceMockRecorder) ClearChain(arg0, arg1 interface{}) *gomock.Call

ClearChain indicates an expected call of ClearChain.

func (*MockIPTablesIfaceMockRecorder) Delete

func (mr *MockIPTablesIfaceMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIPTablesIfaceMockRecorder) DeleteChain

func (mr *MockIPTablesIfaceMockRecorder) DeleteChain(arg0, arg1 interface{}) *gomock.Call

DeleteChain indicates an expected call of DeleteChain.

func (*MockIPTablesIfaceMockRecorder) Exists

func (mr *MockIPTablesIfaceMockRecorder) Exists(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockIPTablesIfaceMockRecorder) HasRandomFully

func (mr *MockIPTablesIfaceMockRecorder) HasRandomFully() *gomock.Call

HasRandomFully indicates an expected call of HasRandomFully.

func (*MockIPTablesIfaceMockRecorder) Insert

func (mr *MockIPTablesIfaceMockRecorder) Insert(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockIPTablesIfaceMockRecorder) List

func (mr *MockIPTablesIfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockIPTablesIfaceMockRecorder) ListChains

func (mr *MockIPTablesIfaceMockRecorder) ListChains(arg0 interface{}) *gomock.Call

ListChains indicates an expected call of ListChains.

func (*MockIPTablesIfaceMockRecorder) NewChain

func (mr *MockIPTablesIfaceMockRecorder) NewChain(arg0, arg1 interface{}) *gomock.Call

NewChain indicates an expected call of NewChain.

type MockIptables

type MockIptables struct {
	// DataplaneState is a map from table name to chain name to slice of rulespecs
	DataplaneState map[string]map[string][][]string
}

func NewMockIptables

func NewMockIptables() *MockIptables

func (*MockIptables) Append

func (ipt *MockIptables) Append(table, chain string, rulespec ...string) error

func (*MockIptables) AppendUnique

func (ipt *MockIptables) AppendUnique(table, chain string, rulespec ...string) error

func (*MockIptables) ChainExists added in v1.16.2

func (ipt *MockIptables) ChainExists(table, chain string) (bool, error)

func (*MockIptables) ClearChain

func (ipt *MockIptables) ClearChain(table, chain string) error

func (*MockIptables) Delete

func (ipt *MockIptables) Delete(table, chainName string, rulespec ...string) error

func (*MockIptables) DeleteChain

func (ipt *MockIptables) DeleteChain(table, chain string) error

func (*MockIptables) Exists

func (ipt *MockIptables) Exists(table, chainName string, rulespec ...string) (bool, error)

func (*MockIptables) HasRandomFully

func (ipt *MockIptables) HasRandomFully() bool

func (*MockIptables) Insert

func (ipt *MockIptables) Insert(table, chain string, pos int, rulespec ...string) error

func (*MockIptables) List

func (ipt *MockIptables) List(table, chain string) ([]string, error)

func (*MockIptables) ListChains

func (ipt *MockIptables) ListChains(table string) ([]string, error)

func (*MockIptables) NewChain

func (ipt *MockIptables) NewChain(table, chain string) error

Jump to

Keyboard shortcuts

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