Documentation
¶
Index ¶
- type Client
- func (a *Client) DeviceList(params *DeviceListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeviceListOK, error)
- func (a *Client) DevicesStatsUpdate(params *DevicesStatsUpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DevicesStatsUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeviceListDefault
- type DeviceListOK
- type DeviceListParams
- func (o *DeviceListParams) SetContext(ctx context.Context)
- func (o *DeviceListParams) SetDefaults()
- func (o *DeviceListParams) SetHTTPClient(client *http.Client)
- func (o *DeviceListParams) SetTimeout(timeout time.Duration)
- func (o *DeviceListParams) SetXRelayHostname(xRelayHostname string)
- func (o *DeviceListParams) WithContext(ctx context.Context) *DeviceListParams
- func (o *DeviceListParams) WithDefaults() *DeviceListParams
- func (o *DeviceListParams) WithHTTPClient(client *http.Client) *DeviceListParams
- func (o *DeviceListParams) WithTimeout(timeout time.Duration) *DeviceListParams
- func (o *DeviceListParams) WithXRelayHostname(xRelayHostname string) *DeviceListParams
- func (o *DeviceListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeviceListReader
- type DevicesStatsUpdateDefault
- type DevicesStatsUpdateOK
- type DevicesStatsUpdateParams
- func NewDevicesStatsUpdateParams() *DevicesStatsUpdateParams
- func NewDevicesStatsUpdateParamsWithContext(ctx context.Context) *DevicesStatsUpdateParams
- func NewDevicesStatsUpdateParamsWithHTTPClient(client *http.Client) *DevicesStatsUpdateParams
- func NewDevicesStatsUpdateParamsWithTimeout(timeout time.Duration) *DevicesStatsUpdateParams
- func (o *DevicesStatsUpdateParams) SetContext(ctx context.Context)
- func (o *DevicesStatsUpdateParams) SetDefaults()
- func (o *DevicesStatsUpdateParams) SetHTTPClient(client *http.Client)
- func (o *DevicesStatsUpdateParams) SetRequest(request models.DeviceStatsMap)
- func (o *DevicesStatsUpdateParams) SetTimeout(timeout time.Duration)
- func (o *DevicesStatsUpdateParams) SetXRelayHostname(xRelayHostname string)
- func (o *DevicesStatsUpdateParams) WithContext(ctx context.Context) *DevicesStatsUpdateParams
- func (o *DevicesStatsUpdateParams) WithDefaults() *DevicesStatsUpdateParams
- func (o *DevicesStatsUpdateParams) WithHTTPClient(client *http.Client) *DevicesStatsUpdateParams
- func (o *DevicesStatsUpdateParams) WithRequest(request models.DeviceStatsMap) *DevicesStatsUpdateParams
- func (o *DevicesStatsUpdateParams) WithTimeout(timeout time.Duration) *DevicesStatsUpdateParams
- func (o *DevicesStatsUpdateParams) WithXRelayHostname(xRelayHostname string) *DevicesStatsUpdateParams
- func (o *DevicesStatsUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DevicesStatsUpdateReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for device API
func (*Client) DeviceList ¶
func (a *Client) DeviceList(params *DeviceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeviceListOK, error)
DeviceList lists of device that should be presented on host
func (*Client) DevicesStatsUpdate ¶
func (a *Client) DevicesStatsUpdate(params *DevicesStatsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DevicesStatsUpdateOK, error)
DevicesStatsUpdate connecteds devices stats to the API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { DeviceList(params *DeviceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeviceListOK, error) DevicesStatsUpdate(params *DevicesStatsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DevicesStatsUpdateOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new device API client.
type DeviceListDefault ¶
DeviceListDefault describes a response with status code -1, with default header values.
error
func NewDeviceListDefault ¶
func NewDeviceListDefault(code int) *DeviceListDefault
NewDeviceListDefault creates a DeviceListDefault with default headers values
func (*DeviceListDefault) Code ¶
func (o *DeviceListDefault) Code() int
Code gets the status code for the device list default response
func (*DeviceListDefault) Error ¶
func (o *DeviceListDefault) Error() string
func (*DeviceListDefault) GetPayload ¶
func (o *DeviceListDefault) GetPayload() *models.Error
type DeviceListOK ¶
type DeviceListOK struct {
Payload models.DeviceList
}
DeviceListOK describes a response with status code 200, with default header values.
ok
func NewDeviceListOK ¶
func NewDeviceListOK() *DeviceListOK
NewDeviceListOK creates a DeviceListOK with default headers values
func (*DeviceListOK) Error ¶
func (o *DeviceListOK) Error() string
func (*DeviceListOK) GetPayload ¶
func (o *DeviceListOK) GetPayload() models.DeviceList
type DeviceListParams ¶
type DeviceListParams struct { // XRelayHostname. XRelayHostname string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeviceListParams contains all the parameters to send to the API endpoint
for the device list operation. Typically these are written to a http.Request.
func NewDeviceListParams ¶
func NewDeviceListParams() *DeviceListParams
NewDeviceListParams creates a new DeviceListParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeviceListParamsWithContext ¶
func NewDeviceListParamsWithContext(ctx context.Context) *DeviceListParams
NewDeviceListParamsWithContext creates a new DeviceListParams object with the ability to set a context for a request.
func NewDeviceListParamsWithHTTPClient ¶
func NewDeviceListParamsWithHTTPClient(client *http.Client) *DeviceListParams
NewDeviceListParamsWithHTTPClient creates a new DeviceListParams object with the ability to set a custom HTTPClient for a request.
func NewDeviceListParamsWithTimeout ¶
func NewDeviceListParamsWithTimeout(timeout time.Duration) *DeviceListParams
NewDeviceListParamsWithTimeout creates a new DeviceListParams object with the ability to set a timeout on a request.
func (*DeviceListParams) SetContext ¶
func (o *DeviceListParams) SetContext(ctx context.Context)
SetContext adds the context to the device list params
func (*DeviceListParams) SetDefaults ¶
func (o *DeviceListParams) SetDefaults()
SetDefaults hydrates default values in the device list params (not the query body).
All values with no default are reset to their zero value.
func (*DeviceListParams) SetHTTPClient ¶
func (o *DeviceListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the device list params
func (*DeviceListParams) SetTimeout ¶
func (o *DeviceListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the device list params
func (*DeviceListParams) SetXRelayHostname ¶
func (o *DeviceListParams) SetXRelayHostname(xRelayHostname string)
SetXRelayHostname adds the xRelayHostname to the device list params
func (*DeviceListParams) WithContext ¶
func (o *DeviceListParams) WithContext(ctx context.Context) *DeviceListParams
WithContext adds the context to the device list params
func (*DeviceListParams) WithDefaults ¶
func (o *DeviceListParams) WithDefaults() *DeviceListParams
WithDefaults hydrates default values in the device list params (not the query body).
All values with no default are reset to their zero value.
func (*DeviceListParams) WithHTTPClient ¶
func (o *DeviceListParams) WithHTTPClient(client *http.Client) *DeviceListParams
WithHTTPClient adds the HTTPClient to the device list params
func (*DeviceListParams) WithTimeout ¶
func (o *DeviceListParams) WithTimeout(timeout time.Duration) *DeviceListParams
WithTimeout adds the timeout to the device list params
func (*DeviceListParams) WithXRelayHostname ¶
func (o *DeviceListParams) WithXRelayHostname(xRelayHostname string) *DeviceListParams
WithXRelayHostname adds the xRelayHostname to the device list params
func (*DeviceListParams) WriteToRequest ¶
func (o *DeviceListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeviceListReader ¶
type DeviceListReader struct {
// contains filtered or unexported fields
}
DeviceListReader is a Reader for the DeviceList structure.
func (*DeviceListReader) ReadResponse ¶
func (o *DeviceListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DevicesStatsUpdateDefault ¶
type DevicesStatsUpdateDefault struct { Payload *models.Error // contains filtered or unexported fields }
DevicesStatsUpdateDefault describes a response with status code -1, with default header values.
error
func NewDevicesStatsUpdateDefault ¶
func NewDevicesStatsUpdateDefault(code int) *DevicesStatsUpdateDefault
NewDevicesStatsUpdateDefault creates a DevicesStatsUpdateDefault with default headers values
func (*DevicesStatsUpdateDefault) Code ¶
func (o *DevicesStatsUpdateDefault) Code() int
Code gets the status code for the devices stats update default response
func (*DevicesStatsUpdateDefault) Error ¶
func (o *DevicesStatsUpdateDefault) Error() string
func (*DevicesStatsUpdateDefault) GetPayload ¶
func (o *DevicesStatsUpdateDefault) GetPayload() *models.Error
type DevicesStatsUpdateOK ¶
type DevicesStatsUpdateOK struct { }
DevicesStatsUpdateOK describes a response with status code 200, with default header values.
ok
func NewDevicesStatsUpdateOK ¶
func NewDevicesStatsUpdateOK() *DevicesStatsUpdateOK
NewDevicesStatsUpdateOK creates a DevicesStatsUpdateOK with default headers values
func (*DevicesStatsUpdateOK) Error ¶
func (o *DevicesStatsUpdateOK) Error() string
type DevicesStatsUpdateParams ¶
type DevicesStatsUpdateParams struct { // XRelayHostname. XRelayHostname string // Request. Request models.DeviceStatsMap Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DevicesStatsUpdateParams contains all the parameters to send to the API endpoint
for the devices stats update operation. Typically these are written to a http.Request.
func NewDevicesStatsUpdateParams ¶
func NewDevicesStatsUpdateParams() *DevicesStatsUpdateParams
NewDevicesStatsUpdateParams creates a new DevicesStatsUpdateParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDevicesStatsUpdateParamsWithContext ¶
func NewDevicesStatsUpdateParamsWithContext(ctx context.Context) *DevicesStatsUpdateParams
NewDevicesStatsUpdateParamsWithContext creates a new DevicesStatsUpdateParams object with the ability to set a context for a request.
func NewDevicesStatsUpdateParamsWithHTTPClient ¶
func NewDevicesStatsUpdateParamsWithHTTPClient(client *http.Client) *DevicesStatsUpdateParams
NewDevicesStatsUpdateParamsWithHTTPClient creates a new DevicesStatsUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewDevicesStatsUpdateParamsWithTimeout ¶
func NewDevicesStatsUpdateParamsWithTimeout(timeout time.Duration) *DevicesStatsUpdateParams
NewDevicesStatsUpdateParamsWithTimeout creates a new DevicesStatsUpdateParams object with the ability to set a timeout on a request.
func (*DevicesStatsUpdateParams) SetContext ¶
func (o *DevicesStatsUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the devices stats update params
func (*DevicesStatsUpdateParams) SetDefaults ¶
func (o *DevicesStatsUpdateParams) SetDefaults()
SetDefaults hydrates default values in the devices stats update params (not the query body).
All values with no default are reset to their zero value.
func (*DevicesStatsUpdateParams) SetHTTPClient ¶
func (o *DevicesStatsUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the devices stats update params
func (*DevicesStatsUpdateParams) SetRequest ¶
func (o *DevicesStatsUpdateParams) SetRequest(request models.DeviceStatsMap)
SetRequest adds the request to the devices stats update params
func (*DevicesStatsUpdateParams) SetTimeout ¶
func (o *DevicesStatsUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the devices stats update params
func (*DevicesStatsUpdateParams) SetXRelayHostname ¶
func (o *DevicesStatsUpdateParams) SetXRelayHostname(xRelayHostname string)
SetXRelayHostname adds the xRelayHostname to the devices stats update params
func (*DevicesStatsUpdateParams) WithContext ¶
func (o *DevicesStatsUpdateParams) WithContext(ctx context.Context) *DevicesStatsUpdateParams
WithContext adds the context to the devices stats update params
func (*DevicesStatsUpdateParams) WithDefaults ¶
func (o *DevicesStatsUpdateParams) WithDefaults() *DevicesStatsUpdateParams
WithDefaults hydrates default values in the devices stats update params (not the query body).
All values with no default are reset to their zero value.
func (*DevicesStatsUpdateParams) WithHTTPClient ¶
func (o *DevicesStatsUpdateParams) WithHTTPClient(client *http.Client) *DevicesStatsUpdateParams
WithHTTPClient adds the HTTPClient to the devices stats update params
func (*DevicesStatsUpdateParams) WithRequest ¶
func (o *DevicesStatsUpdateParams) WithRequest(request models.DeviceStatsMap) *DevicesStatsUpdateParams
WithRequest adds the request to the devices stats update params
func (*DevicesStatsUpdateParams) WithTimeout ¶
func (o *DevicesStatsUpdateParams) WithTimeout(timeout time.Duration) *DevicesStatsUpdateParams
WithTimeout adds the timeout to the devices stats update params
func (*DevicesStatsUpdateParams) WithXRelayHostname ¶
func (o *DevicesStatsUpdateParams) WithXRelayHostname(xRelayHostname string) *DevicesStatsUpdateParams
WithXRelayHostname adds the xRelayHostname to the devices stats update params
func (*DevicesStatsUpdateParams) WriteToRequest ¶
func (o *DevicesStatsUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DevicesStatsUpdateReader ¶
type DevicesStatsUpdateReader struct {
// contains filtered or unexported fields
}
DevicesStatsUpdateReader is a Reader for the DevicesStatsUpdate structure.
func (*DevicesStatsUpdateReader) ReadResponse ¶
func (o *DevicesStatsUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.