Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockGenericDataplane
- func (m *MockGenericDataplane) AddPolicy(policies *policies.NPMNetworkPolicy) error
- func (m *MockGenericDataplane) AddToLists(listMetadatas, setMetadatas []*ipsets.IPSetMetadata) error
- func (m *MockGenericDataplane) AddToSets(setMetadatas []*ipsets.IPSetMetadata, podMetadata *dataplane.PodMetadata) error
- func (m *MockGenericDataplane) ApplyDataPlane() error
- func (m *MockGenericDataplane) BootupDataplane() error
- func (m *MockGenericDataplane) CreateIPSets(setMetadatas []*ipsets.IPSetMetadata)
- func (m *MockGenericDataplane) DeleteIPSet(setMetadata *ipsets.IPSetMetadata, deleteOption util.DeleteOption)
- func (m *MockGenericDataplane) EXPECT() *MockGenericDataplaneMockRecorder
- func (m *MockGenericDataplane) FinishBootupPhase()
- func (m *MockGenericDataplane) GetAllIPSets() map[string]string
- func (m *MockGenericDataplane) GetAllPolicies() []string
- func (m *MockGenericDataplane) GetIPSet(setName string) *ipsets.IPSet
- func (m *MockGenericDataplane) RemoveFromList(listMetadata *ipsets.IPSetMetadata, setMetadatas []*ipsets.IPSetMetadata) error
- func (m *MockGenericDataplane) RemoveFromSets(setMetadatas []*ipsets.IPSetMetadata, podMetadata *dataplane.PodMetadata) error
- func (m *MockGenericDataplane) RemovePolicy(PolicyKey string) error
- func (m *MockGenericDataplane) RunPeriodicTasks()
- func (m *MockGenericDataplane) UpdatePolicy(policies *policies.NPMNetworkPolicy) error
- type MockGenericDataplaneMockRecorder
- func (mr *MockGenericDataplaneMockRecorder) AddPolicy(policies interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) AddToLists(listMetadatas, setMetadatas interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) AddToSets(setMetadatas, podMetadata interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) ApplyDataPlane() *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) BootupDataplane() *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) CreateIPSets(setMetadatas interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) DeleteIPSet(setMetadata, deleteOption interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) FinishBootupPhase() *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) GetAllIPSets() *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) GetAllPolicies() *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) GetIPSet(setName interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) RemoveFromList(listMetadata, setMetadatas interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) RemoveFromSets(setMetadatas, podMetadata interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) RemovePolicy(PolicyKey interface{}) *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) RunPeriodicTasks() *gomock.Call
- func (mr *MockGenericDataplaneMockRecorder) UpdatePolicy(policies interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGenericDataplane ¶
type MockGenericDataplane struct {
// contains filtered or unexported fields
}
MockGenericDataplane is a mock of GenericDataplane interface.
func NewMockGenericDataplane ¶
func NewMockGenericDataplane(ctrl *gomock.Controller) *MockGenericDataplane
NewMockGenericDataplane creates a new mock instance.
func (*MockGenericDataplane) AddPolicy ¶
func (m *MockGenericDataplane) AddPolicy(policies *policies.NPMNetworkPolicy) error
AddPolicy mocks base method.
func (*MockGenericDataplane) AddToLists ¶
func (m *MockGenericDataplane) AddToLists(listMetadatas, setMetadatas []*ipsets.IPSetMetadata) error
AddToLists mocks base method.
func (*MockGenericDataplane) AddToSets ¶
func (m *MockGenericDataplane) AddToSets(setMetadatas []*ipsets.IPSetMetadata, podMetadata *dataplane.PodMetadata) error
AddToSets mocks base method.
func (*MockGenericDataplane) ApplyDataPlane ¶
func (m *MockGenericDataplane) ApplyDataPlane() error
ApplyDataPlane mocks base method.
func (*MockGenericDataplane) BootupDataplane ¶
func (m *MockGenericDataplane) BootupDataplane() error
BootupDataplane mocks base method.
func (*MockGenericDataplane) CreateIPSets ¶
func (m *MockGenericDataplane) CreateIPSets(setMetadatas []*ipsets.IPSetMetadata)
CreateIPSets mocks base method.
func (*MockGenericDataplane) DeleteIPSet ¶
func (m *MockGenericDataplane) DeleteIPSet(setMetadata *ipsets.IPSetMetadata, deleteOption util.DeleteOption)
DeleteIPSet mocks base method.
func (*MockGenericDataplane) EXPECT ¶
func (m *MockGenericDataplane) EXPECT() *MockGenericDataplaneMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGenericDataplane) FinishBootupPhase ¶
func (m *MockGenericDataplane) FinishBootupPhase()
FinishBootupPhase mocks base method.
func (*MockGenericDataplane) GetAllIPSets ¶
func (m *MockGenericDataplane) GetAllIPSets() map[string]string
GetAllIPSets mocks base method.
func (*MockGenericDataplane) GetAllPolicies ¶
func (m *MockGenericDataplane) GetAllPolicies() []string
GetAllPolicies mocks base method.
func (*MockGenericDataplane) GetIPSet ¶
func (m *MockGenericDataplane) GetIPSet(setName string) *ipsets.IPSet
GetIPSet mocks base method.
func (*MockGenericDataplane) RemoveFromList ¶
func (m *MockGenericDataplane) RemoveFromList(listMetadata *ipsets.IPSetMetadata, setMetadatas []*ipsets.IPSetMetadata) error
RemoveFromList mocks base method.
func (*MockGenericDataplane) RemoveFromSets ¶
func (m *MockGenericDataplane) RemoveFromSets(setMetadatas []*ipsets.IPSetMetadata, podMetadata *dataplane.PodMetadata) error
RemoveFromSets mocks base method.
func (*MockGenericDataplane) RemovePolicy ¶
func (m *MockGenericDataplane) RemovePolicy(PolicyKey string) error
RemovePolicy mocks base method.
func (*MockGenericDataplane) RunPeriodicTasks ¶
func (m *MockGenericDataplane) RunPeriodicTasks()
RunPeriodicTasks mocks base method.
func (*MockGenericDataplane) UpdatePolicy ¶
func (m *MockGenericDataplane) UpdatePolicy(policies *policies.NPMNetworkPolicy) error
UpdatePolicy mocks base method.
type MockGenericDataplaneMockRecorder ¶
type MockGenericDataplaneMockRecorder struct {
// contains filtered or unexported fields
}
MockGenericDataplaneMockRecorder is the mock recorder for MockGenericDataplane.
func (*MockGenericDataplaneMockRecorder) AddPolicy ¶
func (mr *MockGenericDataplaneMockRecorder) AddPolicy(policies interface{}) *gomock.Call
AddPolicy indicates an expected call of AddPolicy.
func (*MockGenericDataplaneMockRecorder) AddToLists ¶
func (mr *MockGenericDataplaneMockRecorder) AddToLists(listMetadatas, setMetadatas interface{}) *gomock.Call
AddToLists indicates an expected call of AddToLists.
func (*MockGenericDataplaneMockRecorder) AddToSets ¶
func (mr *MockGenericDataplaneMockRecorder) AddToSets(setMetadatas, podMetadata interface{}) *gomock.Call
AddToSets indicates an expected call of AddToSets.
func (*MockGenericDataplaneMockRecorder) ApplyDataPlane ¶
func (mr *MockGenericDataplaneMockRecorder) ApplyDataPlane() *gomock.Call
ApplyDataPlane indicates an expected call of ApplyDataPlane.
func (*MockGenericDataplaneMockRecorder) BootupDataplane ¶
func (mr *MockGenericDataplaneMockRecorder) BootupDataplane() *gomock.Call
BootupDataplane indicates an expected call of BootupDataplane.
func (*MockGenericDataplaneMockRecorder) CreateIPSets ¶
func (mr *MockGenericDataplaneMockRecorder) CreateIPSets(setMetadatas interface{}) *gomock.Call
CreateIPSets indicates an expected call of CreateIPSets.
func (*MockGenericDataplaneMockRecorder) DeleteIPSet ¶
func (mr *MockGenericDataplaneMockRecorder) DeleteIPSet(setMetadata, deleteOption interface{}) *gomock.Call
DeleteIPSet indicates an expected call of DeleteIPSet.
func (*MockGenericDataplaneMockRecorder) FinishBootupPhase ¶
func (mr *MockGenericDataplaneMockRecorder) FinishBootupPhase() *gomock.Call
FinishBootupPhase indicates an expected call of FinishBootupPhase.
func (*MockGenericDataplaneMockRecorder) GetAllIPSets ¶
func (mr *MockGenericDataplaneMockRecorder) GetAllIPSets() *gomock.Call
GetAllIPSets indicates an expected call of GetAllIPSets.
func (*MockGenericDataplaneMockRecorder) GetAllPolicies ¶
func (mr *MockGenericDataplaneMockRecorder) GetAllPolicies() *gomock.Call
GetAllPolicies indicates an expected call of GetAllPolicies.
func (*MockGenericDataplaneMockRecorder) GetIPSet ¶
func (mr *MockGenericDataplaneMockRecorder) GetIPSet(setName interface{}) *gomock.Call
GetIPSet indicates an expected call of GetIPSet.
func (*MockGenericDataplaneMockRecorder) RemoveFromList ¶
func (mr *MockGenericDataplaneMockRecorder) RemoveFromList(listMetadata, setMetadatas interface{}) *gomock.Call
RemoveFromList indicates an expected call of RemoveFromList.
func (*MockGenericDataplaneMockRecorder) RemoveFromSets ¶
func (mr *MockGenericDataplaneMockRecorder) RemoveFromSets(setMetadatas, podMetadata interface{}) *gomock.Call
RemoveFromSets indicates an expected call of RemoveFromSets.
func (*MockGenericDataplaneMockRecorder) RemovePolicy ¶
func (mr *MockGenericDataplaneMockRecorder) RemovePolicy(PolicyKey interface{}) *gomock.Call
RemovePolicy indicates an expected call of RemovePolicy.
func (*MockGenericDataplaneMockRecorder) RunPeriodicTasks ¶
func (mr *MockGenericDataplaneMockRecorder) RunPeriodicTasks() *gomock.Call
RunPeriodicTasks indicates an expected call of RunPeriodicTasks.
func (*MockGenericDataplaneMockRecorder) UpdatePolicy ¶
func (mr *MockGenericDataplaneMockRecorder) UpdatePolicy(policies interface{}) *gomock.Call
UpdatePolicy indicates an expected call of UpdatePolicy.