Documentation ¶
Index ¶
- type Client
- type GetHealthOK
- type GetHealthParams
- func (o *GetHealthParams) SetContext(ctx context.Context)
- func (o *GetHealthParams) SetHTTPClient(client *http.Client)
- func (o *GetHealthParams) SetTimeout(timeout time.Duration)
- func (o *GetHealthParams) WithContext(ctx context.Context) *GetHealthParams
- func (o *GetHealthParams) WithHTTPClient(client *http.Client) *GetHealthParams
- func (o *GetHealthParams) WithTimeout(timeout time.Duration) *GetHealthParams
- func (o *GetHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHealthReader
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 server management API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new server management API client.
func (*Client) GetHealth ¶
func (a *Client) GetHealth(params *GetHealthParams) (*GetHealthOK, error)
GetHealth sees if the server is healthy
Returns 200 if the server is healthy
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetHealthOK ¶
type GetHealthOK struct { }
GetHealthOK handles this case with default header values.
Everythings fine.
func NewGetHealthOK ¶
func NewGetHealthOK() *GetHealthOK
NewGetHealthOK creates a GetHealthOK with default headers values
func (*GetHealthOK) Error ¶
func (o *GetHealthOK) Error() string
type GetHealthParams ¶
type GetHealthParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHealthParams contains all the parameters to send to the API endpoint for the get health operation typically these are written to a http.Request
func NewGetHealthParams ¶
func NewGetHealthParams() *GetHealthParams
NewGetHealthParams creates a new GetHealthParams object with the default values initialized.
func NewGetHealthParamsWithContext ¶
func NewGetHealthParamsWithContext(ctx context.Context) *GetHealthParams
NewGetHealthParamsWithContext creates a new GetHealthParams object with the default values initialized, and the ability to set a context for a request
func NewGetHealthParamsWithHTTPClient ¶
func NewGetHealthParamsWithHTTPClient(client *http.Client) *GetHealthParams
NewGetHealthParamsWithHTTPClient creates a new GetHealthParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetHealthParamsWithTimeout ¶
func NewGetHealthParamsWithTimeout(timeout time.Duration) *GetHealthParams
NewGetHealthParamsWithTimeout creates a new GetHealthParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetHealthParams) SetContext ¶
func (o *GetHealthParams) SetContext(ctx context.Context)
SetContext adds the context to the get health params
func (*GetHealthParams) SetHTTPClient ¶
func (o *GetHealthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get health params
func (*GetHealthParams) SetTimeout ¶
func (o *GetHealthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get health params
func (*GetHealthParams) WithContext ¶
func (o *GetHealthParams) WithContext(ctx context.Context) *GetHealthParams
WithContext adds the context to the get health params
func (*GetHealthParams) WithHTTPClient ¶
func (o *GetHealthParams) WithHTTPClient(client *http.Client) *GetHealthParams
WithHTTPClient adds the HTTPClient to the get health params
func (*GetHealthParams) WithTimeout ¶
func (o *GetHealthParams) WithTimeout(timeout time.Duration) *GetHealthParams
WithTimeout adds the timeout to the get health params
func (*GetHealthParams) WriteToRequest ¶
func (o *GetHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHealthReader ¶
type GetHealthReader struct {
// contains filtered or unexported fields
}
GetHealthReader is a Reader for the GetHealth structure.
func (*GetHealthReader) ReadResponse ¶
func (o *GetHealthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.