fake

package
v1.8.2 Latest Latest
Warning

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

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

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

Constants

This section is empty.

Variables

View Source
var (
	IPv4InternalAddress = net.ParseIP("2.2.2.2")
	IPv4NodePortAddress = net.ParseIP("3.3.3.3")

	IPv6InternalAddress = net.ParseIP("f00d::1")
	IPv6NodePortAddress = net.ParseIP("f00d::2")
)

Functions

func NewDatapath

func NewDatapath() datapath.Datapath

NewDatapath returns a new fake datapath

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

This section is empty.

Jump to

Keyboard shortcuts

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