Documentation ¶
Index ¶
- type Client
- type IsInstanceAliveInternalServerError
- type IsInstanceAliveOK
- type IsInstanceAliveParams
- func NewIsInstanceAliveParams() *IsInstanceAliveParams
- func NewIsInstanceAliveParamsWithContext(ctx context.Context) *IsInstanceAliveParams
- func NewIsInstanceAliveParamsWithHTTPClient(client *http.Client) *IsInstanceAliveParams
- func NewIsInstanceAliveParamsWithTimeout(timeout time.Duration) *IsInstanceAliveParams
- func (o *IsInstanceAliveParams) SetContext(ctx context.Context)
- func (o *IsInstanceAliveParams) SetHTTPClient(client *http.Client)
- func (o *IsInstanceAliveParams) SetTimeout(timeout time.Duration)
- func (o *IsInstanceAliveParams) WithContext(ctx context.Context) *IsInstanceAliveParams
- func (o *IsInstanceAliveParams) WithHTTPClient(client *http.Client) *IsInstanceAliveParams
- func (o *IsInstanceAliveParams) WithTimeout(timeout time.Duration) *IsInstanceAliveParams
- func (o *IsInstanceAliveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type IsInstanceAliveReader
- type IsInstanceReadyOK
- type IsInstanceReadyParams
- func NewIsInstanceReadyParams() *IsInstanceReadyParams
- func NewIsInstanceReadyParamsWithContext(ctx context.Context) *IsInstanceReadyParams
- func NewIsInstanceReadyParamsWithHTTPClient(client *http.Client) *IsInstanceReadyParams
- func NewIsInstanceReadyParamsWithTimeout(timeout time.Duration) *IsInstanceReadyParams
- func (o *IsInstanceReadyParams) SetContext(ctx context.Context)
- func (o *IsInstanceReadyParams) SetHTTPClient(client *http.Client)
- func (o *IsInstanceReadyParams) SetTimeout(timeout time.Duration)
- func (o *IsInstanceReadyParams) WithContext(ctx context.Context) *IsInstanceReadyParams
- func (o *IsInstanceReadyParams) WithHTTPClient(client *http.Client) *IsInstanceReadyParams
- func (o *IsInstanceReadyParams) WithTimeout(timeout time.Duration) *IsInstanceReadyParams
- func (o *IsInstanceReadyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type IsInstanceReadyReader
- type IsInstanceReadyServiceUnavailable
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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new health API client.
func (*Client) IsInstanceAlive ¶
func (a *Client) IsInstanceAlive(params *IsInstanceAliveParams) (*IsInstanceAliveOK, error)
IsInstanceAlive checks alive status
This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working.
If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.
Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
func (*Client) IsInstanceReady ¶
func (a *Client) IsInstanceReady(params *IsInstanceReadyParams) (*IsInstanceReadyOK, error)
IsInstanceReady checks readiness status
This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well.
If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.
Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type IsInstanceAliveInternalServerError ¶
type IsInstanceAliveInternalServerError struct {
Payload *models.GenericError
}
IsInstanceAliveInternalServerError handles this case with default header values.
genericError
func NewIsInstanceAliveInternalServerError ¶
func NewIsInstanceAliveInternalServerError() *IsInstanceAliveInternalServerError
NewIsInstanceAliveInternalServerError creates a IsInstanceAliveInternalServerError with default headers values
func (*IsInstanceAliveInternalServerError) Error ¶
func (o *IsInstanceAliveInternalServerError) Error() string
type IsInstanceAliveOK ¶
type IsInstanceAliveOK struct {
Payload *models.SwaggerHealthStatus
}
IsInstanceAliveOK handles this case with default header values.
healthStatus
func NewIsInstanceAliveOK ¶
func NewIsInstanceAliveOK() *IsInstanceAliveOK
NewIsInstanceAliveOK creates a IsInstanceAliveOK with default headers values
func (*IsInstanceAliveOK) Error ¶
func (o *IsInstanceAliveOK) Error() string
type IsInstanceAliveParams ¶
type IsInstanceAliveParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
IsInstanceAliveParams contains all the parameters to send to the API endpoint for the is instance alive operation typically these are written to a http.Request
func NewIsInstanceAliveParams ¶
func NewIsInstanceAliveParams() *IsInstanceAliveParams
NewIsInstanceAliveParams creates a new IsInstanceAliveParams object with the default values initialized.
func NewIsInstanceAliveParamsWithContext ¶
func NewIsInstanceAliveParamsWithContext(ctx context.Context) *IsInstanceAliveParams
NewIsInstanceAliveParamsWithContext creates a new IsInstanceAliveParams object with the default values initialized, and the ability to set a context for a request
func NewIsInstanceAliveParamsWithHTTPClient ¶
func NewIsInstanceAliveParamsWithHTTPClient(client *http.Client) *IsInstanceAliveParams
NewIsInstanceAliveParamsWithHTTPClient creates a new IsInstanceAliveParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewIsInstanceAliveParamsWithTimeout ¶
func NewIsInstanceAliveParamsWithTimeout(timeout time.Duration) *IsInstanceAliveParams
NewIsInstanceAliveParamsWithTimeout creates a new IsInstanceAliveParams object with the default values initialized, and the ability to set a timeout on a request
func (*IsInstanceAliveParams) SetContext ¶
func (o *IsInstanceAliveParams) SetContext(ctx context.Context)
SetContext adds the context to the is instance alive params
func (*IsInstanceAliveParams) SetHTTPClient ¶
func (o *IsInstanceAliveParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the is instance alive params
func (*IsInstanceAliveParams) SetTimeout ¶
func (o *IsInstanceAliveParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the is instance alive params
func (*IsInstanceAliveParams) WithContext ¶
func (o *IsInstanceAliveParams) WithContext(ctx context.Context) *IsInstanceAliveParams
WithContext adds the context to the is instance alive params
func (*IsInstanceAliveParams) WithHTTPClient ¶
func (o *IsInstanceAliveParams) WithHTTPClient(client *http.Client) *IsInstanceAliveParams
WithHTTPClient adds the HTTPClient to the is instance alive params
func (*IsInstanceAliveParams) WithTimeout ¶
func (o *IsInstanceAliveParams) WithTimeout(timeout time.Duration) *IsInstanceAliveParams
WithTimeout adds the timeout to the is instance alive params
func (*IsInstanceAliveParams) WriteToRequest ¶
func (o *IsInstanceAliveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type IsInstanceAliveReader ¶
type IsInstanceAliveReader struct {
// contains filtered or unexported fields
}
IsInstanceAliveReader is a Reader for the IsInstanceAlive structure.
func (*IsInstanceAliveReader) ReadResponse ¶
func (o *IsInstanceAliveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type IsInstanceReadyOK ¶
type IsInstanceReadyOK struct {
Payload *models.SwaggerHealthStatus
}
IsInstanceReadyOK handles this case with default header values.
healthStatus
func NewIsInstanceReadyOK ¶
func NewIsInstanceReadyOK() *IsInstanceReadyOK
NewIsInstanceReadyOK creates a IsInstanceReadyOK with default headers values
func (*IsInstanceReadyOK) Error ¶
func (o *IsInstanceReadyOK) Error() string
type IsInstanceReadyParams ¶
type IsInstanceReadyParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
IsInstanceReadyParams contains all the parameters to send to the API endpoint for the is instance ready operation typically these are written to a http.Request
func NewIsInstanceReadyParams ¶
func NewIsInstanceReadyParams() *IsInstanceReadyParams
NewIsInstanceReadyParams creates a new IsInstanceReadyParams object with the default values initialized.
func NewIsInstanceReadyParamsWithContext ¶
func NewIsInstanceReadyParamsWithContext(ctx context.Context) *IsInstanceReadyParams
NewIsInstanceReadyParamsWithContext creates a new IsInstanceReadyParams object with the default values initialized, and the ability to set a context for a request
func NewIsInstanceReadyParamsWithHTTPClient ¶
func NewIsInstanceReadyParamsWithHTTPClient(client *http.Client) *IsInstanceReadyParams
NewIsInstanceReadyParamsWithHTTPClient creates a new IsInstanceReadyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewIsInstanceReadyParamsWithTimeout ¶
func NewIsInstanceReadyParamsWithTimeout(timeout time.Duration) *IsInstanceReadyParams
NewIsInstanceReadyParamsWithTimeout creates a new IsInstanceReadyParams object with the default values initialized, and the ability to set a timeout on a request
func (*IsInstanceReadyParams) SetContext ¶
func (o *IsInstanceReadyParams) SetContext(ctx context.Context)
SetContext adds the context to the is instance ready params
func (*IsInstanceReadyParams) SetHTTPClient ¶
func (o *IsInstanceReadyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the is instance ready params
func (*IsInstanceReadyParams) SetTimeout ¶
func (o *IsInstanceReadyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the is instance ready params
func (*IsInstanceReadyParams) WithContext ¶
func (o *IsInstanceReadyParams) WithContext(ctx context.Context) *IsInstanceReadyParams
WithContext adds the context to the is instance ready params
func (*IsInstanceReadyParams) WithHTTPClient ¶
func (o *IsInstanceReadyParams) WithHTTPClient(client *http.Client) *IsInstanceReadyParams
WithHTTPClient adds the HTTPClient to the is instance ready params
func (*IsInstanceReadyParams) WithTimeout ¶
func (o *IsInstanceReadyParams) WithTimeout(timeout time.Duration) *IsInstanceReadyParams
WithTimeout adds the timeout to the is instance ready params
func (*IsInstanceReadyParams) WriteToRequest ¶
func (o *IsInstanceReadyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type IsInstanceReadyReader ¶
type IsInstanceReadyReader struct {
// contains filtered or unexported fields
}
IsInstanceReadyReader is a Reader for the IsInstanceReady structure.
func (*IsInstanceReadyReader) ReadResponse ¶
func (o *IsInstanceReadyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type IsInstanceReadyServiceUnavailable ¶
type IsInstanceReadyServiceUnavailable struct {
}IsInstanceReadyServiceUnavailable handles this case with default header values.
healthNotReadyStatus
func NewIsInstanceReadyServiceUnavailable ¶
func NewIsInstanceReadyServiceUnavailable() *IsInstanceReadyServiceUnavailable
NewIsInstanceReadyServiceUnavailable creates a IsInstanceReadyServiceUnavailable with default headers values
func (*IsInstanceReadyServiceUnavailable) Error ¶
func (o *IsInstanceReadyServiceUnavailable) Error() string