Documentation ¶
Index ¶
- type BindingListDefault
- type BindingListOK
- type BindingListParams
- func (o *BindingListParams) SetContext(ctx context.Context)
- func (o *BindingListParams) SetDefaults()
- func (o *BindingListParams) SetDeviceID(deviceID strfmt.UUID)
- func (o *BindingListParams) SetHTTPClient(client *http.Client)
- func (o *BindingListParams) SetTimeout(timeout time.Duration)
- func (o *BindingListParams) WithContext(ctx context.Context) *BindingListParams
- func (o *BindingListParams) WithDefaults() *BindingListParams
- func (o *BindingListParams) WithDeviceID(deviceID strfmt.UUID) *BindingListParams
- func (o *BindingListParams) WithHTTPClient(client *http.Client) *BindingListParams
- func (o *BindingListParams) WithTimeout(timeout time.Duration) *BindingListParams
- func (o *BindingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BindingListReader
- type Client
- func (a *Client) BindingList(params *BindingListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*BindingListOK, error)
- func (a *Client) GetByID(params *GetByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetByIDOK, error)
- func (a *Client) PeersList(params *PeersListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PeersListOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetByIDDefault
- type GetByIDOK
- type GetByIDParams
- func (o *GetByIDParams) SetContext(ctx context.Context)
- func (o *GetByIDParams) SetDefaults()
- func (o *GetByIDParams) SetDeviceID(deviceID strfmt.UUID)
- func (o *GetByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetByIDParams) WithContext(ctx context.Context) *GetByIDParams
- func (o *GetByIDParams) WithDefaults() *GetByIDParams
- func (o *GetByIDParams) WithDeviceID(deviceID strfmt.UUID) *GetByIDParams
- func (o *GetByIDParams) WithHTTPClient(client *http.Client) *GetByIDParams
- func (o *GetByIDParams) WithTimeout(timeout time.Duration) *GetByIDParams
- func (o *GetByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetByIDReader
- type PeersListDefault
- type PeersListOK
- type PeersListParams
- func (o *PeersListParams) SetContext(ctx context.Context)
- func (o *PeersListParams) SetDefaults()
- func (o *PeersListParams) SetDeviceID(deviceID strfmt.UUID)
- func (o *PeersListParams) SetHTTPClient(client *http.Client)
- func (o *PeersListParams) SetTimeout(timeout time.Duration)
- func (o *PeersListParams) WithContext(ctx context.Context) *PeersListParams
- func (o *PeersListParams) WithDefaults() *PeersListParams
- func (o *PeersListParams) WithDeviceID(deviceID strfmt.UUID) *PeersListParams
- func (o *PeersListParams) WithHTTPClient(client *http.Client) *PeersListParams
- func (o *PeersListParams) WithTimeout(timeout time.Duration) *PeersListParams
- func (o *PeersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PeersListReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingListDefault ¶
BindingListDefault describes a response with status code -1, with default header values.
error
func NewBindingListDefault ¶
func NewBindingListDefault(code int) *BindingListDefault
NewBindingListDefault creates a BindingListDefault with default headers values
func (*BindingListDefault) Code ¶
func (o *BindingListDefault) Code() int
Code gets the status code for the binding list default response
func (*BindingListDefault) Error ¶
func (o *BindingListDefault) Error() string
func (*BindingListDefault) GetPayload ¶
func (o *BindingListDefault) GetPayload() *models.Error
type BindingListOK ¶
type BindingListOK struct {
Payload models.DeviceBindings
}
BindingListOK describes a response with status code 200, with default header values.
ok
func NewBindingListOK ¶
func NewBindingListOK() *BindingListOK
NewBindingListOK creates a BindingListOK with default headers values
func (*BindingListOK) Error ¶
func (o *BindingListOK) Error() string
func (*BindingListOK) GetPayload ¶
func (o *BindingListOK) GetPayload() models.DeviceBindings
type BindingListParams ¶
type BindingListParams struct { /* DeviceID. Device ID Format: uuid */ DeviceID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BindingListParams contains all the parameters to send to the API endpoint
for the binding list operation. Typically these are written to a http.Request.
func NewBindingListParams ¶
func NewBindingListParams() *BindingListParams
NewBindingListParams creates a new BindingListParams 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 NewBindingListParamsWithContext ¶
func NewBindingListParamsWithContext(ctx context.Context) *BindingListParams
NewBindingListParamsWithContext creates a new BindingListParams object with the ability to set a context for a request.
func NewBindingListParamsWithHTTPClient ¶
func NewBindingListParamsWithHTTPClient(client *http.Client) *BindingListParams
NewBindingListParamsWithHTTPClient creates a new BindingListParams object with the ability to set a custom HTTPClient for a request.
func NewBindingListParamsWithTimeout ¶
func NewBindingListParamsWithTimeout(timeout time.Duration) *BindingListParams
NewBindingListParamsWithTimeout creates a new BindingListParams object with the ability to set a timeout on a request.
func (*BindingListParams) SetContext ¶
func (o *BindingListParams) SetContext(ctx context.Context)
SetContext adds the context to the binding list params
func (*BindingListParams) SetDefaults ¶
func (o *BindingListParams) SetDefaults()
SetDefaults hydrates default values in the binding list params (not the query body).
All values with no default are reset to their zero value.
func (*BindingListParams) SetDeviceID ¶
func (o *BindingListParams) SetDeviceID(deviceID strfmt.UUID)
SetDeviceID adds the deviceId to the binding list params
func (*BindingListParams) SetHTTPClient ¶
func (o *BindingListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the binding list params
func (*BindingListParams) SetTimeout ¶
func (o *BindingListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the binding list params
func (*BindingListParams) WithContext ¶
func (o *BindingListParams) WithContext(ctx context.Context) *BindingListParams
WithContext adds the context to the binding list params
func (*BindingListParams) WithDefaults ¶
func (o *BindingListParams) WithDefaults() *BindingListParams
WithDefaults hydrates default values in the binding list params (not the query body).
All values with no default are reset to their zero value.
func (*BindingListParams) WithDeviceID ¶
func (o *BindingListParams) WithDeviceID(deviceID strfmt.UUID) *BindingListParams
WithDeviceID adds the deviceID to the binding list params
func (*BindingListParams) WithHTTPClient ¶
func (o *BindingListParams) WithHTTPClient(client *http.Client) *BindingListParams
WithHTTPClient adds the HTTPClient to the binding list params
func (*BindingListParams) WithTimeout ¶
func (o *BindingListParams) WithTimeout(timeout time.Duration) *BindingListParams
WithTimeout adds the timeout to the binding list params
func (*BindingListParams) WriteToRequest ¶
func (o *BindingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BindingListReader ¶
type BindingListReader struct {
// contains filtered or unexported fields
}
BindingListReader is a Reader for the BindingList structure.
func (*BindingListReader) ReadResponse ¶
func (o *BindingListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for device API
func (*Client) BindingList ¶
func (a *Client) BindingList(params *BindingListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BindingListOK, error)
BindingList devices bindings Each device has bindings to specific servers. This method returns hostnames where this device
bonded at a particular time.
func (*Client) GetByID ¶
func (a *Client) GetByID(params *GetByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetByIDOK, error)
GetByID devices info
Retrieve device info
func (*Client) PeersList ¶
func (a *Client) PeersList(params *PeersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PeersListOK, error)
PeersList devices peers
Retrieve device peers
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 { BindingList(params *BindingListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BindingListOK, error) GetByID(params *GetByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetByIDOK, error) PeersList(params *PeersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PeersListOK, 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 GetByIDDefault ¶
GetByIDDefault describes a response with status code -1, with default header values.
error
func NewGetByIDDefault ¶
func NewGetByIDDefault(code int) *GetByIDDefault
NewGetByIDDefault creates a GetByIDDefault with default headers values
func (*GetByIDDefault) Code ¶
func (o *GetByIDDefault) Code() int
Code gets the status code for the get by ID default response
func (*GetByIDDefault) Error ¶
func (o *GetByIDDefault) Error() string
func (*GetByIDDefault) GetPayload ¶
func (o *GetByIDDefault) GetPayload() *models.Error
type GetByIDOK ¶
type GetByIDOK struct {
Payload *models.DeviceFullDetails
}
GetByIDOK describes a response with status code 200, with default header values.
ok
func NewGetByIDOK ¶
func NewGetByIDOK() *GetByIDOK
NewGetByIDOK creates a GetByIDOK with default headers values
func (*GetByIDOK) GetPayload ¶
func (o *GetByIDOK) GetPayload() *models.DeviceFullDetails
type GetByIDParams ¶
type GetByIDParams struct { /* DeviceID. Device ID Format: uuid */ DeviceID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetByIDParams contains all the parameters to send to the API endpoint
for the get by ID operation. Typically these are written to a http.Request.
func NewGetByIDParams ¶
func NewGetByIDParams() *GetByIDParams
NewGetByIDParams creates a new GetByIDParams 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 NewGetByIDParamsWithContext ¶
func NewGetByIDParamsWithContext(ctx context.Context) *GetByIDParams
NewGetByIDParamsWithContext creates a new GetByIDParams object with the ability to set a context for a request.
func NewGetByIDParamsWithHTTPClient ¶
func NewGetByIDParamsWithHTTPClient(client *http.Client) *GetByIDParams
NewGetByIDParamsWithHTTPClient creates a new GetByIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetByIDParamsWithTimeout ¶
func NewGetByIDParamsWithTimeout(timeout time.Duration) *GetByIDParams
NewGetByIDParamsWithTimeout creates a new GetByIDParams object with the ability to set a timeout on a request.
func (*GetByIDParams) SetContext ¶
func (o *GetByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get by ID params
func (*GetByIDParams) SetDefaults ¶
func (o *GetByIDParams) SetDefaults()
SetDefaults hydrates default values in the get by ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetByIDParams) SetDeviceID ¶
func (o *GetByIDParams) SetDeviceID(deviceID strfmt.UUID)
SetDeviceID adds the deviceId to the get by ID params
func (*GetByIDParams) SetHTTPClient ¶
func (o *GetByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get by ID params
func (*GetByIDParams) SetTimeout ¶
func (o *GetByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get by ID params
func (*GetByIDParams) WithContext ¶
func (o *GetByIDParams) WithContext(ctx context.Context) *GetByIDParams
WithContext adds the context to the get by ID params
func (*GetByIDParams) WithDefaults ¶
func (o *GetByIDParams) WithDefaults() *GetByIDParams
WithDefaults hydrates default values in the get by ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetByIDParams) WithDeviceID ¶
func (o *GetByIDParams) WithDeviceID(deviceID strfmt.UUID) *GetByIDParams
WithDeviceID adds the deviceID to the get by ID params
func (*GetByIDParams) WithHTTPClient ¶
func (o *GetByIDParams) WithHTTPClient(client *http.Client) *GetByIDParams
WithHTTPClient adds the HTTPClient to the get by ID params
func (*GetByIDParams) WithTimeout ¶
func (o *GetByIDParams) WithTimeout(timeout time.Duration) *GetByIDParams
WithTimeout adds the timeout to the get by ID params
func (*GetByIDParams) WriteToRequest ¶
func (o *GetByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetByIDReader ¶
type GetByIDReader struct {
// contains filtered or unexported fields
}
GetByIDReader is a Reader for the GetByID structure.
func (*GetByIDReader) ReadResponse ¶
func (o *GetByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PeersListDefault ¶
PeersListDefault describes a response with status code -1, with default header values.
error
func NewPeersListDefault ¶
func NewPeersListDefault(code int) *PeersListDefault
NewPeersListDefault creates a PeersListDefault with default headers values
func (*PeersListDefault) Code ¶
func (o *PeersListDefault) Code() int
Code gets the status code for the peers list default response
func (*PeersListDefault) Error ¶
func (o *PeersListDefault) Error() string
func (*PeersListDefault) GetPayload ¶
func (o *PeersListDefault) GetPayload() *models.Error
type PeersListOK ¶
type PeersListOK struct {
Payload []*models.DevicePeer
}
PeersListOK describes a response with status code 200, with default header values.
ok
func NewPeersListOK ¶
func NewPeersListOK() *PeersListOK
NewPeersListOK creates a PeersListOK with default headers values
func (*PeersListOK) Error ¶
func (o *PeersListOK) Error() string
func (*PeersListOK) GetPayload ¶
func (o *PeersListOK) GetPayload() []*models.DevicePeer
type PeersListParams ¶
type PeersListParams struct { /* DeviceID. Device ID Format: uuid */ DeviceID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PeersListParams contains all the parameters to send to the API endpoint
for the peers list operation. Typically these are written to a http.Request.
func NewPeersListParams ¶
func NewPeersListParams() *PeersListParams
NewPeersListParams creates a new PeersListParams 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 NewPeersListParamsWithContext ¶
func NewPeersListParamsWithContext(ctx context.Context) *PeersListParams
NewPeersListParamsWithContext creates a new PeersListParams object with the ability to set a context for a request.
func NewPeersListParamsWithHTTPClient ¶
func NewPeersListParamsWithHTTPClient(client *http.Client) *PeersListParams
NewPeersListParamsWithHTTPClient creates a new PeersListParams object with the ability to set a custom HTTPClient for a request.
func NewPeersListParamsWithTimeout ¶
func NewPeersListParamsWithTimeout(timeout time.Duration) *PeersListParams
NewPeersListParamsWithTimeout creates a new PeersListParams object with the ability to set a timeout on a request.
func (*PeersListParams) SetContext ¶
func (o *PeersListParams) SetContext(ctx context.Context)
SetContext adds the context to the peers list params
func (*PeersListParams) SetDefaults ¶
func (o *PeersListParams) SetDefaults()
SetDefaults hydrates default values in the peers list params (not the query body).
All values with no default are reset to their zero value.
func (*PeersListParams) SetDeviceID ¶
func (o *PeersListParams) SetDeviceID(deviceID strfmt.UUID)
SetDeviceID adds the deviceId to the peers list params
func (*PeersListParams) SetHTTPClient ¶
func (o *PeersListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the peers list params
func (*PeersListParams) SetTimeout ¶
func (o *PeersListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the peers list params
func (*PeersListParams) WithContext ¶
func (o *PeersListParams) WithContext(ctx context.Context) *PeersListParams
WithContext adds the context to the peers list params
func (*PeersListParams) WithDefaults ¶
func (o *PeersListParams) WithDefaults() *PeersListParams
WithDefaults hydrates default values in the peers list params (not the query body).
All values with no default are reset to their zero value.
func (*PeersListParams) WithDeviceID ¶
func (o *PeersListParams) WithDeviceID(deviceID strfmt.UUID) *PeersListParams
WithDeviceID adds the deviceID to the peers list params
func (*PeersListParams) WithHTTPClient ¶
func (o *PeersListParams) WithHTTPClient(client *http.Client) *PeersListParams
WithHTTPClient adds the HTTPClient to the peers list params
func (*PeersListParams) WithTimeout ¶
func (o *PeersListParams) WithTimeout(timeout time.Duration) *PeersListParams
WithTimeout adds the timeout to the peers list params
func (*PeersListParams) WriteToRequest ¶
func (o *PeersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PeersListReader ¶
type PeersListReader struct {
// contains filtered or unexported fields
}
PeersListReader is a Reader for the PeersList structure.
func (*PeersListReader) ReadResponse ¶
func (o *PeersListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.