tailnettest

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package tailnettest is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDERPAndSTUN

func RunDERPAndSTUN(t *testing.T) (*tailcfg.DERPMap, *derp.Server)

RunDERPAndSTUN creates a DERP mapping for tests.

func RunDERPOnlyWebSockets added in v0.18.1

func RunDERPOnlyWebSockets(t *testing.T) *tailcfg.DERPMap

RunDERPOnlyWebSockets creates a DERP mapping for tests that only allows WebSockets through it. Many proxies do not support upgrading DERP, so this is a good fallback.

Types

type MockMultiAgentConn added in v0.26.2

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

MockMultiAgentConn is a mock of MultiAgentConn interface.

func NewMockMultiAgentConn added in v0.26.2

func NewMockMultiAgentConn(ctrl *gomock.Controller) *MockMultiAgentConn

NewMockMultiAgentConn creates a new mock instance.

func (*MockMultiAgentConn) AgentIsLegacy added in v0.26.2

func (m *MockMultiAgentConn) AgentIsLegacy(arg0 uuid.UUID) bool

AgentIsLegacy mocks base method.

func (*MockMultiAgentConn) Close added in v0.26.2

func (m *MockMultiAgentConn) Close() error

Close mocks base method.

func (*MockMultiAgentConn) EXPECT added in v0.26.2

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMultiAgentConn) Enqueue added in v0.26.2

func (m *MockMultiAgentConn) Enqueue(arg0 []*tailnet.Node) error

Enqueue mocks base method.

func (*MockMultiAgentConn) IsClosed added in v0.26.2

func (m *MockMultiAgentConn) IsClosed() bool

IsClosed mocks base method.

func (*MockMultiAgentConn) NextUpdate added in v0.26.2

func (m *MockMultiAgentConn) NextUpdate(arg0 context.Context) ([]*tailnet.Node, bool)

NextUpdate mocks base method.

func (*MockMultiAgentConn) SubscribeAgent added in v0.26.2

func (m *MockMultiAgentConn) SubscribeAgent(arg0 uuid.UUID) error

SubscribeAgent mocks base method.

func (*MockMultiAgentConn) UnsubscribeAgent added in v0.26.2

func (m *MockMultiAgentConn) UnsubscribeAgent(arg0 uuid.UUID) error

UnsubscribeAgent mocks base method.

func (*MockMultiAgentConn) UpdateSelf added in v0.26.2

func (m *MockMultiAgentConn) UpdateSelf(arg0 *tailnet.Node) error

UpdateSelf mocks base method.

type MockMultiAgentConnMockRecorder added in v0.26.2

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

MockMultiAgentConnMockRecorder is the mock recorder for MockMultiAgentConn.

func (*MockMultiAgentConnMockRecorder) AgentIsLegacy added in v0.26.2

func (mr *MockMultiAgentConnMockRecorder) AgentIsLegacy(arg0 interface{}) *gomock.Call

AgentIsLegacy indicates an expected call of AgentIsLegacy.

func (*MockMultiAgentConnMockRecorder) Close added in v0.26.2

Close indicates an expected call of Close.

func (*MockMultiAgentConnMockRecorder) Enqueue added in v0.26.2

func (mr *MockMultiAgentConnMockRecorder) Enqueue(arg0 interface{}) *gomock.Call

Enqueue indicates an expected call of Enqueue.

func (*MockMultiAgentConnMockRecorder) IsClosed added in v0.26.2

func (mr *MockMultiAgentConnMockRecorder) IsClosed() *gomock.Call

IsClosed indicates an expected call of IsClosed.

func (*MockMultiAgentConnMockRecorder) NextUpdate added in v0.26.2

func (mr *MockMultiAgentConnMockRecorder) NextUpdate(arg0 interface{}) *gomock.Call

NextUpdate indicates an expected call of NextUpdate.

func (*MockMultiAgentConnMockRecorder) SubscribeAgent added in v0.26.2

func (mr *MockMultiAgentConnMockRecorder) SubscribeAgent(arg0 interface{}) *gomock.Call

SubscribeAgent indicates an expected call of SubscribeAgent.

func (*MockMultiAgentConnMockRecorder) UnsubscribeAgent added in v0.26.2

func (mr *MockMultiAgentConnMockRecorder) UnsubscribeAgent(arg0 interface{}) *gomock.Call

UnsubscribeAgent indicates an expected call of UnsubscribeAgent.

func (*MockMultiAgentConnMockRecorder) UpdateSelf added in v0.26.2

func (mr *MockMultiAgentConnMockRecorder) UpdateSelf(arg0 interface{}) *gomock.Call

UpdateSelf indicates an expected call of UpdateSelf.

Jump to

Keyboard shortcuts

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy