Documentation ¶
Index ¶
- Variables
- func RandomRune() string
- func RandomRuneWithLen(n int) string
- func RandomRuneWithPrefix(prefix string, n int) string
- func WaitUntil(condition ConditionFunc, timeout time.Duration) error
- type ConditionFunc
- type TestEndpoint
- func (e *TestEndpoint) ConntrackLocalLocked() bool
- func (e *TestEndpoint) GetCIDRPrefixLengths() ([]int, []int)
- func (e *TestEndpoint) GetID() uint64
- func (e *TestEndpoint) GetIdentity() identity.NumericIdentity
- func (e *TestEndpoint) GetNodeMAC() mac.MAC
- func (e *TestEndpoint) GetOptions() *option.IntOptions
- func (e *TestEndpoint) HasIpvlanDataPath() bool
- func (e *TestEndpoint) IPv4Address() addressing.CiliumIPv4
- func (e *TestEndpoint) IPv6Address() addressing.CiliumIPv6
- func (e *TestEndpoint) InterfaceName() string
- func (e *TestEndpoint) Logger(subsystem string) *logrus.Entry
- func (e *TestEndpoint) MapPath() string
- func (e *TestEndpoint) StateDir() string
- func (e *TestEndpoint) StringID() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CiliumRootDir = "" // Populated from ldflags in Makefile
)
Functions ¶
func RandomRune ¶
func RandomRune() string
RandomRune returns a random name with a predefined length of 12
func RandomRuneWithLen ¶
RandomRuneWithLen returns a random name of specified length
func RandomRuneWithPrefix ¶
RandomRuneWithPrefix returns a random name string with fixed prefix
Types ¶
type ConditionFunc ¶
type ConditionFunc func() bool
ConditionFunc is the function implementing the condition, it must return true if the condition has been met
type TestEndpoint ¶
type TestEndpoint struct { Id uint64 Opts *option.IntOptions MAC mac.MAC }
func NewTestEndpoint ¶
func NewTestEndpoint() TestEndpoint
func (*TestEndpoint) ConntrackLocalLocked ¶
func (e *TestEndpoint) ConntrackLocalLocked() bool
func (*TestEndpoint) GetCIDRPrefixLengths ¶
func (e *TestEndpoint) GetCIDRPrefixLengths() ([]int, []int)
func (*TestEndpoint) GetID ¶
func (e *TestEndpoint) GetID() uint64
func (*TestEndpoint) GetIdentity ¶
func (e *TestEndpoint) GetIdentity() identity.NumericIdentity
func (*TestEndpoint) GetNodeMAC ¶
func (e *TestEndpoint) GetNodeMAC() mac.MAC
func (*TestEndpoint) GetOptions ¶
func (e *TestEndpoint) GetOptions() *option.IntOptions
func (*TestEndpoint) HasIpvlanDataPath ¶
func (e *TestEndpoint) HasIpvlanDataPath() bool
func (*TestEndpoint) IPv4Address ¶
func (e *TestEndpoint) IPv4Address() addressing.CiliumIPv4
func (*TestEndpoint) IPv6Address ¶
func (e *TestEndpoint) IPv6Address() addressing.CiliumIPv6
func (*TestEndpoint) InterfaceName ¶
func (e *TestEndpoint) InterfaceName() string
func (*TestEndpoint) MapPath ¶
func (e *TestEndpoint) MapPath() string
func (*TestEndpoint) StateDir ¶
func (e *TestEndpoint) StateDir() string
func (*TestEndpoint) StringID ¶
func (e *TestEndpoint) StringID() string
Click to show internal directories.
Click to hide internal directories.