overlaytest

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 4 Imported by: 0

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

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) Activate

func (NoopTun) Activate() error

func (NoopTun) Close

func (NoopTun) Close() error

func (NoopTun) Name

func (NoopTun) Name() string

func (NoopTun) Networks

func (NoopTun) Networks() []netip.Prefix

func (NoopTun) NewMultiQueueReader

func (NoopTun) NewMultiQueueReader() (io.ReadWriteCloser, error)

func (NoopTun) Read

func (NoopTun) Read([]byte) (int, error)

func (NoopTun) RoutesFor

func (NoopTun) RoutesFor(addr netip.Addr) routing.Gateways

func (NoopTun) SupportsMultiqueue

func (NoopTun) SupportsMultiqueue() bool

func (NoopTun) Write

func (NoopTun) Write([]byte) (int, error)

Jump to

Keyboard shortcuts

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