tailnettest
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
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¶
- func DERPIsEmbedded(cfg *derpAndSTUNCfg)
- func DisableSTUN(cfg *derpAndSTUNCfg)
- func RunDERPAndSTUN(t *testing.T, opts ...DERPAndStunOption) (*tailcfg.DERPMap, *derp.Server)
- func RunDERPOnlyWebSockets(t *testing.T) *tailcfg.DERPMap
- type DERPAndStunOption
- type FakeCoordinate
- type FakeCoordinator
- func (*FakeCoordinator) Close() error
- func (f *FakeCoordinator) Coordinate(ctx context.Context, id uuid.UUID, name string, a tailnet.CoordinateeAuth) (chan<- *proto.CoordinateRequest, <-chan *proto.CoordinateResponse)
- func (*FakeCoordinator) Node(uuid.UUID) *tailnet.Node
- func (*FakeCoordinator) ServeHTTPDebug(http.ResponseWriter, *http.Request)
- type FakeServeClient
- type MockCoordinatee
- func (m *MockCoordinatee) EXPECT() *MockCoordinateeMockRecorder
- func (m *MockCoordinatee) SetAllPeersLost()
- func (m *MockCoordinatee) SetNodeCallback(arg0 func(*tailnet.Node))
- func (m *MockCoordinatee) SetTunnelDestination(id uuid.UUID)
- func (m *MockCoordinatee) UpdatePeers(arg0 []*proto.CoordinateResponse_PeerUpdate) error
- type MockCoordinateeMockRecorder
- type MockCoordinator
- func (m *MockCoordinator) Close() error
- func (m *MockCoordinator) Coordinate(ctx context.Context, id uuid.UUID, name string, a tailnet.CoordinateeAuth) (chan<- *proto.CoordinateRequest, <-chan *proto.CoordinateResponse)
- func (m *MockCoordinator) EXPECT() *MockCoordinatorMockRecorder
- func (m *MockCoordinator) Node(id uuid.UUID) *tailnet.Node
- func (m *MockCoordinator) ServeHTTPDebug(w http.ResponseWriter, r *http.Request)
- type MockCoordinatorMockRecorder
- type MockSubscription
- type MockSubscriptionMockRecorder
- type MockWorkspaceUpdatesProvider
- type MockWorkspaceUpdatesProviderMockRecorder
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcDERPIsEmbedded¶added inv2.9.0
func DERPIsEmbedded(cfg *derpAndSTUNCfg)
funcDisableSTUN¶added inv2.9.0
func DisableSTUN(cfg *derpAndSTUNCfg)
funcRunDERPAndSTUN¶
RunDERPAndSTUN creates a DERP mapping for tests.
Types¶
typeDERPAndStunOption¶added inv2.9.0
type DERPAndStunOption func(cfg *derpAndSTUNCfg)
typeFakeCoordinate¶added inv2.8.0
type FakeCoordinate struct {Ctxcontext.ContextIDuuid.UUIDNamestringAuthtailnet.CoordinateeAuthReqs chan *proto.CoordinateRequestResps chan *proto.CoordinateResponse}
typeFakeCoordinator¶added inv2.8.0
type FakeCoordinator struct {CoordinateCalls chan *FakeCoordinate}
funcNewFakeCoordinator¶added inv2.8.0
func NewFakeCoordinator() *FakeCoordinator
func (*FakeCoordinator)Close¶added inv2.8.0
func (*FakeCoordinator) Close()error
func (*FakeCoordinator)Coordinate¶added inv2.8.0
func (f *FakeCoordinator) Coordinate(ctxcontext.Context, iduuid.UUID, namestring, atailnet.CoordinateeAuth) (chan<- *proto.CoordinateRequest, <-chan *proto.CoordinateResponse)
func (*FakeCoordinator)ServeHTTPDebug¶added inv2.8.0
func (*FakeCoordinator) ServeHTTPDebug(http.ResponseWriter, *http.Request)
typeFakeServeClient¶added inv2.8.0
typeMockCoordinatee¶added inv2.8.0
type MockCoordinatee struct {// contains filtered or unexported fields}
MockCoordinatee is a mock of Coordinatee interface.
funcNewMockCoordinatee¶added inv2.8.0
func NewMockCoordinatee(ctrl *gomock.Controller) *MockCoordinatee
NewMockCoordinatee creates a new mock instance.
func (*MockCoordinatee)EXPECT¶added inv2.8.0
func (m *MockCoordinatee) EXPECT() *MockCoordinateeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoordinatee)SetAllPeersLost¶added inv2.8.0
func (m *MockCoordinatee) SetAllPeersLost()
SetAllPeersLost mocks base method.
func (*MockCoordinatee)SetNodeCallback¶added inv2.8.0
func (m *MockCoordinatee) SetNodeCallback(arg0 func(*tailnet.Node))
SetNodeCallback mocks base method.
func (*MockCoordinatee)SetTunnelDestination¶added inv2.11.0
func (m *MockCoordinatee) SetTunnelDestination(iduuid.UUID)
SetTunnelDestination mocks base method.
func (*MockCoordinatee)UpdatePeers¶added inv2.8.0
func (m *MockCoordinatee) UpdatePeers(arg0 []*proto.CoordinateResponse_PeerUpdate)error
UpdatePeers mocks base method.
typeMockCoordinateeMockRecorder¶added inv2.8.0
type MockCoordinateeMockRecorder struct {// contains filtered or unexported fields}
MockCoordinateeMockRecorder is the mock recorder for MockCoordinatee.
func (*MockCoordinateeMockRecorder)SetAllPeersLost¶added inv2.8.0
func (mr *MockCoordinateeMockRecorder) SetAllPeersLost() *gomock.Call
SetAllPeersLost indicates an expected call of SetAllPeersLost.
func (*MockCoordinateeMockRecorder)SetNodeCallback¶added inv2.8.0
func (mr *MockCoordinateeMockRecorder) SetNodeCallback(arg0any) *gomock.Call
SetNodeCallback indicates an expected call of SetNodeCallback.
func (*MockCoordinateeMockRecorder)SetTunnelDestination¶added inv2.11.0
func (mr *MockCoordinateeMockRecorder) SetTunnelDestination(idany) *gomock.Call
SetTunnelDestination indicates an expected call of SetTunnelDestination.
func (*MockCoordinateeMockRecorder)UpdatePeers¶added inv2.8.0
func (mr *MockCoordinateeMockRecorder) UpdatePeers(arg0any) *gomock.Call
UpdatePeers indicates an expected call of UpdatePeers.
typeMockCoordinator¶added inv2.7.1
type MockCoordinator struct {// contains filtered or unexported fields}
MockCoordinator is a mock of Coordinator interface.
funcNewMockCoordinator¶added inv2.7.1
func NewMockCoordinator(ctrl *gomock.Controller) *MockCoordinator
NewMockCoordinator creates a new mock instance.
func (*MockCoordinator)Close¶added inv2.7.1
func (m *MockCoordinator) Close()error
Close mocks base method.
func (*MockCoordinator)Coordinate¶added inv2.7.1
func (m *MockCoordinator) Coordinate(ctxcontext.Context, iduuid.UUID, namestring, atailnet.CoordinateeAuth) (chan<- *proto.CoordinateRequest, <-chan *proto.CoordinateResponse)
Coordinate mocks base method.
func (*MockCoordinator)EXPECT¶added inv2.7.1
func (m *MockCoordinator) EXPECT() *MockCoordinatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoordinator)Node¶added inv2.7.1
func (m *MockCoordinator) Node(iduuid.UUID) *tailnet.Node
Node mocks base method.
func (*MockCoordinator)ServeHTTPDebug¶added inv2.7.1
func (m *MockCoordinator) ServeHTTPDebug(whttp.ResponseWriter, r *http.Request)
ServeHTTPDebug mocks base method.
typeMockCoordinatorMockRecorder¶added inv2.7.1
type MockCoordinatorMockRecorder struct {// contains filtered or unexported fields}
MockCoordinatorMockRecorder is the mock recorder for MockCoordinator.
func (*MockCoordinatorMockRecorder)Close¶added inv2.7.1
func (mr *MockCoordinatorMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockCoordinatorMockRecorder)Coordinate¶added inv2.7.1
func (mr *MockCoordinatorMockRecorder) Coordinate(ctx, id, name, aany) *gomock.Call
Coordinate indicates an expected call of Coordinate.
func (*MockCoordinatorMockRecorder)Node¶added inv2.7.1
func (mr *MockCoordinatorMockRecorder) Node(idany) *gomock.Call
Node indicates an expected call of Node.
func (*MockCoordinatorMockRecorder)ServeHTTPDebug¶added inv2.7.1
func (mr *MockCoordinatorMockRecorder) ServeHTTPDebug(w, rany) *gomock.Call
ServeHTTPDebug indicates an expected call of ServeHTTPDebug.
typeMockSubscription¶added inv2.18.0
type MockSubscription struct {// contains filtered or unexported fields}
MockSubscription is a mock of Subscription interface.
funcNewMockSubscription¶added inv2.18.0
func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription
NewMockSubscription creates a new mock instance.
func (*MockSubscription)Close¶added inv2.18.0
func (m *MockSubscription) Close()error
Close mocks base method.
func (*MockSubscription)EXPECT¶added inv2.18.0
func (m *MockSubscription) EXPECT() *MockSubscriptionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscription)Updates¶added inv2.18.0
func (m *MockSubscription) Updates() <-chan *proto.WorkspaceUpdate
Updates mocks base method.
typeMockSubscriptionMockRecorder¶added inv2.18.0
type MockSubscriptionMockRecorder struct {// contains filtered or unexported fields}
MockSubscriptionMockRecorder is the mock recorder for MockSubscription.
func (*MockSubscriptionMockRecorder)Close¶added inv2.18.0
func (mr *MockSubscriptionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSubscriptionMockRecorder)Updates¶added inv2.18.0
func (mr *MockSubscriptionMockRecorder) Updates() *gomock.Call
Updates indicates an expected call of Updates.
typeMockWorkspaceUpdatesProvider¶added inv2.18.0
type MockWorkspaceUpdatesProvider struct {// contains filtered or unexported fields}
MockWorkspaceUpdatesProvider is a mock of WorkspaceUpdatesProvider interface.
funcNewMockWorkspaceUpdatesProvider¶added inv2.18.0
func NewMockWorkspaceUpdatesProvider(ctrl *gomock.Controller) *MockWorkspaceUpdatesProvider
NewMockWorkspaceUpdatesProvider creates a new mock instance.
func (*MockWorkspaceUpdatesProvider)Close¶added inv2.18.0
func (m *MockWorkspaceUpdatesProvider) Close()error
Close mocks base method.
func (*MockWorkspaceUpdatesProvider)EXPECT¶added inv2.18.0
func (m *MockWorkspaceUpdatesProvider) EXPECT() *MockWorkspaceUpdatesProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWorkspaceUpdatesProvider)Subscribe¶added inv2.18.0
func (m *MockWorkspaceUpdatesProvider) Subscribe(ctxcontext.Context, userIDuuid.UUID) (tailnet.Subscription,error)
Subscribe mocks base method.
typeMockWorkspaceUpdatesProviderMockRecorder¶added inv2.18.0
type MockWorkspaceUpdatesProviderMockRecorder struct {// contains filtered or unexported fields}
MockWorkspaceUpdatesProviderMockRecorder is the mock recorder for MockWorkspaceUpdatesProvider.
func (*MockWorkspaceUpdatesProviderMockRecorder)Close¶added inv2.18.0
func (mr *MockWorkspaceUpdatesProviderMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.