testing

package
v1.14.3 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/querier (interfaces: AgentNetworkPolicyInfoQuerier,AgentMulticastInfoQuerier,EgressQuerier)

Generated by this command:

mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/querier/testing/mock_querier.go -package testing antrea.io/antrea/pkg/querier AgentNetworkPolicyInfoQuerier,AgentMulticastInfoQuerier,EgressQuerier

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAgentMulticastInfoQuerier added in v1.7.0

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

MockAgentMulticastInfoQuerier is a mock of AgentMulticastInfoQuerier interface.

func NewMockAgentMulticastInfoQuerier added in v1.7.0

func NewMockAgentMulticastInfoQuerier(ctrl *gomock.Controller) *MockAgentMulticastInfoQuerier

NewMockAgentMulticastInfoQuerier creates a new mock instance.

func (*MockAgentMulticastInfoQuerier) CollectIGMPReportNPStats added in v1.7.0

func (m *MockAgentMulticastInfoQuerier) CollectIGMPReportNPStats() (map[types0.UID]map[string]*types.RuleMetric, map[types0.UID]map[string]*types.RuleMetric)

CollectIGMPReportNPStats mocks base method.

func (*MockAgentMulticastInfoQuerier) EXPECT added in v1.7.0

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

func (*MockAgentMulticastInfoQuerier) GetAllPodsStats added in v1.7.0

GetAllPodsStats mocks base method.

func (*MockAgentMulticastInfoQuerier) GetGroupPods added in v1.7.0

func (m *MockAgentMulticastInfoQuerier) GetGroupPods() map[string][]v1beta2.PodReference

GetGroupPods mocks base method.

func (*MockAgentMulticastInfoQuerier) GetPodStats added in v1.7.0

func (m *MockAgentMulticastInfoQuerier) GetPodStats(arg0, arg1 string) *multicast.PodTrafficStats

GetPodStats mocks base method.

type MockAgentMulticastInfoQuerierMockRecorder added in v1.7.0

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

MockAgentMulticastInfoQuerierMockRecorder is the mock recorder for MockAgentMulticastInfoQuerier.

func (*MockAgentMulticastInfoQuerierMockRecorder) CollectIGMPReportNPStats added in v1.7.0

func (mr *MockAgentMulticastInfoQuerierMockRecorder) CollectIGMPReportNPStats() *gomock.Call

CollectIGMPReportNPStats indicates an expected call of CollectIGMPReportNPStats.

func (*MockAgentMulticastInfoQuerierMockRecorder) GetAllPodsStats added in v1.7.0

func (mr *MockAgentMulticastInfoQuerierMockRecorder) GetAllPodsStats() *gomock.Call

GetAllPodsStats indicates an expected call of GetAllPodsStats.

func (*MockAgentMulticastInfoQuerierMockRecorder) GetGroupPods added in v1.7.0

GetGroupPods indicates an expected call of GetGroupPods.

func (*MockAgentMulticastInfoQuerierMockRecorder) GetPodStats added in v1.7.0

func (mr *MockAgentMulticastInfoQuerierMockRecorder) GetPodStats(arg0, arg1 any) *gomock.Call

GetPodStats indicates an expected call of GetPodStats.

type MockAgentNetworkPolicyInfoQuerier

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

MockAgentNetworkPolicyInfoQuerier is a mock of AgentNetworkPolicyInfoQuerier interface.

func NewMockAgentNetworkPolicyInfoQuerier

func NewMockAgentNetworkPolicyInfoQuerier(ctrl *gomock.Controller) *MockAgentNetworkPolicyInfoQuerier

NewMockAgentNetworkPolicyInfoQuerier creates a new mock instance.

func (*MockAgentNetworkPolicyInfoQuerier) EXPECT

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

func (*MockAgentNetworkPolicyInfoQuerier) GetAddressGroupNum

func (m *MockAgentNetworkPolicyInfoQuerier) GetAddressGroupNum() int

GetAddressGroupNum mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetAddressGroups

func (m *MockAgentNetworkPolicyInfoQuerier) GetAddressGroups() []v1beta2.AddressGroup

GetAddressGroups mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetAppliedNetworkPolicies

func (m *MockAgentNetworkPolicyInfoQuerier) GetAppliedNetworkPolicies(arg0, arg1 string, arg2 *querier.NetworkPolicyQueryFilter) []v1beta2.NetworkPolicy

GetAppliedNetworkPolicies mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetAppliedToGroupNum

func (m *MockAgentNetworkPolicyInfoQuerier) GetAppliedToGroupNum() int

GetAppliedToGroupNum mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetAppliedToGroups

func (m *MockAgentNetworkPolicyInfoQuerier) GetAppliedToGroups() []v1beta2.AppliedToGroup

GetAppliedToGroups mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetControllerConnectionStatus

func (m *MockAgentNetworkPolicyInfoQuerier) GetControllerConnectionStatus() bool

GetControllerConnectionStatus mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetNetworkPolicies

GetNetworkPolicies mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetNetworkPolicyByRuleFlowID

func (m *MockAgentNetworkPolicyInfoQuerier) GetNetworkPolicyByRuleFlowID(arg0 uint32) *v1beta2.NetworkPolicyReference

GetNetworkPolicyByRuleFlowID mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetNetworkPolicyNum

func (m *MockAgentNetworkPolicyInfoQuerier) GetNetworkPolicyNum() int

GetNetworkPolicyNum mocks base method.

func (*MockAgentNetworkPolicyInfoQuerier) GetRuleByFlowID

func (m *MockAgentNetworkPolicyInfoQuerier) GetRuleByFlowID(arg0 uint32) *types.PolicyRule

GetRuleByFlowID mocks base method.

type MockAgentNetworkPolicyInfoQuerierMockRecorder

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

MockAgentNetworkPolicyInfoQuerierMockRecorder is the mock recorder for MockAgentNetworkPolicyInfoQuerier.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAddressGroupNum

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAddressGroupNum() *gomock.Call

GetAddressGroupNum indicates an expected call of GetAddressGroupNum.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAddressGroups

GetAddressGroups indicates an expected call of GetAddressGroups.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAppliedNetworkPolicies

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAppliedNetworkPolicies(arg0, arg1, arg2 any) *gomock.Call

GetAppliedNetworkPolicies indicates an expected call of GetAppliedNetworkPolicies.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAppliedToGroupNum

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAppliedToGroupNum() *gomock.Call

GetAppliedToGroupNum indicates an expected call of GetAppliedToGroupNum.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAppliedToGroups

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetAppliedToGroups() *gomock.Call

GetAppliedToGroups indicates an expected call of GetAppliedToGroups.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetControllerConnectionStatus

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetControllerConnectionStatus() *gomock.Call

GetControllerConnectionStatus indicates an expected call of GetControllerConnectionStatus.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetNetworkPolicies

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetNetworkPolicies(arg0 any) *gomock.Call

GetNetworkPolicies indicates an expected call of GetNetworkPolicies.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetNetworkPolicyByRuleFlowID

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetNetworkPolicyByRuleFlowID(arg0 any) *gomock.Call

GetNetworkPolicyByRuleFlowID indicates an expected call of GetNetworkPolicyByRuleFlowID.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetNetworkPolicyNum

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetNetworkPolicyNum() *gomock.Call

GetNetworkPolicyNum indicates an expected call of GetNetworkPolicyNum.

func (*MockAgentNetworkPolicyInfoQuerierMockRecorder) GetRuleByFlowID

func (mr *MockAgentNetworkPolicyInfoQuerierMockRecorder) GetRuleByFlowID(arg0 any) *gomock.Call

GetRuleByFlowID indicates an expected call of GetRuleByFlowID.

type MockEgressQuerier added in v1.13.0

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

MockEgressQuerier is a mock of EgressQuerier interface.

func NewMockEgressQuerier added in v1.13.0

func NewMockEgressQuerier(ctrl *gomock.Controller) *MockEgressQuerier

NewMockEgressQuerier creates a new mock instance.

func (*MockEgressQuerier) EXPECT added in v1.13.0

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

func (*MockEgressQuerier) GetEgress added in v1.13.0

func (m *MockEgressQuerier) GetEgress(arg0, arg1 string) (string, string, error)

GetEgress mocks base method.

func (*MockEgressQuerier) GetEgressIPByMark added in v1.13.0

func (m *MockEgressQuerier) GetEgressIPByMark(arg0 uint32) (string, error)

GetEgressIPByMark mocks base method.

type MockEgressQuerierMockRecorder added in v1.13.0

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

MockEgressQuerierMockRecorder is the mock recorder for MockEgressQuerier.

func (*MockEgressQuerierMockRecorder) GetEgress added in v1.13.0

func (mr *MockEgressQuerierMockRecorder) GetEgress(arg0, arg1 any) *gomock.Call

GetEgress indicates an expected call of GetEgress.

func (*MockEgressQuerierMockRecorder) GetEgressIPByMark added in v1.13.0

func (mr *MockEgressQuerierMockRecorder) GetEgressIPByMark(arg0 any) *gomock.Call

GetEgressIPByMark indicates an expected call of GetEgressIPByMark.

Jump to

Keyboard shortcuts

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