Documentation ¶
Overview ¶
Package fake is a fake datapath implementation. It does not implement any datapath specific concepts and is useful for mocking and testing.
Index ¶
- Variables
- func NewDatapath() datapath.Datapath
- func NewIPv4OnlyNodeAddressing() datapath.NodeAddressing
- func NewIPv6OnlyNodeAddressing() datapath.NodeAddressing
- func NewNodeAddressing() datapath.NodeAddressing
- func NewNodeHandler() datapath.NodeHandler
- type FakeNodeHandler
- func (n *FakeNodeHandler) AllocateNodeID(_ net.IP) uint16
- func (n *FakeNodeHandler) DumpNodeIDs() []*models.NodeID
- func (n *FakeNodeHandler) NodeAdd(newNode nodeTypes.Node) error
- func (n *FakeNodeHandler) NodeCleanNeighbors(migrateOnly bool)
- func (n *FakeNodeHandler) NodeConfigurationChanged(config datapath.LocalNodeConfiguration) error
- func (n *FakeNodeHandler) NodeDelete(node nodeTypes.Node) error
- func (n *FakeNodeHandler) NodeNeighDiscoveryEnabled() bool
- func (n *FakeNodeHandler) NodeNeighborRefresh(ctx context.Context, node nodeTypes.Node)
- func (n *FakeNodeHandler) NodeUpdate(oldNode, newNode nodeTypes.Node) error
- func (n *FakeNodeHandler) NodeValidateImplementation(node nodeTypes.Node) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewIPv4OnlyNodeAddressing ¶
func NewIPv4OnlyNodeAddressing() datapath.NodeAddressing
NewIPv4OnlyNodeAddressing returns a new fake node addressing where IPv6 is disabled
func NewIPv6OnlyNodeAddressing ¶
func NewIPv6OnlyNodeAddressing() datapath.NodeAddressing
NewIPv6OnlyNodeAddressing returns a new fake node addressing where IPv4 is disabled
func NewNodeAddressing ¶
func NewNodeAddressing() datapath.NodeAddressing
NewNodeAddressing returns a new fake node addressing
func NewNodeHandler ¶
func NewNodeHandler() datapath.NodeHandler
NewNodeHandler returns a fake NodeHandler that performs no actions
Types ¶
type FakeNodeHandler ¶
type FakeNodeHandler struct{}
func (*FakeNodeHandler) AllocateNodeID ¶ added in v1.11.14
func (n *FakeNodeHandler) AllocateNodeID(_ net.IP) uint16
func (*FakeNodeHandler) DumpNodeIDs ¶
func (n *FakeNodeHandler) DumpNodeIDs() []*models.NodeID
func (*FakeNodeHandler) NodeCleanNeighbors ¶
func (n *FakeNodeHandler) NodeCleanNeighbors(migrateOnly bool)
func (*FakeNodeHandler) NodeConfigurationChanged ¶
func (n *FakeNodeHandler) NodeConfigurationChanged(config datapath.LocalNodeConfiguration) error
func (*FakeNodeHandler) NodeDelete ¶
func (n *FakeNodeHandler) NodeDelete(node nodeTypes.Node) error
func (*FakeNodeHandler) NodeNeighDiscoveryEnabled ¶
func (n *FakeNodeHandler) NodeNeighDiscoveryEnabled() bool
func (*FakeNodeHandler) NodeNeighborRefresh ¶
func (n *FakeNodeHandler) NodeNeighborRefresh(ctx context.Context, node nodeTypes.Node)
func (*FakeNodeHandler) NodeUpdate ¶
func (n *FakeNodeHandler) NodeUpdate(oldNode, newNode nodeTypes.Node) error
func (*FakeNodeHandler) NodeValidateImplementation ¶
func (n *FakeNodeHandler) NodeValidateImplementation(node nodeTypes.Node) error
Click to show internal directories.
Click to hide internal directories.