tailnettest

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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

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

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

MockMultiAgentConn is a mock of MultiAgentConn interface.

func NewMockMultiAgentConn

func NewMockMultiAgentConn(ctrl *gomock.Controller) *MockMultiAgentConn

NewMockMultiAgentConn creates a new mock instance.

func (*MockMultiAgentConn) AgentIsLegacy

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

AgentIsLegacy mocks base method.

func (*MockMultiAgentConn) Close

func (m *MockMultiAgentConn) Close() error

Close mocks base method.

func (*MockMultiAgentConn) EXPECT

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

func (*MockMultiAgentConn) IsClosed

func (m *MockMultiAgentConn) IsClosed() bool

IsClosed mocks base method.

func (*MockMultiAgentConn) NextUpdate

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

NextUpdate mocks base method.

func (*MockMultiAgentConn) SubscribeAgent

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

SubscribeAgent mocks base method.

func (*MockMultiAgentConn) UnsubscribeAgent

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

UnsubscribeAgent mocks base method.

func (*MockMultiAgentConn) UpdateSelf

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

UpdateSelf mocks base method.

type MockMultiAgentConnMockRecorder

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

MockMultiAgentConnMockRecorder is the mock recorder for MockMultiAgentConn.

func (*MockMultiAgentConnMockRecorder) AgentIsLegacy

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

AgentIsLegacy indicates an expected call of AgentIsLegacy.

func (*MockMultiAgentConnMockRecorder) Close

Close indicates an expected call of Close.

func (*MockMultiAgentConnMockRecorder) IsClosed

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

IsClosed indicates an expected call of IsClosed.

func (*MockMultiAgentConnMockRecorder) NextUpdate

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

NextUpdate indicates an expected call of NextUpdate.

func (*MockMultiAgentConnMockRecorder) SubscribeAgent

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

SubscribeAgent indicates an expected call of SubscribeAgent.

func (*MockMultiAgentConnMockRecorder) UnsubscribeAgent

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

UnsubscribeAgent indicates an expected call of UnsubscribeAgent.

func (*MockMultiAgentConnMockRecorder) UpdateSelf

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