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(token string) (*revdial.Listener, error)
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.12.4
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:
Click to show internal directories.
Click to hide internal directories.