Documentation
¶
Index ¶
- type CheckAllPodsOK
- type CheckAllPodsParams
- func (o *CheckAllPodsParams) SetContext(ctx context.Context)
- func (o *CheckAllPodsParams) SetDefaults()
- func (o *CheckAllPodsParams) SetHTTPClient(client *http.Client)
- func (o *CheckAllPodsParams) SetTimeout(timeout time.Duration)
- func (o *CheckAllPodsParams) WithContext(ctx context.Context) *CheckAllPodsParams
- func (o *CheckAllPodsParams) WithDefaults() *CheckAllPodsParams
- func (o *CheckAllPodsParams) WithHTTPClient(client *http.Client) *CheckAllPodsParams
- func (o *CheckAllPodsParams) WithTimeout(timeout time.Duration) *CheckAllPodsParams
- func (o *CheckAllPodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CheckAllPodsReader
- type CheckServicePodsOK
- type CheckServicePodsParams
- func NewCheckServicePodsParams() *CheckServicePodsParams
- func NewCheckServicePodsParamsWithContext(ctx context.Context) *CheckServicePodsParams
- func NewCheckServicePodsParamsWithHTTPClient(client *http.Client) *CheckServicePodsParams
- func NewCheckServicePodsParamsWithTimeout(timeout time.Duration) *CheckServicePodsParams
- func (o *CheckServicePodsParams) SetContext(ctx context.Context)
- func (o *CheckServicePodsParams) SetDefaults()
- func (o *CheckServicePodsParams) SetHTTPClient(client *http.Client)
- func (o *CheckServicePodsParams) SetTimeout(timeout time.Duration)
- func (o *CheckServicePodsParams) WithContext(ctx context.Context) *CheckServicePodsParams
- func (o *CheckServicePodsParams) WithDefaults() *CheckServicePodsParams
- func (o *CheckServicePodsParams) WithHTTPClient(client *http.Client) *CheckServicePodsParams
- func (o *CheckServicePodsParams) WithTimeout(timeout time.Duration) *CheckServicePodsParams
- func (o *CheckServicePodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CheckServicePodsReader
- type Client
- func (a *Client) CheckAllPods(params *CheckAllPodsParams, opts ...ClientOption) (*CheckAllPodsOK, error)
- func (a *Client) CheckServicePods(params *CheckServicePodsParams, opts ...ClientOption) (*CheckServicePodsOK, error)
- func (a *Client) ClusterHealth(params *ClusterHealthParams, opts ...ClientOption) (*ClusterHealthOK, error)
- func (a *Client) Healthz(params *HealthzParams, opts ...ClientOption) (*HealthzOK, error)
- func (a *Client) Ping(params *PingParams, opts ...ClientOption) (*PingOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ClusterHealthIMATeapot
- type ClusterHealthOK
- type ClusterHealthParams
- func (o *ClusterHealthParams) SetContext(ctx context.Context)
- func (o *ClusterHealthParams) SetDefaults()
- func (o *ClusterHealthParams) SetHTTPClient(client *http.Client)
- func (o *ClusterHealthParams) SetTimeout(timeout time.Duration)
- func (o *ClusterHealthParams) WithContext(ctx context.Context) *ClusterHealthParams
- func (o *ClusterHealthParams) WithDefaults() *ClusterHealthParams
- func (o *ClusterHealthParams) WithHTTPClient(client *http.Client) *ClusterHealthParams
- func (o *ClusterHealthParams) WithTimeout(timeout time.Duration) *ClusterHealthParams
- func (o *ClusterHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ClusterHealthReader
- type HealthzOK
- type HealthzParams
- func (o *HealthzParams) SetContext(ctx context.Context)
- func (o *HealthzParams) SetDefaults()
- 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) WithDefaults() *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
- type HealthzServiceUnavailable
- type PingOK
- type PingParams
- func (o *PingParams) SetContext(ctx context.Context)
- func (o *PingParams) SetDefaults()
- func (o *PingParams) SetHTTPClient(client *http.Client)
- func (o *PingParams) SetTimeout(timeout time.Duration)
- func (o *PingParams) WithContext(ctx context.Context) *PingParams
- func (o *PingParams) WithDefaults() *PingParams
- func (o *PingParams) WithHTTPClient(client *http.Client) *PingParams
- func (o *PingParams) WithTimeout(timeout time.Duration) *PingParams
- func (o *PingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PingReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckAllPodsOK ¶
type CheckAllPodsOK struct {
Payload *models.CheckAllResults
}
CheckAllPodsOK describes a response with status code 200, with default header values.
Success, return response
func NewCheckAllPodsOK ¶
func NewCheckAllPodsOK() *CheckAllPodsOK
NewCheckAllPodsOK creates a CheckAllPodsOK with default headers values
func (*CheckAllPodsOK) Error ¶
func (o *CheckAllPodsOK) Error() string
func (*CheckAllPodsOK) GetPayload ¶
func (o *CheckAllPodsOK) GetPayload() *models.CheckAllResults
type CheckAllPodsParams ¶
type CheckAllPodsParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CheckAllPodsParams contains all the parameters to send to the API endpoint
for the check all pods operation. Typically these are written to a http.Request.
func NewCheckAllPodsParams ¶
func NewCheckAllPodsParams() *CheckAllPodsParams
NewCheckAllPodsParams creates a new CheckAllPodsParams 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 NewCheckAllPodsParamsWithContext ¶
func NewCheckAllPodsParamsWithContext(ctx context.Context) *CheckAllPodsParams
NewCheckAllPodsParamsWithContext creates a new CheckAllPodsParams object with the ability to set a context for a request.
func NewCheckAllPodsParamsWithHTTPClient ¶
func NewCheckAllPodsParamsWithHTTPClient(client *http.Client) *CheckAllPodsParams
NewCheckAllPodsParamsWithHTTPClient creates a new CheckAllPodsParams object with the ability to set a custom HTTPClient for a request.
func NewCheckAllPodsParamsWithTimeout ¶
func NewCheckAllPodsParamsWithTimeout(timeout time.Duration) *CheckAllPodsParams
NewCheckAllPodsParamsWithTimeout creates a new CheckAllPodsParams object with the ability to set a timeout on a request.
func (*CheckAllPodsParams) SetContext ¶
func (o *CheckAllPodsParams) SetContext(ctx context.Context)
SetContext adds the context to the check all pods params
func (*CheckAllPodsParams) SetDefaults ¶ added in v3.2.0
func (o *CheckAllPodsParams) SetDefaults()
SetDefaults hydrates default values in the check all pods params (not the query body).
All values with no default are reset to their zero value.
func (*CheckAllPodsParams) SetHTTPClient ¶
func (o *CheckAllPodsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the check all pods params
func (*CheckAllPodsParams) SetTimeout ¶
func (o *CheckAllPodsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the check all pods params
func (*CheckAllPodsParams) WithContext ¶
func (o *CheckAllPodsParams) WithContext(ctx context.Context) *CheckAllPodsParams
WithContext adds the context to the check all pods params
func (*CheckAllPodsParams) WithDefaults ¶ added in v3.2.0
func (o *CheckAllPodsParams) WithDefaults() *CheckAllPodsParams
WithDefaults hydrates default values in the check all pods params (not the query body).
All values with no default are reset to their zero value.
func (*CheckAllPodsParams) WithHTTPClient ¶
func (o *CheckAllPodsParams) WithHTTPClient(client *http.Client) *CheckAllPodsParams
WithHTTPClient adds the HTTPClient to the check all pods params
func (*CheckAllPodsParams) WithTimeout ¶
func (o *CheckAllPodsParams) WithTimeout(timeout time.Duration) *CheckAllPodsParams
WithTimeout adds the timeout to the check all pods params
func (*CheckAllPodsParams) WriteToRequest ¶
func (o *CheckAllPodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CheckAllPodsReader ¶
type CheckAllPodsReader struct {
// contains filtered or unexported fields
}
CheckAllPodsReader is a Reader for the CheckAllPods structure.
func (*CheckAllPodsReader) ReadResponse ¶
func (o *CheckAllPodsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CheckServicePodsOK ¶
type CheckServicePodsOK struct {
Payload *models.CheckResults
}
CheckServicePodsOK describes a response with status code 200, with default header values.
Success, return response
func NewCheckServicePodsOK ¶
func NewCheckServicePodsOK() *CheckServicePodsOK
NewCheckServicePodsOK creates a CheckServicePodsOK with default headers values
func (*CheckServicePodsOK) Error ¶
func (o *CheckServicePodsOK) Error() string
func (*CheckServicePodsOK) GetPayload ¶
func (o *CheckServicePodsOK) GetPayload() *models.CheckResults
type CheckServicePodsParams ¶
type CheckServicePodsParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CheckServicePodsParams contains all the parameters to send to the API endpoint
for the check service pods operation. Typically these are written to a http.Request.
func NewCheckServicePodsParams ¶
func NewCheckServicePodsParams() *CheckServicePodsParams
NewCheckServicePodsParams creates a new CheckServicePodsParams 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 NewCheckServicePodsParamsWithContext ¶
func NewCheckServicePodsParamsWithContext(ctx context.Context) *CheckServicePodsParams
NewCheckServicePodsParamsWithContext creates a new CheckServicePodsParams object with the ability to set a context for a request.
func NewCheckServicePodsParamsWithHTTPClient ¶
func NewCheckServicePodsParamsWithHTTPClient(client *http.Client) *CheckServicePodsParams
NewCheckServicePodsParamsWithHTTPClient creates a new CheckServicePodsParams object with the ability to set a custom HTTPClient for a request.
func NewCheckServicePodsParamsWithTimeout ¶
func NewCheckServicePodsParamsWithTimeout(timeout time.Duration) *CheckServicePodsParams
NewCheckServicePodsParamsWithTimeout creates a new CheckServicePodsParams object with the ability to set a timeout on a request.
func (*CheckServicePodsParams) SetContext ¶
func (o *CheckServicePodsParams) SetContext(ctx context.Context)
SetContext adds the context to the check service pods params
func (*CheckServicePodsParams) SetDefaults ¶ added in v3.2.0
func (o *CheckServicePodsParams) SetDefaults()
SetDefaults hydrates default values in the check service pods params (not the query body).
All values with no default are reset to their zero value.
func (*CheckServicePodsParams) SetHTTPClient ¶
func (o *CheckServicePodsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the check service pods params
func (*CheckServicePodsParams) SetTimeout ¶
func (o *CheckServicePodsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the check service pods params
func (*CheckServicePodsParams) WithContext ¶
func (o *CheckServicePodsParams) WithContext(ctx context.Context) *CheckServicePodsParams
WithContext adds the context to the check service pods params
func (*CheckServicePodsParams) WithDefaults ¶ added in v3.2.0
func (o *CheckServicePodsParams) WithDefaults() *CheckServicePodsParams
WithDefaults hydrates default values in the check service pods params (not the query body).
All values with no default are reset to their zero value.
func (*CheckServicePodsParams) WithHTTPClient ¶
func (o *CheckServicePodsParams) WithHTTPClient(client *http.Client) *CheckServicePodsParams
WithHTTPClient adds the HTTPClient to the check service pods params
func (*CheckServicePodsParams) WithTimeout ¶
func (o *CheckServicePodsParams) WithTimeout(timeout time.Duration) *CheckServicePodsParams
WithTimeout adds the timeout to the check service pods params
func (*CheckServicePodsParams) WriteToRequest ¶
func (o *CheckServicePodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CheckServicePodsReader ¶
type CheckServicePodsReader struct {
// contains filtered or unexported fields
}
CheckServicePodsReader is a Reader for the CheckServicePods structure.
func (*CheckServicePodsReader) ReadResponse ¶
func (o *CheckServicePodsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func (*Client) CheckAllPods ¶
func (a *Client) CheckAllPods(params *CheckAllPodsParams, opts ...ClientOption) (*CheckAllPodsOK, error)
CheckAllPods Queries the API server for all other pods in this service, and makes all of them query all of their neighbours, using their pods IPs. Calls their /check endpoint.
func (*Client) CheckServicePods ¶
func (a *Client) CheckServicePods(params *CheckServicePodsParams, opts ...ClientOption) (*CheckServicePodsOK, error)
CheckServicePods Queries the API server for all other pods in this service, and pings them via their pods IPs. Calls their /ping endpoint
func (*Client) ClusterHealth ¶ added in v3.2.0
func (a *Client) ClusterHealth(params *ClusterHealthParams, opts ...ClientOption) (*ClusterHealthOK, error)
ClusterHealth Checks the full graph. Returns a binary OK or not OK.
func (*Client) Healthz ¶
func (a *Client) Healthz(params *HealthzParams, opts ...ClientOption) (*HealthzOK, error)
Healthz The healthcheck endpoint provides detailed information about the health of a web service. If each of the components required by the service are healthy, then the service is considered healthy and will return a 200 OK response. If any of the components needed by the service are unhealthy, then a 503 Service Unavailable response will be provided.
func (*Client) Ping ¶
func (a *Client) Ping(params *PingParams, opts ...ClientOption) (*PingOK, error)
Ping return query stats
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v3.2.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
CheckAllPods(params *CheckAllPodsParams, opts ...ClientOption) (*CheckAllPodsOK, error)
CheckServicePods(params *CheckServicePodsParams, opts ...ClientOption) (*CheckServicePodsOK, error)
ClusterHealth(params *ClusterHealthParams, opts ...ClientOption) (*ClusterHealthOK, error)
Healthz(params *HealthzParams, opts ...ClientOption) (*HealthzOK, error)
Ping(params *PingParams, opts ...ClientOption) (*PingOK, 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 operations API client.
type ClusterHealthIMATeapot ¶ added in v3.2.0
type ClusterHealthIMATeapot struct {
Payload *models.ClusterHealthResults
}
ClusterHealthIMATeapot describes a response with status code 418, with default header values.
Unhealthy cluster
func NewClusterHealthIMATeapot ¶ added in v3.2.0
func NewClusterHealthIMATeapot() *ClusterHealthIMATeapot
NewClusterHealthIMATeapot creates a ClusterHealthIMATeapot with default headers values
func (*ClusterHealthIMATeapot) Error ¶ added in v3.2.0
func (o *ClusterHealthIMATeapot) Error() string
func (*ClusterHealthIMATeapot) GetPayload ¶ added in v3.2.0
func (o *ClusterHealthIMATeapot) GetPayload() *models.ClusterHealthResults
type ClusterHealthOK ¶ added in v3.2.0
type ClusterHealthOK struct {
Payload *models.ClusterHealthResults
}
ClusterHealthOK describes a response with status code 200, with default header values.
Healthy cluster
func NewClusterHealthOK ¶ added in v3.2.0
func NewClusterHealthOK() *ClusterHealthOK
NewClusterHealthOK creates a ClusterHealthOK with default headers values
func (*ClusterHealthOK) Error ¶ added in v3.2.0
func (o *ClusterHealthOK) Error() string
func (*ClusterHealthOK) GetPayload ¶ added in v3.2.0
func (o *ClusterHealthOK) GetPayload() *models.ClusterHealthResults
type ClusterHealthParams ¶ added in v3.2.0
type ClusterHealthParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ClusterHealthParams contains all the parameters to send to the API endpoint
for the cluster health operation. Typically these are written to a http.Request.
func NewClusterHealthParams ¶ added in v3.2.0
func NewClusterHealthParams() *ClusterHealthParams
NewClusterHealthParams creates a new ClusterHealthParams 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 NewClusterHealthParamsWithContext ¶ added in v3.2.0
func NewClusterHealthParamsWithContext(ctx context.Context) *ClusterHealthParams
NewClusterHealthParamsWithContext creates a new ClusterHealthParams object with the ability to set a context for a request.
func NewClusterHealthParamsWithHTTPClient ¶ added in v3.2.0
func NewClusterHealthParamsWithHTTPClient(client *http.Client) *ClusterHealthParams
NewClusterHealthParamsWithHTTPClient creates a new ClusterHealthParams object with the ability to set a custom HTTPClient for a request.
func NewClusterHealthParamsWithTimeout ¶ added in v3.2.0
func NewClusterHealthParamsWithTimeout(timeout time.Duration) *ClusterHealthParams
NewClusterHealthParamsWithTimeout creates a new ClusterHealthParams object with the ability to set a timeout on a request.
func (*ClusterHealthParams) SetContext ¶ added in v3.2.0
func (o *ClusterHealthParams) SetContext(ctx context.Context)
SetContext adds the context to the cluster health params
func (*ClusterHealthParams) SetDefaults ¶ added in v3.2.0
func (o *ClusterHealthParams) SetDefaults()
SetDefaults hydrates default values in the cluster health params (not the query body).
All values with no default are reset to their zero value.
func (*ClusterHealthParams) SetHTTPClient ¶ added in v3.2.0
func (o *ClusterHealthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cluster health params
func (*ClusterHealthParams) SetTimeout ¶ added in v3.2.0
func (o *ClusterHealthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cluster health params
func (*ClusterHealthParams) WithContext ¶ added in v3.2.0
func (o *ClusterHealthParams) WithContext(ctx context.Context) *ClusterHealthParams
WithContext adds the context to the cluster health params
func (*ClusterHealthParams) WithDefaults ¶ added in v3.2.0
func (o *ClusterHealthParams) WithDefaults() *ClusterHealthParams
WithDefaults hydrates default values in the cluster health params (not the query body).
All values with no default are reset to their zero value.
func (*ClusterHealthParams) WithHTTPClient ¶ added in v3.2.0
func (o *ClusterHealthParams) WithHTTPClient(client *http.Client) *ClusterHealthParams
WithHTTPClient adds the HTTPClient to the cluster health params
func (*ClusterHealthParams) WithTimeout ¶ added in v3.2.0
func (o *ClusterHealthParams) WithTimeout(timeout time.Duration) *ClusterHealthParams
WithTimeout adds the timeout to the cluster health params
func (*ClusterHealthParams) WriteToRequest ¶ added in v3.2.0
func (o *ClusterHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ClusterHealthReader ¶ added in v3.2.0
type ClusterHealthReader struct {
// contains filtered or unexported fields
}
ClusterHealthReader is a Reader for the ClusterHealth structure.
func (*ClusterHealthReader) ReadResponse ¶ added in v3.2.0
func (o *ClusterHealthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type HealthzOK ¶
type HealthzOK struct {
Payload *models.HealthCheckResults
}
HealthzOK describes a response with status code 200, with default header values.
Health check report
func NewHealthzOK ¶
func NewHealthzOK() *HealthzOK
NewHealthzOK creates a HealthzOK with default headers values
func (*HealthzOK) GetPayload ¶
func (o *HealthzOK) GetPayload() *models.HealthCheckResults
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 healthz operation. Typically these are written to a http.Request.
func NewHealthzParams ¶
func NewHealthzParams() *HealthzParams
NewHealthzParams creates a new HealthzParams 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 NewHealthzParamsWithContext ¶
func NewHealthzParamsWithContext(ctx context.Context) *HealthzParams
NewHealthzParamsWithContext creates a new HealthzParams object with 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 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 ability to set a timeout on a request.
func (*HealthzParams) SetContext ¶
func (o *HealthzParams) SetContext(ctx context.Context)
SetContext adds the context to the healthz params
func (*HealthzParams) SetDefaults ¶ added in v3.2.0
func (o *HealthzParams) SetDefaults()
SetDefaults hydrates default values in the healthz params (not the query body).
All values with no default are reset to their zero value.
func (*HealthzParams) SetHTTPClient ¶
func (o *HealthzParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the healthz params
func (*HealthzParams) SetTimeout ¶
func (o *HealthzParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the healthz params
func (*HealthzParams) WithContext ¶
func (o *HealthzParams) WithContext(ctx context.Context) *HealthzParams
WithContext adds the context to the healthz params
func (*HealthzParams) WithDefaults ¶ added in v3.2.0
func (o *HealthzParams) WithDefaults() *HealthzParams
WithDefaults hydrates default values in the healthz params (not the query body).
All values with no default are reset to their zero value.
func (*HealthzParams) WithHTTPClient ¶
func (o *HealthzParams) WithHTTPClient(client *http.Client) *HealthzParams
WithHTTPClient adds the HTTPClient to the healthz params
func (*HealthzParams) WithTimeout ¶
func (o *HealthzParams) WithTimeout(timeout time.Duration) *HealthzParams
WithTimeout adds the timeout to the healthz 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.
type HealthzServiceUnavailable ¶
type HealthzServiceUnavailable struct {
}
HealthzServiceUnavailable describes a response with status code 503, with default header values.
Unhealthy service
func NewHealthzServiceUnavailable ¶
func NewHealthzServiceUnavailable() *HealthzServiceUnavailable
NewHealthzServiceUnavailable creates a HealthzServiceUnavailable with default headers values
func (*HealthzServiceUnavailable) Error ¶
func (o *HealthzServiceUnavailable) Error() string
func (*HealthzServiceUnavailable) GetPayload ¶
func (o *HealthzServiceUnavailable) GetPayload() *models.HealthCheckResults
type PingOK ¶
type PingOK struct {
Payload *models.PingResults
}
PingOK describes a response with status code 200, with default header values.
return success
func (*PingOK) GetPayload ¶
func (o *PingOK) GetPayload() *models.PingResults
type PingParams ¶
type PingParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PingParams contains all the parameters to send to the API endpoint
for the ping operation. Typically these are written to a http.Request.
func NewPingParams ¶
func NewPingParams() *PingParams
NewPingParams creates a new PingParams 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 NewPingParamsWithContext ¶
func NewPingParamsWithContext(ctx context.Context) *PingParams
NewPingParamsWithContext creates a new PingParams object with the ability to set a context for a request.
func NewPingParamsWithHTTPClient ¶
func NewPingParamsWithHTTPClient(client *http.Client) *PingParams
NewPingParamsWithHTTPClient creates a new PingParams object with the ability to set a custom HTTPClient for a request.
func NewPingParamsWithTimeout ¶
func NewPingParamsWithTimeout(timeout time.Duration) *PingParams
NewPingParamsWithTimeout creates a new PingParams object with the ability to set a timeout on a request.
func (*PingParams) SetContext ¶
func (o *PingParams) SetContext(ctx context.Context)
SetContext adds the context to the ping params
func (*PingParams) SetDefaults ¶ added in v3.2.0
func (o *PingParams) SetDefaults()
SetDefaults hydrates default values in the ping params (not the query body).
All values with no default are reset to their zero value.
func (*PingParams) SetHTTPClient ¶
func (o *PingParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the ping params
func (*PingParams) SetTimeout ¶
func (o *PingParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the ping params
func (*PingParams) WithContext ¶
func (o *PingParams) WithContext(ctx context.Context) *PingParams
WithContext adds the context to the ping params
func (*PingParams) WithDefaults ¶ added in v3.2.0
func (o *PingParams) WithDefaults() *PingParams
WithDefaults hydrates default values in the ping params (not the query body).
All values with no default are reset to their zero value.
func (*PingParams) WithHTTPClient ¶
func (o *PingParams) WithHTTPClient(client *http.Client) *PingParams
WithHTTPClient adds the HTTPClient to the ping params
func (*PingParams) WithTimeout ¶
func (o *PingParams) WithTimeout(timeout time.Duration) *PingParams
WithTimeout adds the timeout to the ping params
func (*PingParams) WriteToRequest ¶
func (o *PingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PingReader ¶
type PingReader struct {
// contains filtered or unexported fields
}
PingReader is a Reader for the Ping structure.
func (*PingReader) ReadResponse ¶
func (o *PingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.