Movatterモバイル変換


[0]ホーム

URL:


tailnettest

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:21Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Overview

Package tailnettest is a generated GoMock package.

Package tailnettest is a generated GoMock package.

Package tailnettest is a generated GoMock package.

Package tailnettest is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcDERPIsEmbeddedadded inv2.9.0

func DERPIsEmbedded(cfg *derpAndSTUNCfg)

funcDisableSTUNadded inv2.9.0

func DisableSTUN(cfg *derpAndSTUNCfg)

funcRunDERPAndSTUN

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

RunDERPAndSTUN creates a DERP mapping for tests.

funcRunDERPOnlyWebSockets

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

RunDERPOnlyWebSockets creates a DERP mapping for tests thatonly allows WebSockets through it. Many proxies do not supportupgrading DERP, so this is a good fallback.

Types

typeDERPAndStunOptionadded inv2.9.0

type DERPAndStunOption func(cfg *derpAndSTUNCfg)

typeFakeCoordinateadded inv2.8.0

type FakeCoordinate struct {Ctxcontext.ContextIDuuid.UUIDNamestringAuthtailnet.CoordinateeAuthReqs  chan *proto.CoordinateRequestResps chan *proto.CoordinateResponse}

typeFakeCoordinatoradded inv2.8.0

type FakeCoordinator struct {CoordinateCalls chan *FakeCoordinate}

funcNewFakeCoordinatoradded inv2.8.0

func NewFakeCoordinator() *FakeCoordinator

func (*FakeCoordinator)Closeadded inv2.8.0

func (*FakeCoordinator) Close()error

func (*FakeCoordinator)Coordinateadded inv2.8.0

func (*FakeCoordinator)Nodeadded inv2.8.0

func (*FakeCoordinator)ServeHTTPDebugadded inv2.8.0

func (*FakeCoordinator) ServeHTTPDebug(http.ResponseWriter, *http.Request)

typeFakeServeClientadded inv2.8.0

type FakeServeClient struct {Connnet.ConnIDuuid.UUIDAgentuuid.UUIDErrCh chanerror}

typeMockCoordinateeadded inv2.8.0

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

MockCoordinatee is a mock of Coordinatee interface.

funcNewMockCoordinateeadded inv2.8.0

func NewMockCoordinatee(ctrl *gomock.Controller) *MockCoordinatee

NewMockCoordinatee creates a new mock instance.

func (*MockCoordinatee)EXPECTadded inv2.8.0

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

func (*MockCoordinatee)SetAllPeersLostadded inv2.8.0

func (m *MockCoordinatee) SetAllPeersLost()

SetAllPeersLost mocks base method.

func (*MockCoordinatee)SetNodeCallbackadded inv2.8.0

func (m *MockCoordinatee) SetNodeCallback(arg0 func(*tailnet.Node))

SetNodeCallback mocks base method.

func (*MockCoordinatee)SetTunnelDestinationadded inv2.11.0

func (m *MockCoordinatee) SetTunnelDestination(iduuid.UUID)

SetTunnelDestination mocks base method.

func (*MockCoordinatee)UpdatePeersadded inv2.8.0

UpdatePeers mocks base method.

typeMockCoordinateeMockRecorderadded inv2.8.0

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

MockCoordinateeMockRecorder is the mock recorder for MockCoordinatee.

func (*MockCoordinateeMockRecorder)SetAllPeersLostadded inv2.8.0

func (mr *MockCoordinateeMockRecorder) SetAllPeersLost() *gomock.Call

SetAllPeersLost indicates an expected call of SetAllPeersLost.

func (*MockCoordinateeMockRecorder)SetNodeCallbackadded inv2.8.0

func (mr *MockCoordinateeMockRecorder) SetNodeCallback(arg0any) *gomock.Call

SetNodeCallback indicates an expected call of SetNodeCallback.

func (*MockCoordinateeMockRecorder)SetTunnelDestinationadded inv2.11.0

func (mr *MockCoordinateeMockRecorder) SetTunnelDestination(idany) *gomock.Call

SetTunnelDestination indicates an expected call of SetTunnelDestination.

func (*MockCoordinateeMockRecorder)UpdatePeersadded inv2.8.0

func (mr *MockCoordinateeMockRecorder) UpdatePeers(arg0any) *gomock.Call

UpdatePeers indicates an expected call of UpdatePeers.

typeMockCoordinatoradded inv2.7.1

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

MockCoordinator is a mock of Coordinator interface.

funcNewMockCoordinatoradded inv2.7.1

func NewMockCoordinator(ctrl *gomock.Controller) *MockCoordinator

NewMockCoordinator creates a new mock instance.

func (*MockCoordinator)Closeadded inv2.7.1

func (m *MockCoordinator) Close()error

Close mocks base method.

func (*MockCoordinator)Coordinateadded inv2.7.1

Coordinate mocks base method.

func (*MockCoordinator)EXPECTadded inv2.7.1

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

func (*MockCoordinator)Nodeadded inv2.7.1

func (m *MockCoordinator) Node(iduuid.UUID) *tailnet.Node

Node mocks base method.

func (*MockCoordinator)ServeHTTPDebugadded inv2.7.1

func (m *MockCoordinator) ServeHTTPDebug(whttp.ResponseWriter, r *http.Request)

ServeHTTPDebug mocks base method.

typeMockCoordinatorMockRecorderadded inv2.7.1

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

MockCoordinatorMockRecorder is the mock recorder for MockCoordinator.

func (*MockCoordinatorMockRecorder)Closeadded inv2.7.1

Close indicates an expected call of Close.

func (*MockCoordinatorMockRecorder)Coordinateadded inv2.7.1

func (mr *MockCoordinatorMockRecorder) Coordinate(ctx, id, name, aany) *gomock.Call

Coordinate indicates an expected call of Coordinate.

func (*MockCoordinatorMockRecorder)Nodeadded inv2.7.1

Node indicates an expected call of Node.

func (*MockCoordinatorMockRecorder)ServeHTTPDebugadded inv2.7.1

func (mr *MockCoordinatorMockRecorder) ServeHTTPDebug(w, rany) *gomock.Call

ServeHTTPDebug indicates an expected call of ServeHTTPDebug.

typeMockSubscriptionadded inv2.18.0

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

MockSubscription is a mock of Subscription interface.

funcNewMockSubscriptionadded inv2.18.0

func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription

NewMockSubscription creates a new mock instance.

func (*MockSubscription)Closeadded inv2.18.0

func (m *MockSubscription) Close()error

Close mocks base method.

func (*MockSubscription)EXPECTadded inv2.18.0

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

func (*MockSubscription)Updatesadded inv2.18.0

func (m *MockSubscription) Updates() <-chan *proto.WorkspaceUpdate

Updates mocks base method.

typeMockSubscriptionMockRecorderadded inv2.18.0

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

MockSubscriptionMockRecorder is the mock recorder for MockSubscription.

func (*MockSubscriptionMockRecorder)Closeadded inv2.18.0

Close indicates an expected call of Close.

func (*MockSubscriptionMockRecorder)Updatesadded inv2.18.0

Updates indicates an expected call of Updates.

typeMockWorkspaceUpdatesProvideradded inv2.18.0

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

MockWorkspaceUpdatesProvider is a mock of WorkspaceUpdatesProvider interface.

funcNewMockWorkspaceUpdatesProvideradded inv2.18.0

func NewMockWorkspaceUpdatesProvider(ctrl *gomock.Controller) *MockWorkspaceUpdatesProvider

NewMockWorkspaceUpdatesProvider creates a new mock instance.

func (*MockWorkspaceUpdatesProvider)Closeadded inv2.18.0

Close mocks base method.

func (*MockWorkspaceUpdatesProvider)EXPECTadded inv2.18.0

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

func (*MockWorkspaceUpdatesProvider)Subscribeadded inv2.18.0

Subscribe mocks base method.

typeMockWorkspaceUpdatesProviderMockRecorderadded inv2.18.0

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

MockWorkspaceUpdatesProviderMockRecorder is the mock recorder for MockWorkspaceUpdatesProvider.

func (*MockWorkspaceUpdatesProviderMockRecorder)Closeadded inv2.18.0

Close indicates an expected call of Close.

func (*MockWorkspaceUpdatesProviderMockRecorder)Subscribeadded inv2.18.0

func (mr *MockWorkspaceUpdatesProviderMockRecorder) Subscribe(ctx, userIDany) *gomock.Call

Subscribe indicates an expected call of Subscribe.

Source Files

View all Source files

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