mocks

package
v0.27.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient added in v0.26.0

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient added in v0.26.0

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockClient) AuthDevice added in v0.26.0

func (_mock *MockClient) AuthDevice(req *models.DeviceAuthRequest) (*models.DeviceAuthResponse, error)

AuthDevice provides a mock function for the type MockClient

func (*MockClient) AuthPublicKey added in v0.26.0

func (_mock *MockClient) AuthPublicKey(req *models.PublicKeyAuthRequest, token string) (*models.PublicKeyAuthResponse, error)

AuthPublicKey provides a mock function for the type MockClient

func (*MockClient) CreateDeviceLoginCode

func (_mock *MockClient) CreateDeviceLoginCode(token string) (*models.DeviceLoginCode, error)

CreateDeviceLoginCode provides a mock function for the type MockClient

func (*MockClient) CreateDevicePairing

func (_mock *MockClient) CreateDevicePairing(req *models.DevicePairingRequest) (*models.DevicePairing, error)

CreateDevicePairing provides a mock function for the type MockClient

func (*MockClient) EXPECT added in v0.26.0

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) Endpoints added in v0.26.0

func (_mock *MockClient) Endpoints() (*models.Endpoints, error)

Endpoints provides a mock function for the type MockClient

func (*MockClient) GetDevice added in v0.26.0

func (_mock *MockClient) GetDevice(uid string) (*models.Device, error)

GetDevice provides a mock function for the type MockClient

func (*MockClient) GetDeviceAuthStatus

func (_mock *MockClient) GetDeviceAuthStatus(token string) (*models.DeviceAuthStatus, error)

GetDeviceAuthStatus provides a mock function for the type MockClient

func (*MockClient) GetDevicePairingStatus

func (_mock *MockClient) GetDevicePairingStatus(code string) (*models.DevicePairingStatus, error)

GetDevicePairingStatus provides a mock function for the type MockClient

func (*MockClient) GetInfo added in v0.26.0

func (_mock *MockClient) GetInfo(agentVersion string) (*models.Info, error)

GetInfo provides a mock function for the type MockClient

func (*MockClient) ListDevices added in v0.26.0

func (_mock *MockClient) ListDevices() ([]models.Device, error)

ListDevices provides a mock function for the type MockClient

func (*MockClient) NewReverseListenerV1 added in v0.26.0

func (_mock *MockClient) NewReverseListenerV1(ctx context.Context, token string, path string) (net.Listener, error)

NewReverseListenerV1 provides a mock function for the type MockClient

func (*MockClient) NewReverseListenerV2 added in v0.26.0

func (_mock *MockClient) NewReverseListenerV2(ctx context.Context, token string, path string, cfg *client.ReverseListenerV2Config) (net.Listener, error)

NewReverseListenerV2 provides a mock function for the type MockClient

type MockClient_AuthDevice_Call added in v0.26.0

type MockClient_AuthDevice_Call struct {
	*mock.Call
}

MockClient_AuthDevice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthDevice'

func (*MockClient_AuthDevice_Call) Return added in v0.26.0

func (*MockClient_AuthDevice_Call) Run added in v0.26.0

func (*MockClient_AuthDevice_Call) RunAndReturn added in v0.26.0

type MockClient_AuthPublicKey_Call added in v0.26.0

type MockClient_AuthPublicKey_Call struct {
	*mock.Call
}

MockClient_AuthPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthPublicKey'

func (*MockClient_AuthPublicKey_Call) Return added in v0.26.0

func (*MockClient_AuthPublicKey_Call) Run added in v0.26.0

func (*MockClient_AuthPublicKey_Call) RunAndReturn added in v0.26.0

type MockClient_CreateDeviceLoginCode_Call

type MockClient_CreateDeviceLoginCode_Call struct {
	*mock.Call
}

MockClient_CreateDeviceLoginCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDeviceLoginCode'

func (*MockClient_CreateDeviceLoginCode_Call) Return

func (*MockClient_CreateDeviceLoginCode_Call) Run

func (*MockClient_CreateDeviceLoginCode_Call) RunAndReturn

type MockClient_CreateDevicePairing_Call

type MockClient_CreateDevicePairing_Call struct {
	*mock.Call
}

MockClient_CreateDevicePairing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDevicePairing'

func (*MockClient_CreateDevicePairing_Call) Return

func (*MockClient_CreateDevicePairing_Call) Run

func (*MockClient_CreateDevicePairing_Call) RunAndReturn

type MockClient_Endpoints_Call added in v0.26.0

type MockClient_Endpoints_Call struct {
	*mock.Call
}

MockClient_Endpoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Endpoints'

func (*MockClient_Endpoints_Call) Return added in v0.26.0

func (*MockClient_Endpoints_Call) Run added in v0.26.0

func (*MockClient_Endpoints_Call) RunAndReturn added in v0.26.0

func (_c *MockClient_Endpoints_Call) RunAndReturn(run func() (*models.Endpoints, error)) *MockClient_Endpoints_Call

type MockClient_Expecter added in v0.26.0

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

func (*MockClient_Expecter) AuthDevice added in v0.26.0

func (_e *MockClient_Expecter) AuthDevice(req any) *MockClient_AuthDevice_Call

AuthDevice is a helper method to define mock.On call

  • req *models.DeviceAuthRequest

func (*MockClient_Expecter) AuthPublicKey added in v0.26.0

func (_e *MockClient_Expecter) AuthPublicKey(req any, token any) *MockClient_AuthPublicKey_Call

AuthPublicKey is a helper method to define mock.On call

  • req *models.PublicKeyAuthRequest
  • token string

func (*MockClient_Expecter) CreateDeviceLoginCode

func (_e *MockClient_Expecter) CreateDeviceLoginCode(token any) *MockClient_CreateDeviceLoginCode_Call

CreateDeviceLoginCode is a helper method to define mock.On call

  • token string

func (*MockClient_Expecter) CreateDevicePairing

func (_e *MockClient_Expecter) CreateDevicePairing(req any) *MockClient_CreateDevicePairing_Call

CreateDevicePairing is a helper method to define mock.On call

  • req *models.DevicePairingRequest

func (*MockClient_Expecter) Endpoints added in v0.26.0

Endpoints is a helper method to define mock.On call

func (*MockClient_Expecter) GetDevice added in v0.26.0

GetDevice is a helper method to define mock.On call

  • uid string

func (*MockClient_Expecter) GetDeviceAuthStatus

func (_e *MockClient_Expecter) GetDeviceAuthStatus(token any) *MockClient_GetDeviceAuthStatus_Call

GetDeviceAuthStatus is a helper method to define mock.On call

  • token string

func (*MockClient_Expecter) GetDevicePairingStatus

func (_e *MockClient_Expecter) GetDevicePairingStatus(code any) *MockClient_GetDevicePairingStatus_Call

GetDevicePairingStatus is a helper method to define mock.On call

  • code string

func (*MockClient_Expecter) GetInfo added in v0.26.0

func (_e *MockClient_Expecter) GetInfo(agentVersion any) *MockClient_GetInfo_Call

GetInfo is a helper method to define mock.On call

  • agentVersion string

func (*MockClient_Expecter) ListDevices added in v0.26.0

ListDevices is a helper method to define mock.On call

func (*MockClient_Expecter) NewReverseListenerV1 added in v0.26.0

func (_e *MockClient_Expecter) NewReverseListenerV1(ctx any, token any, path any) *MockClient_NewReverseListenerV1_Call

NewReverseListenerV1 is a helper method to define mock.On call

  • ctx context.Context
  • token string
  • path string

func (*MockClient_Expecter) NewReverseListenerV2 added in v0.26.0

func (_e *MockClient_Expecter) NewReverseListenerV2(ctx any, token any, path any, cfg any) *MockClient_NewReverseListenerV2_Call

NewReverseListenerV2 is a helper method to define mock.On call

  • ctx context.Context
  • token string
  • path string
  • cfg *client.ReverseListenerV2Config

type MockClient_GetDeviceAuthStatus_Call

type MockClient_GetDeviceAuthStatus_Call struct {
	*mock.Call
}

MockClient_GetDeviceAuthStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeviceAuthStatus'

func (*MockClient_GetDeviceAuthStatus_Call) Return

func (*MockClient_GetDeviceAuthStatus_Call) Run

func (*MockClient_GetDeviceAuthStatus_Call) RunAndReturn

type MockClient_GetDevicePairingStatus_Call

type MockClient_GetDevicePairingStatus_Call struct {
	*mock.Call
}

MockClient_GetDevicePairingStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDevicePairingStatus'

func (*MockClient_GetDevicePairingStatus_Call) Return

func (*MockClient_GetDevicePairingStatus_Call) Run

func (*MockClient_GetDevicePairingStatus_Call) RunAndReturn

type MockClient_GetDevice_Call added in v0.26.0

type MockClient_GetDevice_Call struct {
	*mock.Call
}

MockClient_GetDevice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDevice'

func (*MockClient_GetDevice_Call) Return added in v0.26.0

func (*MockClient_GetDevice_Call) Run added in v0.26.0

func (*MockClient_GetDevice_Call) RunAndReturn added in v0.26.0

func (_c *MockClient_GetDevice_Call) RunAndReturn(run func(uid string) (*models.Device, error)) *MockClient_GetDevice_Call

type MockClient_GetInfo_Call added in v0.26.0

type MockClient_GetInfo_Call struct {
	*mock.Call
}

MockClient_GetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInfo'

func (*MockClient_GetInfo_Call) Return added in v0.26.0

func (*MockClient_GetInfo_Call) Run added in v0.26.0

func (_c *MockClient_GetInfo_Call) Run(run func(agentVersion string)) *MockClient_GetInfo_Call

func (*MockClient_GetInfo_Call) RunAndReturn added in v0.26.0

func (_c *MockClient_GetInfo_Call) RunAndReturn(run func(agentVersion string) (*models.Info, error)) *MockClient_GetInfo_Call

type MockClient_ListDevices_Call added in v0.26.0

type MockClient_ListDevices_Call struct {
	*mock.Call
}

MockClient_ListDevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDevices'

func (*MockClient_ListDevices_Call) Return added in v0.26.0

func (*MockClient_ListDevices_Call) Run added in v0.26.0

func (*MockClient_ListDevices_Call) RunAndReturn added in v0.26.0

func (_c *MockClient_ListDevices_Call) RunAndReturn(run func() ([]models.Device, error)) *MockClient_ListDevices_Call

type MockClient_NewReverseListenerV1_Call added in v0.26.0

type MockClient_NewReverseListenerV1_Call struct {
	*mock.Call
}

MockClient_NewReverseListenerV1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewReverseListenerV1'

func (*MockClient_NewReverseListenerV1_Call) Return added in v0.26.0

func (*MockClient_NewReverseListenerV1_Call) Run added in v0.26.0

func (*MockClient_NewReverseListenerV1_Call) RunAndReturn added in v0.26.0

type MockClient_NewReverseListenerV2_Call added in v0.26.0

type MockClient_NewReverseListenerV2_Call struct {
	*mock.Call
}

MockClient_NewReverseListenerV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewReverseListenerV2'

func (*MockClient_NewReverseListenerV2_Call) Return added in v0.26.0

func (*MockClient_NewReverseListenerV2_Call) Run added in v0.26.0

func (*MockClient_NewReverseListenerV2_Call) RunAndReturn added in v0.26.0

Jump to

Keyboard shortcuts

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