test
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Documentation¶
Index¶
- func BidirectionalTunnels(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)
- func GracefulDisconnectTest(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)
- func LostTest(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)
- func ReadyForHandshakeNoPermissionTest(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)
- func ReadyForHandshakeTest(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)
- type FakeCoordinateeAuth
- type FakeSubjectKey
- type Peer
- func (p *Peer) AddTunnel(other uuid.UUID)
- func (p *Peer) AssertEventuallyDisconnected(other uuid.UUID)
- func (p *Peer) AssertEventuallyGetsError(match string)
- func (p *Peer) AssertEventuallyHasDERP(other uuid.UUID, derp int32)
- func (p *Peer) AssertEventuallyLost(other uuid.UUID)
- func (p *Peer) AssertEventuallyReadyForHandshake(other uuid.UUID)
- func (p *Peer) AssertEventuallyResponsesClosed(expectedError string)
- func (p *Peer) AssertNeverHasDERPs(ctx context.Context, other uuid.UUID, expected ...int32)
- func (p *Peer) AssertNeverUpdateKind(peer uuid.UUID, kind proto.CoordinateResponse_PeerUpdate_Kind)
- func (p *Peer) AssertNotClosed(d time.Duration)
- func (p *Peer) Close(ctx context.Context)
- func (p *Peer) ConnectToCoordinator(ctx context.Context, c tailnet.CoordinatorV2)
- func (p *Peer) Disconnect()
- func (p *Peer) ReadyForHandshake(peer uuid.UUID)
- func (p *Peer) RemoveTunnel(other uuid.UUID)
- func (p *Peer) UngracefulDisconnect(ctx context.Context)
- func (p *Peer) UpdateDERP(derp int32)
- func (p *Peer) UpdateNode(node *proto.Node)
- type PeerOption
- type PeerStatus
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcReadyForHandshakeNoPermissionTest¶added inv2.11.0
funcReadyForHandshakeTest¶added inv2.11.0
Types¶
typeFakeCoordinateeAuth¶added inv2.18.0
type FakeCoordinateeAuth struct {Chan chan struct{}}
func (FakeCoordinateeAuth)Authorize¶added inv2.18.0
func (fFakeCoordinateeAuth) Authorize(ctxcontext.Context, _ *proto.CoordinateRequest)error
typeFakeSubjectKey¶added inv2.18.0
type FakeSubjectKey struct{}
typePeer¶
funcNewAgent¶added inv2.16.0
NewAgent is a wrapper around NewPeer, creating a peer with Agent auth tied to its ID
funcNewClient¶added 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)AssertEventuallyDisconnected¶
func (*Peer)AssertEventuallyGetsError¶added inv2.11.0
func (*Peer)AssertEventuallyHasDERP¶
func (*Peer)AssertEventuallyLost¶
func (*Peer)AssertEventuallyReadyForHandshake¶added inv2.11.0
func (*Peer)AssertEventuallyResponsesClosed¶
func (*Peer)AssertNeverHasDERPs¶added inv2.16.0
func (*Peer)AssertNeverUpdateKind¶added 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)AssertNotClosed¶added inv2.16.0
func (*Peer)ConnectToCoordinator¶added inv2.15.0
func (p *Peer) ConnectToCoordinator(ctxcontext.Context, ctailnet.CoordinatorV2)
func (*Peer)Disconnect¶
func (p *Peer) Disconnect()
func (*Peer)ReadyForHandshake¶added inv2.11.0
func (*Peer)RemoveTunnel¶added inv2.18.0
func (*Peer)UngracefulDisconnect¶added inv2.16.0
func (*Peer)UpdateDERP¶
func (*Peer)UpdateNode¶added inv2.16.0
typePeerOption¶added inv2.16.0
type PeerOption func(*Peer)
funcWithAuth¶added inv2.16.0
func WithAuth(authtailnet.CoordinateeAuth)PeerOption
funcWithID¶added inv2.16.0
func WithID(iduuid.UUID)PeerOption
typePeerStatus¶
type PeerStatus struct {// contains filtered or unexported fields}