Movatterモバイル変換


[0]ホーム

URL:


test

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:10Imported by:0

Details

Repository

github.com/coder/coder

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcBidirectionalTunnels

func BidirectionalTunnels(ctxcontext.Context, t *testing.T, coordinatortailnet.CoordinatorV2)

funcGracefulDisconnectTest

func GracefulDisconnectTest(ctxcontext.Context, t *testing.T, coordinatortailnet.CoordinatorV2)

funcLostTest

func LostTest(ctxcontext.Context, t *testing.T, coordinatortailnet.CoordinatorV2)

funcReadyForHandshakeNoPermissionTestadded inv2.11.0

func ReadyForHandshakeNoPermissionTest(ctxcontext.Context, t *testing.T, coordinatortailnet.CoordinatorV2)

funcReadyForHandshakeTestadded inv2.11.0

func ReadyForHandshakeTest(ctxcontext.Context, t *testing.T, coordinatortailnet.CoordinatorV2)

Types

typeFakeCoordinateeAuthadded inv2.18.0

type FakeCoordinateeAuth struct {Chan chan struct{}}

func (FakeCoordinateeAuth)Authorizeadded inv2.18.0

typeFakeSubjectKeyadded inv2.18.0

type FakeSubjectKey struct{}

typePeer

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

funcNewAgentadded inv2.16.0

func NewAgent(ctxcontext.Context, ttesting.TB, coordtailnet.CoordinatorV2, namestring) *Peer

NewAgent is a wrapper around NewPeer, creating a peer with Agent auth tied to its ID

funcNewClientadded inv2.16.0

func NewClient(ctxcontext.Context, ttesting.TB, coordtailnet.CoordinatorV2, namestring, agentIDuuid.UUID) *Peer

NewClient is a wrapper around NewPeer, creating a peer with Client auth tied to the provided agentID

funcNewPeer

func NewPeer(ctxcontext.Context, ttesting.TB, coordtailnet.CoordinatorV2, namestring, opts ...PeerOption) *Peer

func (*Peer)AddTunnel

func (p *Peer) AddTunnel(otheruuid.UUID)

func (*Peer)AssertEventuallyDisconnected

func (p *Peer) AssertEventuallyDisconnected(otheruuid.UUID)

func (*Peer)AssertEventuallyGetsErroradded inv2.11.0

func (p *Peer) AssertEventuallyGetsError(matchstring)

func (*Peer)AssertEventuallyHasDERP

func (p *Peer) AssertEventuallyHasDERP(otheruuid.UUID, derpint32)

func (*Peer)AssertEventuallyLost

func (p *Peer) AssertEventuallyLost(otheruuid.UUID)

func (*Peer)AssertEventuallyReadyForHandshakeadded inv2.11.0

func (p *Peer) AssertEventuallyReadyForHandshake(otheruuid.UUID)

func (*Peer)AssertEventuallyResponsesClosed

func (p *Peer) AssertEventuallyResponsesClosed(expectedErrorstring)

func (*Peer)AssertNeverHasDERPsadded inv2.16.0

func (p *Peer) AssertNeverHasDERPs(ctxcontext.Context, otheruuid.UUID, expected ...int32)

func (*Peer)AssertNeverUpdateKindadded inv2.15.0

func (p *Peer) AssertNeverUpdateKind(peeruuid.UUID, kindproto.CoordinateResponse_PeerUpdate_Kind)

AssertNeverUpdateKind asserts that we have not receivedany updates on the provided peer for the provided kind.

func (*Peer)AssertNotClosedadded inv2.16.0

func (p *Peer) AssertNotClosed(dtime.Duration)

func (*Peer)Close

func (p *Peer) Close(ctxcontext.Context)

func (*Peer)ConnectToCoordinatoradded inv2.15.0

func (p *Peer) ConnectToCoordinator(ctxcontext.Context, ctailnet.CoordinatorV2)

func (*Peer)Disconnect

func (p *Peer) Disconnect()

func (*Peer)ReadyForHandshakeadded inv2.11.0

func (p *Peer) ReadyForHandshake(peeruuid.UUID)

func (*Peer)RemoveTunneladded inv2.18.0

func (p *Peer) RemoveTunnel(otheruuid.UUID)

func (*Peer)UngracefulDisconnectadded inv2.16.0

func (p *Peer) UngracefulDisconnect(ctxcontext.Context)

func (*Peer)UpdateDERP

func (p *Peer) UpdateDERP(derpint32)

func (*Peer)UpdateNodeadded inv2.16.0

func (p *Peer) UpdateNode(node *proto.Node)

typePeerOptionadded inv2.16.0

type PeerOption func(*Peer)

funcWithAuthadded inv2.16.0

funcWithIDadded inv2.16.0

func WithID(iduuid.UUID)PeerOption

typePeerStatus

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

Source Files

View all Source files

Directories

PathSynopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp