Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type HealthHealthOK
- type HealthHealthParams
- func (o *HealthHealthParams) SetContext(ctx context.Context)
- func (o *HealthHealthParams) SetDefaults()
- func (o *HealthHealthParams) SetHTTPClient(client *http.Client)
- func (o *HealthHealthParams) SetTimeout(timeout time.Duration)
- func (o *HealthHealthParams) WithContext(ctx context.Context) *HealthHealthParams
- func (o *HealthHealthParams) WithDefaults() *HealthHealthParams
- func (o *HealthHealthParams) WithHTTPClient(client *http.Client) *HealthHealthParams
- func (o *HealthHealthParams) WithTimeout(timeout time.Duration) *HealthHealthParams
- func (o *HealthHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type HealthHealthReader
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 health API
func (*Client) HealthHealth ¶
func (a *Client) HealthHealth(params *HealthHealthParams, opts ...ClientOption) (*HealthHealthOK, error)
HealthHealth healths health
health
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 { HealthHealth(params *HealthHealthParams, opts ...ClientOption) (*HealthHealthOK, 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 health API client.
type HealthHealthOK ¶
type HealthHealthOK struct {
Payload bool
}
HealthHealthOK describes a response with status code 200, with default header values.
OK response.
func NewHealthHealthOK ¶
func NewHealthHealthOK() *HealthHealthOK
NewHealthHealthOK creates a HealthHealthOK with default headers values
func (*HealthHealthOK) Error ¶
func (o *HealthHealthOK) Error() string
func (*HealthHealthOK) GetPayload ¶
func (o *HealthHealthOK) GetPayload() bool
type HealthHealthParams ¶
type HealthHealthParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
HealthHealthParams contains all the parameters to send to the API endpoint
for the health health operation. Typically these are written to a http.Request.
func NewHealthHealthParams ¶
func NewHealthHealthParams() *HealthHealthParams
NewHealthHealthParams creates a new HealthHealthParams 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 NewHealthHealthParamsWithContext ¶
func NewHealthHealthParamsWithContext(ctx context.Context) *HealthHealthParams
NewHealthHealthParamsWithContext creates a new HealthHealthParams object with the ability to set a context for a request.
func NewHealthHealthParamsWithHTTPClient ¶
func NewHealthHealthParamsWithHTTPClient(client *http.Client) *HealthHealthParams
NewHealthHealthParamsWithHTTPClient creates a new HealthHealthParams object with the ability to set a custom HTTPClient for a request.
func NewHealthHealthParamsWithTimeout ¶
func NewHealthHealthParamsWithTimeout(timeout time.Duration) *HealthHealthParams
NewHealthHealthParamsWithTimeout creates a new HealthHealthParams object with the ability to set a timeout on a request.
func (*HealthHealthParams) SetContext ¶
func (o *HealthHealthParams) SetContext(ctx context.Context)
SetContext adds the context to the health health params
func (*HealthHealthParams) SetDefaults ¶
func (o *HealthHealthParams) SetDefaults()
SetDefaults hydrates default values in the health health params (not the query body).
All values with no default are reset to their zero value.
func (*HealthHealthParams) SetHTTPClient ¶
func (o *HealthHealthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the health health params
func (*HealthHealthParams) SetTimeout ¶
func (o *HealthHealthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the health health params
func (*HealthHealthParams) WithContext ¶
func (o *HealthHealthParams) WithContext(ctx context.Context) *HealthHealthParams
WithContext adds the context to the health health params
func (*HealthHealthParams) WithDefaults ¶
func (o *HealthHealthParams) WithDefaults() *HealthHealthParams
WithDefaults hydrates default values in the health health params (not the query body).
All values with no default are reset to their zero value.
func (*HealthHealthParams) WithHTTPClient ¶
func (o *HealthHealthParams) WithHTTPClient(client *http.Client) *HealthHealthParams
WithHTTPClient adds the HTTPClient to the health health params
func (*HealthHealthParams) WithTimeout ¶
func (o *HealthHealthParams) WithTimeout(timeout time.Duration) *HealthHealthParams
WithTimeout adds the timeout to the health health params
func (*HealthHealthParams) WriteToRequest ¶
func (o *HealthHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type HealthHealthReader ¶
type HealthHealthReader struct {
// contains filtered or unexported fields
}
HealthHealthReader is a Reader for the HealthHealth structure.
func (*HealthHealthReader) ReadResponse ¶
func (o *HealthHealthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.