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) 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) 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 ¶
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 ¶
func (m *MockMultiAgentConn) EXPECT() *MockMultiAgentConnMockRecorder
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 ¶
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 ¶
func (mr *MockMultiAgentConnMockRecorder) Close() *gomock.Call
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.