tailnettest

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: AGPL-3.0 Imports: 21 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 MockCoordinator added in v2.7.1

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

MockCoordinator is a mock of Coordinator interface.

func NewMockCoordinator added in v2.7.1

func NewMockCoordinator(ctrl *gomock.Controller) *MockCoordinator

NewMockCoordinator creates a new mock instance.

func (*MockCoordinator) Close added in v2.7.1

func (m *MockCoordinator) Close() error

Close mocks base method.

func (*MockCoordinator) Coordinate added in v2.7.1

func (m *MockCoordinator) Coordinate(arg0 context.Context, arg1 uuid.UUID, arg2 string, arg3 tailnet.TunnelAuth) (chan<- *proto.CoordinateRequest, <-chan *proto.CoordinateResponse)

Coordinate mocks base method.

func (*MockCoordinator) EXPECT added in v2.7.1

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

func (*MockCoordinator) Node added in v2.7.1

func (m *MockCoordinator) Node(arg0 uuid.UUID) *tailnet.Node

Node mocks base method.

func (*MockCoordinator) ServeAgent added in v2.7.1

func (m *MockCoordinator) ServeAgent(arg0 net.Conn, arg1 uuid.UUID, arg2 string) error

ServeAgent mocks base method.

func (*MockCoordinator) ServeClient added in v2.7.1

func (m *MockCoordinator) ServeClient(arg0 net.Conn, arg1, arg2 uuid.UUID) error

ServeClient mocks base method.

func (*MockCoordinator) ServeHTTPDebug added in v2.7.1

func (m *MockCoordinator) ServeHTTPDebug(arg0 http.ResponseWriter, arg1 *http.Request)

ServeHTTPDebug mocks base method.

func (*MockCoordinator) ServeMultiAgent added in v2.7.1

func (m *MockCoordinator) ServeMultiAgent(arg0 uuid.UUID) tailnet.MultiAgentConn

ServeMultiAgent mocks base method.

type MockCoordinatorMockRecorder added in v2.7.1

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

MockCoordinatorMockRecorder is the mock recorder for MockCoordinator.

func (*MockCoordinatorMockRecorder) Close added in v2.7.1

Close indicates an expected call of Close.

func (*MockCoordinatorMockRecorder) Coordinate added in v2.7.1

func (mr *MockCoordinatorMockRecorder) Coordinate(arg0, arg1, arg2, arg3 any) *gomock.Call

Coordinate indicates an expected call of Coordinate.

func (*MockCoordinatorMockRecorder) Node added in v2.7.1

func (mr *MockCoordinatorMockRecorder) Node(arg0 any) *gomock.Call

Node indicates an expected call of Node.

func (*MockCoordinatorMockRecorder) ServeAgent added in v2.7.1

func (mr *MockCoordinatorMockRecorder) ServeAgent(arg0, arg1, arg2 any) *gomock.Call

ServeAgent indicates an expected call of ServeAgent.

func (*MockCoordinatorMockRecorder) ServeClient added in v2.7.1

func (mr *MockCoordinatorMockRecorder) ServeClient(arg0, arg1, arg2 any) *gomock.Call

ServeClient indicates an expected call of ServeClient.

func (*MockCoordinatorMockRecorder) ServeHTTPDebug added in v2.7.1

func (mr *MockCoordinatorMockRecorder) ServeHTTPDebug(arg0, arg1 any) *gomock.Call

ServeHTTPDebug indicates an expected call of ServeHTTPDebug.

func (*MockCoordinatorMockRecorder) ServeMultiAgent added in v2.7.1

func (mr *MockCoordinatorMockRecorder) ServeMultiAgent(arg0 any) *gomock.Call

ServeMultiAgent indicates an expected call of ServeMultiAgent.

Jump to

Keyboard shortcuts

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