Documentation
¶
Overview ¶
Package overlaytest provides fakes of overlay.Device for tests that do not want to touch a real tun device or route table.
Index ¶
- type NoopTun
- func (NoopTun) Activate() error
- func (NoopTun) Close() error
- func (NoopTun) Name() string
- func (NoopTun) Networks() []netip.Prefix
- func (NoopTun) NewMultiQueueReader() (io.ReadWriteCloser, error)
- func (NoopTun) Read([]byte) (int, error)
- func (NoopTun) RoutesFor(addr netip.Addr) routing.Gateways
- func (NoopTun) SupportsMultiqueue() bool
- func (NoopTun) Write([]byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopTun ¶
type NoopTun struct{}
NoopTun is an overlay.Device that silently discards every read and write. Useful in tests that need to construct a nebula Interface but do not exercise the datapath.
func (NoopTun) NewMultiQueueReader ¶
func (NoopTun) NewMultiQueueReader() (io.ReadWriteCloser, error)
func (NoopTun) SupportsMultiqueue ¶
Click to show internal directories.
Click to hide internal directories.