Documentation
¶
Overview ¶
Package tailnettest is a generated GoMock package.
Index ¶
- func RunDERPAndSTUN(t *testing.T) (*tailcfg.DERPMap, *derp.Server)
- func RunDERPOnlyWebSockets(t *testing.T) *tailcfg.DERPMap
- type MockMultiAgentConn
- func (m *MockMultiAgentConn) AgentIsLegacy(arg0 uuid.UUID) bool
- func (m *MockMultiAgentConn) Close() error
- func (m *MockMultiAgentConn) EXPECT() *MockMultiAgentConnMockRecorder
- func (m *MockMultiAgentConn) Enqueue(arg0 []*tailnet.Node) error
- func (m *MockMultiAgentConn) IsClosed() bool
- func (m *MockMultiAgentConn) NextUpdate(arg0 context.Context) ([]*tailnet.Node, bool)
- func (m *MockMultiAgentConn) SubscribeAgent(arg0 uuid.UUID) error
- func (m *MockMultiAgentConn) UnsubscribeAgent(arg0 uuid.UUID) error
- func (m *MockMultiAgentConn) UpdateSelf(arg0 *tailnet.Node) error
- type MockMultiAgentConnMockRecorder
- func (mr *MockMultiAgentConnMockRecorder) AgentIsLegacy(arg0 interface{}) *gomock.Call
- func (mr *MockMultiAgentConnMockRecorder) Close() *gomock.Call
- func (mr *MockMultiAgentConnMockRecorder) Enqueue(arg0 interface{}) *gomock.Call
- func (mr *MockMultiAgentConnMockRecorder) IsClosed() *gomock.Call
- func (mr *MockMultiAgentConnMockRecorder) NextUpdate(arg0 interface{}) *gomock.Call
- func (mr *MockMultiAgentConnMockRecorder) SubscribeAgent(arg0 interface{}) *gomock.Call
- func (mr *MockMultiAgentConnMockRecorder) UnsubscribeAgent(arg0 interface{}) *gomock.Call
- func (mr *MockMultiAgentConnMockRecorder) UpdateSelf(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunDERPAndSTUN ¶
RunDERPAndSTUN creates a DERP mapping for tests.
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
func (m *MockMultiAgentConn) EXPECT() *MockMultiAgentConnMockRecorder
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
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
func (mr *MockMultiAgentConnMockRecorder) Close() *gomock.Call
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.