Documentation ¶
Index ¶
- type Client
- type GetConfigDefault
- type GetConfigOK
- type GetConfigParams
- func (o *GetConfigParams) SetContext(ctx context.Context)
- func (o *GetConfigParams) SetHTTPClient(client *http.Client)
- func (o *GetConfigParams) SetPassword(password *string)
- func (o *GetConfigParams) SetSsid(ssid string)
- func (o *GetConfigParams) SetTimeout(timeout time.Duration)
- func (o *GetConfigParams) WithContext(ctx context.Context) *GetConfigParams
- func (o *GetConfigParams) WithHTTPClient(client *http.Client) *GetConfigParams
- func (o *GetConfigParams) WithPassword(password *string) *GetConfigParams
- func (o *GetConfigParams) WithSsid(ssid string) *GetConfigParams
- func (o *GetConfigParams) WithTimeout(timeout time.Duration) *GetConfigParams
- func (o *GetConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetConfigReader
- type GetDefault
- type GetOK
- type GetParams
- func (o *GetParams) SetContext(ctx context.Context)
- func (o *GetParams) SetHTTPClient(client *http.Client)
- func (o *GetParams) SetTimeout(timeout time.Duration)
- func (o *GetParams) WithContext(ctx context.Context) *GetParams
- func (o *GetParams) WithHTTPClient(client *http.Client) *GetParams
- func (o *GetParams) WithTimeout(timeout time.Duration) *GetParams
- func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReader
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 operations API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new operations API client.
func (*Client) GetConfig ¶
func (a *Client) GetConfig(params *GetConfigParams) (*GetConfigOK, error)
GetConfig Sets the SSID and password of a network
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetConfigDefault ¶
type GetConfigDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetConfigDefault handles this case with default header values.
Error
func NewGetConfigDefault ¶
func NewGetConfigDefault(code int) *GetConfigDefault
NewGetConfigDefault creates a GetConfigDefault with default headers values
func (*GetConfigDefault) Code ¶
func (o *GetConfigDefault) Code() int
Code gets the status code for the get config default response
func (*GetConfigDefault) Error ¶
func (o *GetConfigDefault) Error() string
type GetConfigOK ¶
type GetConfigOK struct {
Payload *models.ConfigResponse
}
GetConfigOK handles this case with default header values.
Success
func NewGetConfigOK ¶
func NewGetConfigOK() *GetConfigOK
NewGetConfigOK creates a GetConfigOK with default headers values
func (*GetConfigOK) Error ¶
func (o *GetConfigOK) Error() string
type GetConfigParams ¶
type GetConfigParams struct { /*Password*/ Password *string /*Ssid*/ Ssid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetConfigParams contains all the parameters to send to the API endpoint for the get config operation typically these are written to a http.Request
func NewGetConfigParams ¶
func NewGetConfigParams() *GetConfigParams
NewGetConfigParams creates a new GetConfigParams object with the default values initialized.
func NewGetConfigParamsWithContext ¶
func NewGetConfigParamsWithContext(ctx context.Context) *GetConfigParams
NewGetConfigParamsWithContext creates a new GetConfigParams object with the default values initialized, and the ability to set a context for a request
func NewGetConfigParamsWithHTTPClient ¶
func NewGetConfigParamsWithHTTPClient(client *http.Client) *GetConfigParams
NewGetConfigParamsWithHTTPClient creates a new GetConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetConfigParamsWithTimeout ¶
func NewGetConfigParamsWithTimeout(timeout time.Duration) *GetConfigParams
NewGetConfigParamsWithTimeout creates a new GetConfigParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetConfigParams) SetContext ¶
func (o *GetConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the get config params
func (*GetConfigParams) SetHTTPClient ¶
func (o *GetConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get config params
func (*GetConfigParams) SetPassword ¶
func (o *GetConfigParams) SetPassword(password *string)
SetPassword adds the password to the get config params
func (*GetConfigParams) SetSsid ¶
func (o *GetConfigParams) SetSsid(ssid string)
SetSsid adds the ssid to the get config params
func (*GetConfigParams) SetTimeout ¶
func (o *GetConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get config params
func (*GetConfigParams) WithContext ¶
func (o *GetConfigParams) WithContext(ctx context.Context) *GetConfigParams
WithContext adds the context to the get config params
func (*GetConfigParams) WithHTTPClient ¶
func (o *GetConfigParams) WithHTTPClient(client *http.Client) *GetConfigParams
WithHTTPClient adds the HTTPClient to the get config params
func (*GetConfigParams) WithPassword ¶
func (o *GetConfigParams) WithPassword(password *string) *GetConfigParams
WithPassword adds the password to the get config params
func (*GetConfigParams) WithSsid ¶
func (o *GetConfigParams) WithSsid(ssid string) *GetConfigParams
WithSsid adds the ssid to the get config params
func (*GetConfigParams) WithTimeout ¶
func (o *GetConfigParams) WithTimeout(timeout time.Duration) *GetConfigParams
WithTimeout adds the timeout to the get config params
func (*GetConfigParams) WriteToRequest ¶
func (o *GetConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetConfigReader ¶
type GetConfigReader struct {
// contains filtered or unexported fields
}
GetConfigReader is a Reader for the GetConfig structure.
func (*GetConfigReader) ReadResponse ¶
func (o *GetConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDefault ¶
type GetDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetDefault handles this case with default header values.
Error
func NewGetDefault ¶
func NewGetDefault(code int) *GetDefault
NewGetDefault creates a GetDefault with default headers values
func (*GetDefault) Code ¶
func (o *GetDefault) Code() int
Code gets the status code for the get default response
func (*GetDefault) Error ¶
func (o *GetDefault) Error() string
type GetOK ¶
type GetOK struct {
Payload *models.SensorData
}
GetOK handles this case with default header values.
Success
type GetParams ¶
type GetParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetParams contains all the parameters to send to the API endpoint for the get operation typically these are written to a http.Request
func NewGetParams ¶
func NewGetParams() *GetParams
NewGetParams creates a new GetParams object with the default values initialized.
func NewGetParamsWithContext ¶
NewGetParamsWithContext creates a new GetParams object with the default values initialized, and the ability to set a context for a request
func NewGetParamsWithHTTPClient ¶
NewGetParamsWithHTTPClient creates a new GetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetParamsWithTimeout ¶
NewGetParamsWithTimeout creates a new GetParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetParams) SetContext ¶
SetContext adds the context to the get params
func (*GetParams) SetHTTPClient ¶
SetHTTPClient adds the HTTPClient to the get params
func (*GetParams) SetTimeout ¶
SetTimeout adds the timeout to the get params
func (*GetParams) WithContext ¶
WithContext adds the context to the get params
func (*GetParams) WithHTTPClient ¶
WithHTTPClient adds the HTTPClient to the get params
func (*GetParams) WithTimeout ¶
WithTimeout adds the timeout to the get params
func (*GetParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetReader ¶
type GetReader struct {
// contains filtered or unexported fields
}
GetReader is a Reader for the Get structure.
func (*GetReader) ReadResponse ¶
func (o *GetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.