mock

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBGPRouterManager

type MockBGPRouterManager struct {
	ConfigurePeers_ func(ctx context.Context, policy *v2alpha1.CiliumBGPPeeringPolicy, cstate *agent.ControlPlaneState) error
	GetPeers_       func(ctx context.Context) ([]*models.BgpPeer, error)
	Stop_           func()
}

func (*MockBGPRouterManager) ConfigurePeers

func (*MockBGPRouterManager) GetPeers

func (m *MockBGPRouterManager) GetPeers(ctx context.Context) ([]*models.BgpPeer, error)

func (*MockBGPRouterManager) Stop

func (m *MockBGPRouterManager) Stop()

type MockNodeLister

type MockNodeLister struct {
	List_ func(selector k8sLabels.Selector) (ret []*v1.Node, err error)
	Get_  func(name string) (*v1.Node, error)
	v1listers.NodeListerExpansion
}

func (*MockNodeLister) Get

func (m *MockNodeLister) Get(name string) (*v1.Node, error)

func (*MockNodeLister) List

func (m *MockNodeLister) List(selector k8sLabels.Selector) (ret []*v1.Node, err error)

Jump to

Keyboard shortcuts

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