Documentation ¶
Index ¶
- type Client
- type GetHardwareDefault
- type GetHardwareOK
- type GetHardwareParams
- func (o *GetHardwareParams) SetContext(ctx context.Context)
- func (o *GetHardwareParams) SetHTTPClient(client *http.Client)
- func (o *GetHardwareParams) SetTimeout(timeout time.Duration)
- func (o *GetHardwareParams) WithContext(ctx context.Context) *GetHardwareParams
- func (o *GetHardwareParams) WithHTTPClient(client *http.Client) *GetHardwareParams
- func (o *GetHardwareParams) WithTimeout(timeout time.Duration) *GetHardwareParams
- func (o *GetHardwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHardwareReader
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 hardware API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new hardware API client.
func (*Client) GetHardware ¶
func (a *Client) GetHardware(params *GetHardwareParams) (*GetHardwareOK, error)
GetHardware gets current configuration settings
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetHardwareDefault ¶
GetHardwareDefault handles this case with default header values.
Unexpected error
func NewGetHardwareDefault ¶
func NewGetHardwareDefault(code int) *GetHardwareDefault
NewGetHardwareDefault creates a GetHardwareDefault with default headers values
func (*GetHardwareDefault) Code ¶
func (o *GetHardwareDefault) Code() int
Code gets the status code for the get hardware default response
func (*GetHardwareDefault) Error ¶
func (o *GetHardwareDefault) Error() string
type GetHardwareOK ¶
type GetHardwareOK struct {
Payload *models.HardwareConfig
}
GetHardwareOK handles this case with default header values.
The config was retrieved successfully
func NewGetHardwareOK ¶
func NewGetHardwareOK() *GetHardwareOK
NewGetHardwareOK creates a GetHardwareOK with default headers values
func (*GetHardwareOK) Error ¶
func (o *GetHardwareOK) Error() string
type GetHardwareParams ¶
type GetHardwareParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHardwareParams contains all the parameters to send to the API endpoint for the get hardware operation typically these are written to a http.Request
func NewGetHardwareParams ¶
func NewGetHardwareParams() *GetHardwareParams
NewGetHardwareParams creates a new GetHardwareParams object with the default values initialized.
func NewGetHardwareParamsWithContext ¶
func NewGetHardwareParamsWithContext(ctx context.Context) *GetHardwareParams
NewGetHardwareParamsWithContext creates a new GetHardwareParams object with the default values initialized, and the ability to set a context for a request
func NewGetHardwareParamsWithHTTPClient ¶
func NewGetHardwareParamsWithHTTPClient(client *http.Client) *GetHardwareParams
NewGetHardwareParamsWithHTTPClient creates a new GetHardwareParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetHardwareParamsWithTimeout ¶
func NewGetHardwareParamsWithTimeout(timeout time.Duration) *GetHardwareParams
NewGetHardwareParamsWithTimeout creates a new GetHardwareParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetHardwareParams) SetContext ¶
func (o *GetHardwareParams) SetContext(ctx context.Context)
SetContext adds the context to the get hardware params
func (*GetHardwareParams) SetHTTPClient ¶
func (o *GetHardwareParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get hardware params
func (*GetHardwareParams) SetTimeout ¶
func (o *GetHardwareParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get hardware params
func (*GetHardwareParams) WithContext ¶
func (o *GetHardwareParams) WithContext(ctx context.Context) *GetHardwareParams
WithContext adds the context to the get hardware params
func (*GetHardwareParams) WithHTTPClient ¶
func (o *GetHardwareParams) WithHTTPClient(client *http.Client) *GetHardwareParams
WithHTTPClient adds the HTTPClient to the get hardware params
func (*GetHardwareParams) WithTimeout ¶
func (o *GetHardwareParams) WithTimeout(timeout time.Duration) *GetHardwareParams
WithTimeout adds the timeout to the get hardware params
func (*GetHardwareParams) WriteToRequest ¶
func (o *GetHardwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHardwareReader ¶
type GetHardwareReader struct {
// contains filtered or unexported fields
}
GetHardwareReader is a Reader for the GetHardware structure.
func (*GetHardwareReader) ReadResponse ¶
func (o *GetHardwareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.