Documentation ¶
Index ¶
- type API
- type Client
- func (a *Client) GetControlMessageForDevice(ctx context.Context, params *GetControlMessageForDeviceParams) (*GetControlMessageForDeviceOK, error)
- func (a *Client) GetDataMessageForDevice(ctx context.Context, params *GetDataMessageForDeviceParams) (*GetDataMessageForDeviceOK, error)
- func (a *Client) PostControlMessageForDevice(ctx context.Context, params *PostControlMessageForDeviceParams) (*PostControlMessageForDeviceOK, error)
- func (a *Client) PostDataMessageForDevice(ctx context.Context, params *PostDataMessageForDeviceParams) (*PostDataMessageForDeviceOK, *PostDataMessageForDeviceAlreadyReported, error)
- type GetControlMessageForDeviceForbidden
- type GetControlMessageForDeviceInternalServerError
- type GetControlMessageForDeviceNotFound
- type GetControlMessageForDeviceOK
- type GetControlMessageForDeviceParams
- func NewGetControlMessageForDeviceParams() *GetControlMessageForDeviceParams
- func NewGetControlMessageForDeviceParamsWithContext(ctx context.Context) *GetControlMessageForDeviceParams
- func NewGetControlMessageForDeviceParamsWithHTTPClient(client *http.Client) *GetControlMessageForDeviceParams
- func NewGetControlMessageForDeviceParamsWithTimeout(timeout time.Duration) *GetControlMessageForDeviceParams
- func (o *GetControlMessageForDeviceParams) SetContext(ctx context.Context)
- func (o *GetControlMessageForDeviceParams) SetDefaults()
- func (o *GetControlMessageForDeviceParams) SetDeviceID(deviceID string)
- func (o *GetControlMessageForDeviceParams) SetHTTPClient(client *http.Client)
- func (o *GetControlMessageForDeviceParams) SetTimeout(timeout time.Duration)
- func (o *GetControlMessageForDeviceParams) WithContext(ctx context.Context) *GetControlMessageForDeviceParams
- func (o *GetControlMessageForDeviceParams) WithDefaults() *GetControlMessageForDeviceParams
- func (o *GetControlMessageForDeviceParams) WithDeviceID(deviceID string) *GetControlMessageForDeviceParams
- func (o *GetControlMessageForDeviceParams) WithHTTPClient(client *http.Client) *GetControlMessageForDeviceParams
- func (o *GetControlMessageForDeviceParams) WithTimeout(timeout time.Duration) *GetControlMessageForDeviceParams
- func (o *GetControlMessageForDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetControlMessageForDeviceReader
- type GetControlMessageForDeviceUnauthorized
- type GetDataMessageForDeviceForbidden
- type GetDataMessageForDeviceInternalServerError
- type GetDataMessageForDeviceNotFound
- type GetDataMessageForDeviceOK
- type GetDataMessageForDeviceParams
- func NewGetDataMessageForDeviceParams() *GetDataMessageForDeviceParams
- func NewGetDataMessageForDeviceParamsWithContext(ctx context.Context) *GetDataMessageForDeviceParams
- func NewGetDataMessageForDeviceParamsWithHTTPClient(client *http.Client) *GetDataMessageForDeviceParams
- func NewGetDataMessageForDeviceParamsWithTimeout(timeout time.Duration) *GetDataMessageForDeviceParams
- func (o *GetDataMessageForDeviceParams) SetContext(ctx context.Context)
- func (o *GetDataMessageForDeviceParams) SetDefaults()
- func (o *GetDataMessageForDeviceParams) SetDeviceID(deviceID string)
- func (o *GetDataMessageForDeviceParams) SetHTTPClient(client *http.Client)
- func (o *GetDataMessageForDeviceParams) SetTimeout(timeout time.Duration)
- func (o *GetDataMessageForDeviceParams) WithContext(ctx context.Context) *GetDataMessageForDeviceParams
- func (o *GetDataMessageForDeviceParams) WithDefaults() *GetDataMessageForDeviceParams
- func (o *GetDataMessageForDeviceParams) WithDeviceID(deviceID string) *GetDataMessageForDeviceParams
- func (o *GetDataMessageForDeviceParams) WithHTTPClient(client *http.Client) *GetDataMessageForDeviceParams
- func (o *GetDataMessageForDeviceParams) WithTimeout(timeout time.Duration) *GetDataMessageForDeviceParams
- func (o *GetDataMessageForDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDataMessageForDeviceReader
- type GetDataMessageForDeviceUnauthorized
- type MockAPI
- func (_m *MockAPI) GetControlMessageForDevice(ctx context.Context, params *GetControlMessageForDeviceParams) (*GetControlMessageForDeviceOK, error)
- func (_m *MockAPI) GetDataMessageForDevice(ctx context.Context, params *GetDataMessageForDeviceParams) (*GetDataMessageForDeviceOK, error)
- func (_m *MockAPI) PostControlMessageForDevice(ctx context.Context, params *PostControlMessageForDeviceParams) (*PostControlMessageForDeviceOK, error)
- func (_m *MockAPI) PostDataMessageForDevice(ctx context.Context, params *PostDataMessageForDeviceParams) (*PostDataMessageForDeviceOK, *PostDataMessageForDeviceAlreadyReported, error)
- type PostControlMessageForDeviceForbidden
- type PostControlMessageForDeviceInternalServerError
- type PostControlMessageForDeviceNotFound
- type PostControlMessageForDeviceOK
- type PostControlMessageForDeviceParams
- func NewPostControlMessageForDeviceParams() *PostControlMessageForDeviceParams
- func NewPostControlMessageForDeviceParamsWithContext(ctx context.Context) *PostControlMessageForDeviceParams
- func NewPostControlMessageForDeviceParamsWithHTTPClient(client *http.Client) *PostControlMessageForDeviceParams
- func NewPostControlMessageForDeviceParamsWithTimeout(timeout time.Duration) *PostControlMessageForDeviceParams
- func (o *PostControlMessageForDeviceParams) SetContext(ctx context.Context)
- func (o *PostControlMessageForDeviceParams) SetDefaults()
- func (o *PostControlMessageForDeviceParams) SetDeviceID(deviceID string)
- func (o *PostControlMessageForDeviceParams) SetHTTPClient(client *http.Client)
- func (o *PostControlMessageForDeviceParams) SetMessage(message *models.Message)
- func (o *PostControlMessageForDeviceParams) SetTimeout(timeout time.Duration)
- func (o *PostControlMessageForDeviceParams) WithContext(ctx context.Context) *PostControlMessageForDeviceParams
- func (o *PostControlMessageForDeviceParams) WithDefaults() *PostControlMessageForDeviceParams
- func (o *PostControlMessageForDeviceParams) WithDeviceID(deviceID string) *PostControlMessageForDeviceParams
- func (o *PostControlMessageForDeviceParams) WithHTTPClient(client *http.Client) *PostControlMessageForDeviceParams
- func (o *PostControlMessageForDeviceParams) WithMessage(message *models.Message) *PostControlMessageForDeviceParams
- func (o *PostControlMessageForDeviceParams) WithTimeout(timeout time.Duration) *PostControlMessageForDeviceParams
- func (o *PostControlMessageForDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostControlMessageForDeviceReader
- type PostControlMessageForDeviceUnauthorized
- type PostDataMessageForDeviceAlreadyReported
- type PostDataMessageForDeviceBadRequest
- type PostDataMessageForDeviceForbidden
- type PostDataMessageForDeviceInternalServerError
- type PostDataMessageForDeviceNotFound
- type PostDataMessageForDeviceOK
- type PostDataMessageForDeviceParams
- func NewPostDataMessageForDeviceParams() *PostDataMessageForDeviceParams
- func NewPostDataMessageForDeviceParamsWithContext(ctx context.Context) *PostDataMessageForDeviceParams
- func NewPostDataMessageForDeviceParamsWithHTTPClient(client *http.Client) *PostDataMessageForDeviceParams
- func NewPostDataMessageForDeviceParamsWithTimeout(timeout time.Duration) *PostDataMessageForDeviceParams
- func (o *PostDataMessageForDeviceParams) SetContext(ctx context.Context)
- func (o *PostDataMessageForDeviceParams) SetDefaults()
- func (o *PostDataMessageForDeviceParams) SetDeviceID(deviceID string)
- func (o *PostDataMessageForDeviceParams) SetHTTPClient(client *http.Client)
- func (o *PostDataMessageForDeviceParams) SetMessage(message *models.Message)
- func (o *PostDataMessageForDeviceParams) SetTimeout(timeout time.Duration)
- func (o *PostDataMessageForDeviceParams) WithContext(ctx context.Context) *PostDataMessageForDeviceParams
- func (o *PostDataMessageForDeviceParams) WithDefaults() *PostDataMessageForDeviceParams
- func (o *PostDataMessageForDeviceParams) WithDeviceID(deviceID string) *PostDataMessageForDeviceParams
- func (o *PostDataMessageForDeviceParams) WithHTTPClient(client *http.Client) *PostDataMessageForDeviceParams
- func (o *PostDataMessageForDeviceParams) WithMessage(message *models.Message) *PostDataMessageForDeviceParams
- func (o *PostDataMessageForDeviceParams) WithTimeout(timeout time.Duration) *PostDataMessageForDeviceParams
- func (o *PostDataMessageForDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostDataMessageForDeviceReader
- type PostDataMessageForDeviceUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* GetControlMessageForDevice Get control message for device API*/ GetControlMessageForDevice(ctx context.Context, params *GetControlMessageForDeviceParams) (*GetControlMessageForDeviceOK, error) /* GetDataMessageForDevice Get data message for device API*/ GetDataMessageForDevice(ctx context.Context, params *GetDataMessageForDeviceParams) (*GetDataMessageForDeviceOK, error) /* PostControlMessageForDevice Post control message for device API*/ PostControlMessageForDevice(ctx context.Context, params *PostControlMessageForDeviceParams) (*PostControlMessageForDeviceOK, error) /* PostDataMessageForDevice Post data message for device API*/ PostDataMessageForDevice(ctx context.Context, params *PostDataMessageForDeviceParams) (*PostDataMessageForDeviceOK, *PostDataMessageForDeviceAlreadyReported, error) }
API is the interface of the yggdrasil client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for yggdrasil API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new yggdrasil API client.
func (*Client) GetControlMessageForDevice ¶
func (a *Client) GetControlMessageForDevice(ctx context.Context, params *GetControlMessageForDeviceParams) (*GetControlMessageForDeviceOK, error)
GetControlMessageForDevice Get control message for device API
func (*Client) GetDataMessageForDevice ¶
func (a *Client) GetDataMessageForDevice(ctx context.Context, params *GetDataMessageForDeviceParams) (*GetDataMessageForDeviceOK, error)
GetDataMessageForDevice Get data message for device API
func (*Client) PostControlMessageForDevice ¶
func (a *Client) PostControlMessageForDevice(ctx context.Context, params *PostControlMessageForDeviceParams) (*PostControlMessageForDeviceOK, error)
PostControlMessageForDevice Post control message for device API
func (*Client) PostDataMessageForDevice ¶
func (a *Client) PostDataMessageForDevice(ctx context.Context, params *PostDataMessageForDeviceParams) (*PostDataMessageForDeviceOK, *PostDataMessageForDeviceAlreadyReported, error)
PostDataMessageForDevice Post data message for device API
type GetControlMessageForDeviceForbidden ¶
type GetControlMessageForDeviceForbidden struct { }
GetControlMessageForDeviceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetControlMessageForDeviceForbidden ¶
func NewGetControlMessageForDeviceForbidden() *GetControlMessageForDeviceForbidden
NewGetControlMessageForDeviceForbidden creates a GetControlMessageForDeviceForbidden with default headers values
func (*GetControlMessageForDeviceForbidden) Error ¶
func (o *GetControlMessageForDeviceForbidden) Error() string
type GetControlMessageForDeviceInternalServerError ¶
type GetControlMessageForDeviceInternalServerError struct { }
GetControlMessageForDeviceInternalServerError describes a response with status code 500, with default header values.
Error
func NewGetControlMessageForDeviceInternalServerError ¶
func NewGetControlMessageForDeviceInternalServerError() *GetControlMessageForDeviceInternalServerError
NewGetControlMessageForDeviceInternalServerError creates a GetControlMessageForDeviceInternalServerError with default headers values
func (*GetControlMessageForDeviceInternalServerError) Error ¶
func (o *GetControlMessageForDeviceInternalServerError) Error() string
type GetControlMessageForDeviceNotFound ¶
type GetControlMessageForDeviceNotFound struct { }
GetControlMessageForDeviceNotFound describes a response with status code 404, with default header values.
Error
func NewGetControlMessageForDeviceNotFound ¶
func NewGetControlMessageForDeviceNotFound() *GetControlMessageForDeviceNotFound
NewGetControlMessageForDeviceNotFound creates a GetControlMessageForDeviceNotFound with default headers values
func (*GetControlMessageForDeviceNotFound) Error ¶
func (o *GetControlMessageForDeviceNotFound) Error() string
type GetControlMessageForDeviceOK ¶
GetControlMessageForDeviceOK describes a response with status code 200, with default header values.
Success
func NewGetControlMessageForDeviceOK ¶
func NewGetControlMessageForDeviceOK() *GetControlMessageForDeviceOK
NewGetControlMessageForDeviceOK creates a GetControlMessageForDeviceOK with default headers values
func (*GetControlMessageForDeviceOK) Error ¶
func (o *GetControlMessageForDeviceOK) Error() string
func (*GetControlMessageForDeviceOK) GetPayload ¶
func (o *GetControlMessageForDeviceOK) GetPayload() *models.Message
type GetControlMessageForDeviceParams ¶
type GetControlMessageForDeviceParams struct { /* DeviceID. Device ID */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetControlMessageForDeviceParams contains all the parameters to send to the API endpoint
for the get control message for device operation. Typically these are written to a http.Request.
func NewGetControlMessageForDeviceParams ¶
func NewGetControlMessageForDeviceParams() *GetControlMessageForDeviceParams
NewGetControlMessageForDeviceParams creates a new GetControlMessageForDeviceParams 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 NewGetControlMessageForDeviceParamsWithContext ¶
func NewGetControlMessageForDeviceParamsWithContext(ctx context.Context) *GetControlMessageForDeviceParams
NewGetControlMessageForDeviceParamsWithContext creates a new GetControlMessageForDeviceParams object with the ability to set a context for a request.
func NewGetControlMessageForDeviceParamsWithHTTPClient ¶
func NewGetControlMessageForDeviceParamsWithHTTPClient(client *http.Client) *GetControlMessageForDeviceParams
NewGetControlMessageForDeviceParamsWithHTTPClient creates a new GetControlMessageForDeviceParams object with the ability to set a custom HTTPClient for a request.
func NewGetControlMessageForDeviceParamsWithTimeout ¶
func NewGetControlMessageForDeviceParamsWithTimeout(timeout time.Duration) *GetControlMessageForDeviceParams
NewGetControlMessageForDeviceParamsWithTimeout creates a new GetControlMessageForDeviceParams object with the ability to set a timeout on a request.
func (*GetControlMessageForDeviceParams) SetContext ¶
func (o *GetControlMessageForDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the get control message for device params
func (*GetControlMessageForDeviceParams) SetDefaults ¶ added in v0.2.0
func (o *GetControlMessageForDeviceParams) SetDefaults()
SetDefaults hydrates default values in the get control message for device params (not the query body).
All values with no default are reset to their zero value.
func (*GetControlMessageForDeviceParams) SetDeviceID ¶
func (o *GetControlMessageForDeviceParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the get control message for device params
func (*GetControlMessageForDeviceParams) SetHTTPClient ¶
func (o *GetControlMessageForDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get control message for device params
func (*GetControlMessageForDeviceParams) SetTimeout ¶
func (o *GetControlMessageForDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get control message for device params
func (*GetControlMessageForDeviceParams) WithContext ¶
func (o *GetControlMessageForDeviceParams) WithContext(ctx context.Context) *GetControlMessageForDeviceParams
WithContext adds the context to the get control message for device params
func (*GetControlMessageForDeviceParams) WithDefaults ¶ added in v0.2.0
func (o *GetControlMessageForDeviceParams) WithDefaults() *GetControlMessageForDeviceParams
WithDefaults hydrates default values in the get control message for device params (not the query body).
All values with no default are reset to their zero value.
func (*GetControlMessageForDeviceParams) WithDeviceID ¶
func (o *GetControlMessageForDeviceParams) WithDeviceID(deviceID string) *GetControlMessageForDeviceParams
WithDeviceID adds the deviceID to the get control message for device params
func (*GetControlMessageForDeviceParams) WithHTTPClient ¶
func (o *GetControlMessageForDeviceParams) WithHTTPClient(client *http.Client) *GetControlMessageForDeviceParams
WithHTTPClient adds the HTTPClient to the get control message for device params
func (*GetControlMessageForDeviceParams) WithTimeout ¶
func (o *GetControlMessageForDeviceParams) WithTimeout(timeout time.Duration) *GetControlMessageForDeviceParams
WithTimeout adds the timeout to the get control message for device params
func (*GetControlMessageForDeviceParams) WriteToRequest ¶
func (o *GetControlMessageForDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetControlMessageForDeviceReader ¶
type GetControlMessageForDeviceReader struct {
// contains filtered or unexported fields
}
GetControlMessageForDeviceReader is a Reader for the GetControlMessageForDevice structure.
func (*GetControlMessageForDeviceReader) ReadResponse ¶
func (o *GetControlMessageForDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetControlMessageForDeviceUnauthorized ¶
type GetControlMessageForDeviceUnauthorized struct { }
GetControlMessageForDeviceUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetControlMessageForDeviceUnauthorized ¶
func NewGetControlMessageForDeviceUnauthorized() *GetControlMessageForDeviceUnauthorized
NewGetControlMessageForDeviceUnauthorized creates a GetControlMessageForDeviceUnauthorized with default headers values
func (*GetControlMessageForDeviceUnauthorized) Error ¶
func (o *GetControlMessageForDeviceUnauthorized) Error() string
type GetDataMessageForDeviceForbidden ¶
type GetDataMessageForDeviceForbidden struct { }
GetDataMessageForDeviceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetDataMessageForDeviceForbidden ¶
func NewGetDataMessageForDeviceForbidden() *GetDataMessageForDeviceForbidden
NewGetDataMessageForDeviceForbidden creates a GetDataMessageForDeviceForbidden with default headers values
func (*GetDataMessageForDeviceForbidden) Error ¶
func (o *GetDataMessageForDeviceForbidden) Error() string
type GetDataMessageForDeviceInternalServerError ¶
type GetDataMessageForDeviceInternalServerError struct { }
GetDataMessageForDeviceInternalServerError describes a response with status code 500, with default header values.
Error
func NewGetDataMessageForDeviceInternalServerError ¶
func NewGetDataMessageForDeviceInternalServerError() *GetDataMessageForDeviceInternalServerError
NewGetDataMessageForDeviceInternalServerError creates a GetDataMessageForDeviceInternalServerError with default headers values
func (*GetDataMessageForDeviceInternalServerError) Error ¶
func (o *GetDataMessageForDeviceInternalServerError) Error() string
type GetDataMessageForDeviceNotFound ¶
type GetDataMessageForDeviceNotFound struct { }
GetDataMessageForDeviceNotFound describes a response with status code 404, with default header values.
Error
func NewGetDataMessageForDeviceNotFound ¶
func NewGetDataMessageForDeviceNotFound() *GetDataMessageForDeviceNotFound
NewGetDataMessageForDeviceNotFound creates a GetDataMessageForDeviceNotFound with default headers values
func (*GetDataMessageForDeviceNotFound) Error ¶
func (o *GetDataMessageForDeviceNotFound) Error() string
type GetDataMessageForDeviceOK ¶
GetDataMessageForDeviceOK describes a response with status code 200, with default header values.
Success
func NewGetDataMessageForDeviceOK ¶
func NewGetDataMessageForDeviceOK() *GetDataMessageForDeviceOK
NewGetDataMessageForDeviceOK creates a GetDataMessageForDeviceOK with default headers values
func (*GetDataMessageForDeviceOK) Error ¶
func (o *GetDataMessageForDeviceOK) Error() string
func (*GetDataMessageForDeviceOK) GetPayload ¶
func (o *GetDataMessageForDeviceOK) GetPayload() *models.Message
type GetDataMessageForDeviceParams ¶
type GetDataMessageForDeviceParams struct { /* DeviceID. Device ID */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDataMessageForDeviceParams contains all the parameters to send to the API endpoint
for the get data message for device operation. Typically these are written to a http.Request.
func NewGetDataMessageForDeviceParams ¶
func NewGetDataMessageForDeviceParams() *GetDataMessageForDeviceParams
NewGetDataMessageForDeviceParams creates a new GetDataMessageForDeviceParams 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 NewGetDataMessageForDeviceParamsWithContext ¶
func NewGetDataMessageForDeviceParamsWithContext(ctx context.Context) *GetDataMessageForDeviceParams
NewGetDataMessageForDeviceParamsWithContext creates a new GetDataMessageForDeviceParams object with the ability to set a context for a request.
func NewGetDataMessageForDeviceParamsWithHTTPClient ¶
func NewGetDataMessageForDeviceParamsWithHTTPClient(client *http.Client) *GetDataMessageForDeviceParams
NewGetDataMessageForDeviceParamsWithHTTPClient creates a new GetDataMessageForDeviceParams object with the ability to set a custom HTTPClient for a request.
func NewGetDataMessageForDeviceParamsWithTimeout ¶
func NewGetDataMessageForDeviceParamsWithTimeout(timeout time.Duration) *GetDataMessageForDeviceParams
NewGetDataMessageForDeviceParamsWithTimeout creates a new GetDataMessageForDeviceParams object with the ability to set a timeout on a request.
func (*GetDataMessageForDeviceParams) SetContext ¶
func (o *GetDataMessageForDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the get data message for device params
func (*GetDataMessageForDeviceParams) SetDefaults ¶ added in v0.2.0
func (o *GetDataMessageForDeviceParams) SetDefaults()
SetDefaults hydrates default values in the get data message for device params (not the query body).
All values with no default are reset to their zero value.
func (*GetDataMessageForDeviceParams) SetDeviceID ¶
func (o *GetDataMessageForDeviceParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the get data message for device params
func (*GetDataMessageForDeviceParams) SetHTTPClient ¶
func (o *GetDataMessageForDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get data message for device params
func (*GetDataMessageForDeviceParams) SetTimeout ¶
func (o *GetDataMessageForDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get data message for device params
func (*GetDataMessageForDeviceParams) WithContext ¶
func (o *GetDataMessageForDeviceParams) WithContext(ctx context.Context) *GetDataMessageForDeviceParams
WithContext adds the context to the get data message for device params
func (*GetDataMessageForDeviceParams) WithDefaults ¶ added in v0.2.0
func (o *GetDataMessageForDeviceParams) WithDefaults() *GetDataMessageForDeviceParams
WithDefaults hydrates default values in the get data message for device params (not the query body).
All values with no default are reset to their zero value.
func (*GetDataMessageForDeviceParams) WithDeviceID ¶
func (o *GetDataMessageForDeviceParams) WithDeviceID(deviceID string) *GetDataMessageForDeviceParams
WithDeviceID adds the deviceID to the get data message for device params
func (*GetDataMessageForDeviceParams) WithHTTPClient ¶
func (o *GetDataMessageForDeviceParams) WithHTTPClient(client *http.Client) *GetDataMessageForDeviceParams
WithHTTPClient adds the HTTPClient to the get data message for device params
func (*GetDataMessageForDeviceParams) WithTimeout ¶
func (o *GetDataMessageForDeviceParams) WithTimeout(timeout time.Duration) *GetDataMessageForDeviceParams
WithTimeout adds the timeout to the get data message for device params
func (*GetDataMessageForDeviceParams) WriteToRequest ¶
func (o *GetDataMessageForDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDataMessageForDeviceReader ¶
type GetDataMessageForDeviceReader struct {
// contains filtered or unexported fields
}
GetDataMessageForDeviceReader is a Reader for the GetDataMessageForDevice structure.
func (*GetDataMessageForDeviceReader) ReadResponse ¶
func (o *GetDataMessageForDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDataMessageForDeviceUnauthorized ¶
type GetDataMessageForDeviceUnauthorized struct { }
GetDataMessageForDeviceUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetDataMessageForDeviceUnauthorized ¶
func NewGetDataMessageForDeviceUnauthorized() *GetDataMessageForDeviceUnauthorized
NewGetDataMessageForDeviceUnauthorized creates a GetDataMessageForDeviceUnauthorized with default headers values
func (*GetDataMessageForDeviceUnauthorized) Error ¶
func (o *GetDataMessageForDeviceUnauthorized) Error() string
type MockAPI ¶
MockAPI is an autogenerated mock type for the API type
func (*MockAPI) GetControlMessageForDevice ¶
func (_m *MockAPI) GetControlMessageForDevice(ctx context.Context, params *GetControlMessageForDeviceParams) (*GetControlMessageForDeviceOK, error)
GetControlMessageForDevice provides a mock function with given fields: ctx, params
func (*MockAPI) GetDataMessageForDevice ¶
func (_m *MockAPI) GetDataMessageForDevice(ctx context.Context, params *GetDataMessageForDeviceParams) (*GetDataMessageForDeviceOK, error)
GetDataMessageForDevice provides a mock function with given fields: ctx, params
func (*MockAPI) PostControlMessageForDevice ¶
func (_m *MockAPI) PostControlMessageForDevice(ctx context.Context, params *PostControlMessageForDeviceParams) (*PostControlMessageForDeviceOK, error)
PostControlMessageForDevice provides a mock function with given fields: ctx, params
func (*MockAPI) PostDataMessageForDevice ¶
func (_m *MockAPI) PostDataMessageForDevice(ctx context.Context, params *PostDataMessageForDeviceParams) (*PostDataMessageForDeviceOK, *PostDataMessageForDeviceAlreadyReported, error)
PostDataMessageForDevice provides a mock function with given fields: ctx, params
type PostControlMessageForDeviceForbidden ¶
type PostControlMessageForDeviceForbidden struct { }
PostControlMessageForDeviceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewPostControlMessageForDeviceForbidden ¶
func NewPostControlMessageForDeviceForbidden() *PostControlMessageForDeviceForbidden
NewPostControlMessageForDeviceForbidden creates a PostControlMessageForDeviceForbidden with default headers values
func (*PostControlMessageForDeviceForbidden) Error ¶
func (o *PostControlMessageForDeviceForbidden) Error() string
type PostControlMessageForDeviceInternalServerError ¶
type PostControlMessageForDeviceInternalServerError struct { }
PostControlMessageForDeviceInternalServerError describes a response with status code 500, with default header values.
Error
func NewPostControlMessageForDeviceInternalServerError ¶
func NewPostControlMessageForDeviceInternalServerError() *PostControlMessageForDeviceInternalServerError
NewPostControlMessageForDeviceInternalServerError creates a PostControlMessageForDeviceInternalServerError with default headers values
func (*PostControlMessageForDeviceInternalServerError) Error ¶
func (o *PostControlMessageForDeviceInternalServerError) Error() string
type PostControlMessageForDeviceNotFound ¶
type PostControlMessageForDeviceNotFound struct { }
PostControlMessageForDeviceNotFound describes a response with status code 404, with default header values.
Error
func NewPostControlMessageForDeviceNotFound ¶
func NewPostControlMessageForDeviceNotFound() *PostControlMessageForDeviceNotFound
NewPostControlMessageForDeviceNotFound creates a PostControlMessageForDeviceNotFound with default headers values
func (*PostControlMessageForDeviceNotFound) Error ¶
func (o *PostControlMessageForDeviceNotFound) Error() string
type PostControlMessageForDeviceOK ¶
type PostControlMessageForDeviceOK struct { }
PostControlMessageForDeviceOK describes a response with status code 200, with default header values.
Success
func NewPostControlMessageForDeviceOK ¶
func NewPostControlMessageForDeviceOK() *PostControlMessageForDeviceOK
NewPostControlMessageForDeviceOK creates a PostControlMessageForDeviceOK with default headers values
func (*PostControlMessageForDeviceOK) Error ¶
func (o *PostControlMessageForDeviceOK) Error() string
type PostControlMessageForDeviceParams ¶
type PostControlMessageForDeviceParams struct { /* DeviceID. Device ID */ DeviceID string // Message. Message *models.Message Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostControlMessageForDeviceParams contains all the parameters to send to the API endpoint
for the post control message for device operation. Typically these are written to a http.Request.
func NewPostControlMessageForDeviceParams ¶
func NewPostControlMessageForDeviceParams() *PostControlMessageForDeviceParams
NewPostControlMessageForDeviceParams creates a new PostControlMessageForDeviceParams 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 NewPostControlMessageForDeviceParamsWithContext ¶
func NewPostControlMessageForDeviceParamsWithContext(ctx context.Context) *PostControlMessageForDeviceParams
NewPostControlMessageForDeviceParamsWithContext creates a new PostControlMessageForDeviceParams object with the ability to set a context for a request.
func NewPostControlMessageForDeviceParamsWithHTTPClient ¶
func NewPostControlMessageForDeviceParamsWithHTTPClient(client *http.Client) *PostControlMessageForDeviceParams
NewPostControlMessageForDeviceParamsWithHTTPClient creates a new PostControlMessageForDeviceParams object with the ability to set a custom HTTPClient for a request.
func NewPostControlMessageForDeviceParamsWithTimeout ¶
func NewPostControlMessageForDeviceParamsWithTimeout(timeout time.Duration) *PostControlMessageForDeviceParams
NewPostControlMessageForDeviceParamsWithTimeout creates a new PostControlMessageForDeviceParams object with the ability to set a timeout on a request.
func (*PostControlMessageForDeviceParams) SetContext ¶
func (o *PostControlMessageForDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the post control message for device params
func (*PostControlMessageForDeviceParams) SetDefaults ¶ added in v0.2.0
func (o *PostControlMessageForDeviceParams) SetDefaults()
SetDefaults hydrates default values in the post control message for device params (not the query body).
All values with no default are reset to their zero value.
func (*PostControlMessageForDeviceParams) SetDeviceID ¶
func (o *PostControlMessageForDeviceParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the post control message for device params
func (*PostControlMessageForDeviceParams) SetHTTPClient ¶
func (o *PostControlMessageForDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post control message for device params
func (*PostControlMessageForDeviceParams) SetMessage ¶
func (o *PostControlMessageForDeviceParams) SetMessage(message *models.Message)
SetMessage adds the message to the post control message for device params
func (*PostControlMessageForDeviceParams) SetTimeout ¶
func (o *PostControlMessageForDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post control message for device params
func (*PostControlMessageForDeviceParams) WithContext ¶
func (o *PostControlMessageForDeviceParams) WithContext(ctx context.Context) *PostControlMessageForDeviceParams
WithContext adds the context to the post control message for device params
func (*PostControlMessageForDeviceParams) WithDefaults ¶ added in v0.2.0
func (o *PostControlMessageForDeviceParams) WithDefaults() *PostControlMessageForDeviceParams
WithDefaults hydrates default values in the post control message for device params (not the query body).
All values with no default are reset to their zero value.
func (*PostControlMessageForDeviceParams) WithDeviceID ¶
func (o *PostControlMessageForDeviceParams) WithDeviceID(deviceID string) *PostControlMessageForDeviceParams
WithDeviceID adds the deviceID to the post control message for device params
func (*PostControlMessageForDeviceParams) WithHTTPClient ¶
func (o *PostControlMessageForDeviceParams) WithHTTPClient(client *http.Client) *PostControlMessageForDeviceParams
WithHTTPClient adds the HTTPClient to the post control message for device params
func (*PostControlMessageForDeviceParams) WithMessage ¶
func (o *PostControlMessageForDeviceParams) WithMessage(message *models.Message) *PostControlMessageForDeviceParams
WithMessage adds the message to the post control message for device params
func (*PostControlMessageForDeviceParams) WithTimeout ¶
func (o *PostControlMessageForDeviceParams) WithTimeout(timeout time.Duration) *PostControlMessageForDeviceParams
WithTimeout adds the timeout to the post control message for device params
func (*PostControlMessageForDeviceParams) WriteToRequest ¶
func (o *PostControlMessageForDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostControlMessageForDeviceReader ¶
type PostControlMessageForDeviceReader struct {
// contains filtered or unexported fields
}
PostControlMessageForDeviceReader is a Reader for the PostControlMessageForDevice structure.
func (*PostControlMessageForDeviceReader) ReadResponse ¶
func (o *PostControlMessageForDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostControlMessageForDeviceUnauthorized ¶
type PostControlMessageForDeviceUnauthorized struct { }
PostControlMessageForDeviceUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostControlMessageForDeviceUnauthorized ¶
func NewPostControlMessageForDeviceUnauthorized() *PostControlMessageForDeviceUnauthorized
NewPostControlMessageForDeviceUnauthorized creates a PostControlMessageForDeviceUnauthorized with default headers values
func (*PostControlMessageForDeviceUnauthorized) Error ¶
func (o *PostControlMessageForDeviceUnauthorized) Error() string
type PostDataMessageForDeviceAlreadyReported ¶ added in v0.1.0
type PostDataMessageForDeviceAlreadyReported struct { }
PostDataMessageForDeviceAlreadyReported describes a response with status code 208, with default header values.
Already Reported
func NewPostDataMessageForDeviceAlreadyReported ¶ added in v0.1.0
func NewPostDataMessageForDeviceAlreadyReported() *PostDataMessageForDeviceAlreadyReported
NewPostDataMessageForDeviceAlreadyReported creates a PostDataMessageForDeviceAlreadyReported with default headers values
func (*PostDataMessageForDeviceAlreadyReported) Error ¶ added in v0.1.0
func (o *PostDataMessageForDeviceAlreadyReported) Error() string
type PostDataMessageForDeviceBadRequest ¶
type PostDataMessageForDeviceBadRequest struct { }
PostDataMessageForDeviceBadRequest describes a response with status code 400, with default header values.
Error
func NewPostDataMessageForDeviceBadRequest ¶
func NewPostDataMessageForDeviceBadRequest() *PostDataMessageForDeviceBadRequest
NewPostDataMessageForDeviceBadRequest creates a PostDataMessageForDeviceBadRequest with default headers values
func (*PostDataMessageForDeviceBadRequest) Error ¶
func (o *PostDataMessageForDeviceBadRequest) Error() string
type PostDataMessageForDeviceForbidden ¶
type PostDataMessageForDeviceForbidden struct { }
PostDataMessageForDeviceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewPostDataMessageForDeviceForbidden ¶
func NewPostDataMessageForDeviceForbidden() *PostDataMessageForDeviceForbidden
NewPostDataMessageForDeviceForbidden creates a PostDataMessageForDeviceForbidden with default headers values
func (*PostDataMessageForDeviceForbidden) Error ¶
func (o *PostDataMessageForDeviceForbidden) Error() string
type PostDataMessageForDeviceInternalServerError ¶
type PostDataMessageForDeviceInternalServerError struct { }
PostDataMessageForDeviceInternalServerError describes a response with status code 500, with default header values.
Error
func NewPostDataMessageForDeviceInternalServerError ¶
func NewPostDataMessageForDeviceInternalServerError() *PostDataMessageForDeviceInternalServerError
NewPostDataMessageForDeviceInternalServerError creates a PostDataMessageForDeviceInternalServerError with default headers values
func (*PostDataMessageForDeviceInternalServerError) Error ¶
func (o *PostDataMessageForDeviceInternalServerError) Error() string
type PostDataMessageForDeviceNotFound ¶
type PostDataMessageForDeviceNotFound struct { }
PostDataMessageForDeviceNotFound describes a response with status code 404, with default header values.
Error
func NewPostDataMessageForDeviceNotFound ¶
func NewPostDataMessageForDeviceNotFound() *PostDataMessageForDeviceNotFound
NewPostDataMessageForDeviceNotFound creates a PostDataMessageForDeviceNotFound with default headers values
func (*PostDataMessageForDeviceNotFound) Error ¶
func (o *PostDataMessageForDeviceNotFound) Error() string
type PostDataMessageForDeviceOK ¶
type PostDataMessageForDeviceOK struct {
Payload *models.MessageResponse
}
PostDataMessageForDeviceOK describes a response with status code 200, with default header values.
Success
func NewPostDataMessageForDeviceOK ¶
func NewPostDataMessageForDeviceOK() *PostDataMessageForDeviceOK
NewPostDataMessageForDeviceOK creates a PostDataMessageForDeviceOK with default headers values
func (*PostDataMessageForDeviceOK) Error ¶
func (o *PostDataMessageForDeviceOK) Error() string
func (*PostDataMessageForDeviceOK) GetPayload ¶
func (o *PostDataMessageForDeviceOK) GetPayload() *models.MessageResponse
type PostDataMessageForDeviceParams ¶
type PostDataMessageForDeviceParams struct { /* DeviceID. Device ID */ DeviceID string // Message. Message *models.Message Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostDataMessageForDeviceParams contains all the parameters to send to the API endpoint
for the post data message for device operation. Typically these are written to a http.Request.
func NewPostDataMessageForDeviceParams ¶
func NewPostDataMessageForDeviceParams() *PostDataMessageForDeviceParams
NewPostDataMessageForDeviceParams creates a new PostDataMessageForDeviceParams 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 NewPostDataMessageForDeviceParamsWithContext ¶
func NewPostDataMessageForDeviceParamsWithContext(ctx context.Context) *PostDataMessageForDeviceParams
NewPostDataMessageForDeviceParamsWithContext creates a new PostDataMessageForDeviceParams object with the ability to set a context for a request.
func NewPostDataMessageForDeviceParamsWithHTTPClient ¶
func NewPostDataMessageForDeviceParamsWithHTTPClient(client *http.Client) *PostDataMessageForDeviceParams
NewPostDataMessageForDeviceParamsWithHTTPClient creates a new PostDataMessageForDeviceParams object with the ability to set a custom HTTPClient for a request.
func NewPostDataMessageForDeviceParamsWithTimeout ¶
func NewPostDataMessageForDeviceParamsWithTimeout(timeout time.Duration) *PostDataMessageForDeviceParams
NewPostDataMessageForDeviceParamsWithTimeout creates a new PostDataMessageForDeviceParams object with the ability to set a timeout on a request.
func (*PostDataMessageForDeviceParams) SetContext ¶
func (o *PostDataMessageForDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the post data message for device params
func (*PostDataMessageForDeviceParams) SetDefaults ¶ added in v0.2.0
func (o *PostDataMessageForDeviceParams) SetDefaults()
SetDefaults hydrates default values in the post data message for device params (not the query body).
All values with no default are reset to their zero value.
func (*PostDataMessageForDeviceParams) SetDeviceID ¶
func (o *PostDataMessageForDeviceParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the post data message for device params
func (*PostDataMessageForDeviceParams) SetHTTPClient ¶
func (o *PostDataMessageForDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post data message for device params
func (*PostDataMessageForDeviceParams) SetMessage ¶
func (o *PostDataMessageForDeviceParams) SetMessage(message *models.Message)
SetMessage adds the message to the post data message for device params
func (*PostDataMessageForDeviceParams) SetTimeout ¶
func (o *PostDataMessageForDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post data message for device params
func (*PostDataMessageForDeviceParams) WithContext ¶
func (o *PostDataMessageForDeviceParams) WithContext(ctx context.Context) *PostDataMessageForDeviceParams
WithContext adds the context to the post data message for device params
func (*PostDataMessageForDeviceParams) WithDefaults ¶ added in v0.2.0
func (o *PostDataMessageForDeviceParams) WithDefaults() *PostDataMessageForDeviceParams
WithDefaults hydrates default values in the post data message for device params (not the query body).
All values with no default are reset to their zero value.
func (*PostDataMessageForDeviceParams) WithDeviceID ¶
func (o *PostDataMessageForDeviceParams) WithDeviceID(deviceID string) *PostDataMessageForDeviceParams
WithDeviceID adds the deviceID to the post data message for device params
func (*PostDataMessageForDeviceParams) WithHTTPClient ¶
func (o *PostDataMessageForDeviceParams) WithHTTPClient(client *http.Client) *PostDataMessageForDeviceParams
WithHTTPClient adds the HTTPClient to the post data message for device params
func (*PostDataMessageForDeviceParams) WithMessage ¶
func (o *PostDataMessageForDeviceParams) WithMessage(message *models.Message) *PostDataMessageForDeviceParams
WithMessage adds the message to the post data message for device params
func (*PostDataMessageForDeviceParams) WithTimeout ¶
func (o *PostDataMessageForDeviceParams) WithTimeout(timeout time.Duration) *PostDataMessageForDeviceParams
WithTimeout adds the timeout to the post data message for device params
func (*PostDataMessageForDeviceParams) WriteToRequest ¶
func (o *PostDataMessageForDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostDataMessageForDeviceReader ¶
type PostDataMessageForDeviceReader struct {
// contains filtered or unexported fields
}
PostDataMessageForDeviceReader is a Reader for the PostDataMessageForDevice structure.
func (*PostDataMessageForDeviceReader) ReadResponse ¶
func (o *PostDataMessageForDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostDataMessageForDeviceUnauthorized ¶
type PostDataMessageForDeviceUnauthorized struct { }
PostDataMessageForDeviceUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostDataMessageForDeviceUnauthorized ¶
func NewPostDataMessageForDeviceUnauthorized() *PostDataMessageForDeviceUnauthorized
NewPostDataMessageForDeviceUnauthorized creates a PostDataMessageForDeviceUnauthorized with default headers values
func (*PostDataMessageForDeviceUnauthorized) Error ¶
func (o *PostDataMessageForDeviceUnauthorized) Error() string
Source Files ¶
- get_control_message_for_device_parameters.go
- get_control_message_for_device_responses.go
- get_data_message_for_device_parameters.go
- get_data_message_for_device_responses.go
- mock_API.go
- post_control_message_for_device_parameters.go
- post_control_message_for_device_responses.go
- post_data_message_for_device_parameters.go
- post_data_message_for_device_responses.go
- yggdrasil_client.go