test

package
v2.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BidirectionalTunnels

func BidirectionalTunnels(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)

func GracefulDisconnectTest

func GracefulDisconnectTest(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)

func LostTest

func LostTest(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)

Types

type Peer

type Peer struct {
	ID uuid.UUID
	// contains filtered or unexported fields
}

func NewPeer

func NewPeer(ctx context.Context, t testing.TB, coord tailnet.CoordinatorV2, name string, id ...uuid.UUID) *Peer

func (*Peer) AddTunnel

func (p *Peer) AddTunnel(other uuid.UUID)

func (*Peer) AssertEventuallyDisconnected

func (p *Peer) AssertEventuallyDisconnected(other uuid.UUID)

func (*Peer) AssertEventuallyHasDERP

func (p *Peer) AssertEventuallyHasDERP(other uuid.UUID, derp int32)

func (*Peer) AssertEventuallyLost

func (p *Peer) AssertEventuallyLost(other uuid.UUID)

func (*Peer) AssertEventuallyResponsesClosed

func (p *Peer) AssertEventuallyResponsesClosed()

func (*Peer) Close

func (p *Peer) Close(ctx context.Context)

func (*Peer) Disconnect

func (p *Peer) Disconnect()

func (*Peer) UpdateDERP

func (p *Peer) UpdateDERP(derp int32)

type PeerStatus

type PeerStatus struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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