Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type HealthBadRequest
- type HealthDefault
- type HealthOK
- type HealthParams
- func (o *HealthParams) SetContext(ctx context.Context)
- func (o *HealthParams) SetDefaults()
- func (o *HealthParams) SetHTTPClient(client *http.Client)
- func (o *HealthParams) SetTimeout(timeout time.Duration)
- func (o *HealthParams) WithContext(ctx context.Context) *HealthParams
- func (o *HealthParams) WithDefaults() *HealthParams
- func (o *HealthParams) WithHTTPClient(client *http.Client) *HealthParams
- func (o *HealthParams) WithTimeout(timeout time.Duration) *HealthParams
- func (o *HealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type HealthReader
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 system API
func (*Client) Health ¶
func (a *Client) Health(params *HealthParams, opts ...ClientOption) (*HealthOK, error)
Health reports server status
Reports server status
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 { Health(params *HealthParams, opts ...ClientOption) (*HealthOK, 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 system API client.
type HealthBadRequest ¶
type HealthBadRequest struct {
Payload string
}
HealthBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewHealthBadRequest ¶
func NewHealthBadRequest() *HealthBadRequest
NewHealthBadRequest creates a HealthBadRequest with default headers values
func (*HealthBadRequest) Error ¶
func (o *HealthBadRequest) Error() string
func (*HealthBadRequest) GetPayload ¶
func (o *HealthBadRequest) GetPayload() string
type HealthDefault ¶
HealthDefault describes a response with status code -1, with default header values.
generic error response
func NewHealthDefault ¶
func NewHealthDefault(code int) *HealthDefault
NewHealthDefault creates a HealthDefault with default headers values
func (*HealthDefault) Code ¶
func (o *HealthDefault) Code() int
Code gets the status code for the health default response
func (*HealthDefault) Error ¶
func (o *HealthDefault) Error() string
func (*HealthDefault) GetPayload ¶
func (o *HealthDefault) GetPayload() *models.Error
type HealthOK ¶
type HealthOK struct {
Payload *models.ModelsHealthResponse
}
HealthOK describes a response with status code 200, with default header values.
OK
func NewHealthOK ¶
func NewHealthOK() *HealthOK
NewHealthOK creates a HealthOK with default headers values
func (*HealthOK) GetPayload ¶
func (o *HealthOK) GetPayload() *models.ModelsHealthResponse
type HealthParams ¶
type HealthParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
HealthParams contains all the parameters to send to the API endpoint
for the health operation. Typically these are written to a http.Request.
func NewHealthParams ¶
func NewHealthParams() *HealthParams
NewHealthParams creates a new HealthParams 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 NewHealthParamsWithContext ¶
func NewHealthParamsWithContext(ctx context.Context) *HealthParams
NewHealthParamsWithContext creates a new HealthParams object with the ability to set a context for a request.
func NewHealthParamsWithHTTPClient ¶
func NewHealthParamsWithHTTPClient(client *http.Client) *HealthParams
NewHealthParamsWithHTTPClient creates a new HealthParams object with the ability to set a custom HTTPClient for a request.
func NewHealthParamsWithTimeout ¶
func NewHealthParamsWithTimeout(timeout time.Duration) *HealthParams
NewHealthParamsWithTimeout creates a new HealthParams object with the ability to set a timeout on a request.
func (*HealthParams) SetContext ¶
func (o *HealthParams) SetContext(ctx context.Context)
SetContext adds the context to the health params
func (*HealthParams) SetDefaults ¶
func (o *HealthParams) SetDefaults()
SetDefaults hydrates default values in the health params (not the query body).
All values with no default are reset to their zero value.
func (*HealthParams) SetHTTPClient ¶
func (o *HealthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the health params
func (*HealthParams) SetTimeout ¶
func (o *HealthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the health params
func (*HealthParams) WithContext ¶
func (o *HealthParams) WithContext(ctx context.Context) *HealthParams
WithContext adds the context to the health params
func (*HealthParams) WithDefaults ¶
func (o *HealthParams) WithDefaults() *HealthParams
WithDefaults hydrates default values in the health params (not the query body).
All values with no default are reset to their zero value.
func (*HealthParams) WithHTTPClient ¶
func (o *HealthParams) WithHTTPClient(client *http.Client) *HealthParams
WithHTTPClient adds the HTTPClient to the health params
func (*HealthParams) WithTimeout ¶
func (o *HealthParams) WithTimeout(timeout time.Duration) *HealthParams
WithTimeout adds the timeout to the health params
func (*HealthParams) WriteToRequest ¶
func (o *HealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type HealthReader ¶
type HealthReader struct {
// contains filtered or unexported fields
}
HealthReader is a Reader for the Health structure.
func (*HealthReader) ReadResponse ¶
func (o *HealthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.