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
- type FakeNodeHandler
- 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
- func (n *FakeNodeHandler) RestoreNodeIDs()
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
Types ¶
type FakeNodeHandler ¶
type FakeNodeHandler struct{}
func NewNodeHandler ¶
func NewNodeHandler() *FakeNodeHandler
NewNodeHandler returns a fake NodeHandler that performs no actions
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
func (*FakeNodeHandler) RestoreNodeIDs ¶
func (n *FakeNodeHandler) RestoreNodeIDs()
Click to show internal directories.
Click to hide internal directories.