Documentation ¶
Index ¶
- type Client
- func (_m *Client) AuthDevice(req *models.DeviceAuthRequest) (*models.DeviceAuthResponse, error)
- func (_m *Client) AuthPublicKey(req *models.PublicKeyAuthRequest, token string) (*models.PublicKeyAuthResponse, error)
- func (_m *Client) Endpoints() (*models.Endpoints, error)
- func (_m *Client) GetDevice(uid string) (*models.Device, error)
- func (_m *Client) GetInfo(agentVersion string) (*models.Info, error)
- func (_m *Client) ListDevices() ([]models.Device, error)
- func (_m *Client) NewReverseListener(ctx context.Context, token string, connPath string) (*revdial.Listener, error)
- type IReverser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v0.13.6
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) AuthDevice ¶
func (_m *Client) AuthDevice(req *models.DeviceAuthRequest) (*models.DeviceAuthResponse, error)
AuthDevice provides a mock function with given fields: req
func (*Client) AuthPublicKey ¶
func (_m *Client) AuthPublicKey(req *models.PublicKeyAuthRequest, token string) (*models.PublicKeyAuthResponse, error)
AuthPublicKey provides a mock function with given fields: req, token
func (*Client) ListDevices ¶
ListDevices provides a mock function with given fields:
type IReverser ¶ added in v0.13.6
IReverser is an autogenerated mock type for the IReverser type
func NewIReverser ¶ added in v0.13.6
func NewIReverser(t mockConstructorTestingTNewIReverser) *IReverser
NewIReverser creates a new instance of IReverser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
Click to show internal directories.
Click to hide internal directories.