Documentation ¶
Index ¶
- type API
- type Client
- type HealthZOK
- type HealthZParams
- func (o *HealthZParams) SetContext(ctx context.Context)
- func (o *HealthZParams) SetHTTPClient(client *http.Client)
- func (o *HealthZParams) SetTimeout(timeout time.Duration)
- func (o *HealthZParams) WithContext(ctx context.Context) *HealthZParams
- func (o *HealthZParams) WithHTTPClient(client *http.Client) *HealthZParams
- func (o *HealthZParams) WithTimeout(timeout time.Duration) *HealthZParams
- func (o *HealthZParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type HealthZReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* HealthZ checks heathy of API server*/ HealthZ(ctx context.Context, params *HealthZParams) (*HealthZOK, error) }
API is the interface of the operations client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new operations API client.
type HealthZOK ¶
type HealthZOK struct {
Payload *models.StatusResponse
}
HealthZOK handles this case with default header values.
successful operation
func NewHealthZOK ¶
func NewHealthZOK() *HealthZOK
NewHealthZOK creates a HealthZOK with default headers values
func (*HealthZOK) GetPayload ¶
func (o *HealthZOK) GetPayload() *models.StatusResponse
type HealthZParams ¶
type HealthZParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
HealthZParams contains all the parameters to send to the API endpoint for the health z operation typically these are written to a http.Request
func NewHealthZParams ¶
func NewHealthZParams() *HealthZParams
NewHealthZParams creates a new HealthZParams object with the default values initialized.
func NewHealthZParamsWithContext ¶
func NewHealthZParamsWithContext(ctx context.Context) *HealthZParams
NewHealthZParamsWithContext creates a new HealthZParams object with the default values initialized, and the ability to set a context for a request
func NewHealthZParamsWithHTTPClient ¶
func NewHealthZParamsWithHTTPClient(client *http.Client) *HealthZParams
NewHealthZParamsWithHTTPClient creates a new HealthZParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewHealthZParamsWithTimeout ¶
func NewHealthZParamsWithTimeout(timeout time.Duration) *HealthZParams
NewHealthZParamsWithTimeout creates a new HealthZParams object with the default values initialized, and the ability to set a timeout on a request
func (*HealthZParams) SetContext ¶
func (o *HealthZParams) SetContext(ctx context.Context)
SetContext adds the context to the health z params
func (*HealthZParams) SetHTTPClient ¶
func (o *HealthZParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the health z params
func (*HealthZParams) SetTimeout ¶
func (o *HealthZParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the health z params
func (*HealthZParams) WithContext ¶
func (o *HealthZParams) WithContext(ctx context.Context) *HealthZParams
WithContext adds the context to the health z params
func (*HealthZParams) WithHTTPClient ¶
func (o *HealthZParams) WithHTTPClient(client *http.Client) *HealthZParams
WithHTTPClient adds the HTTPClient to the health z params
func (*HealthZParams) WithTimeout ¶
func (o *HealthZParams) WithTimeout(timeout time.Duration) *HealthZParams
WithTimeout adds the timeout to the health z params
func (*HealthZParams) WriteToRequest ¶
func (o *HealthZParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type HealthZReader ¶
type HealthZReader struct {
// contains filtered or unexported fields
}
HealthZReader is a Reader for the HealthZ structure.
func (*HealthZReader) ReadResponse ¶
func (o *HealthZReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.