Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetHealthzFailed
- func (o *GetHealthzFailed) Error() string
- func (o *GetHealthzFailed) GetPayload() models.Error
- func (o *GetHealthzFailed) IsClientError() bool
- func (o *GetHealthzFailed) IsCode(code int) bool
- func (o *GetHealthzFailed) IsRedirect() bool
- func (o *GetHealthzFailed) IsServerError() bool
- func (o *GetHealthzFailed) IsSuccess() bool
- func (o *GetHealthzFailed) String() string
- type GetHealthzOK
- func (o *GetHealthzOK) Error() string
- func (o *GetHealthzOK) GetPayload() *models.HealthResponse
- func (o *GetHealthzOK) IsClientError() bool
- func (o *GetHealthzOK) IsCode(code int) bool
- func (o *GetHealthzOK) IsRedirect() bool
- func (o *GetHealthzOK) IsServerError() bool
- func (o *GetHealthzOK) IsSuccess() bool
- func (o *GetHealthzOK) String() string
- type GetHealthzParams
- func (o *GetHealthzParams) SetContext(ctx context.Context)
- func (o *GetHealthzParams) SetDefaults()
- func (o *GetHealthzParams) SetHTTPClient(client *http.Client)
- func (o *GetHealthzParams) SetTimeout(timeout time.Duration)
- func (o *GetHealthzParams) WithContext(ctx context.Context) *GetHealthzParams
- func (o *GetHealthzParams) WithDefaults() *GetHealthzParams
- func (o *GetHealthzParams) WithHTTPClient(client *http.Client) *GetHealthzParams
- func (o *GetHealthzParams) WithTimeout(timeout time.Duration) *GetHealthzParams
- func (o *GetHealthzParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHealthzReader
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 restapi API
func (*Client) GetHealthz ¶
func (a *Client) GetHealthz(params *GetHealthzParams, opts ...ClientOption) (*GetHealthzOK, error)
GetHealthz gets health of cilium node Returns health and status information of the local node including
load and uptime, as well as the status of related components including the Cilium daemon.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v1.14.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v1.14.0
type ClientService interface { GetHealthz(params *GetHealthzParams, opts ...ClientOption) (*GetHealthzOK, 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 restapi API client.
type GetHealthzFailed ¶
GetHealthzFailed describes a response with status code 500, with default header values.
Failed to contact local Cilium daemon
func NewGetHealthzFailed ¶
func NewGetHealthzFailed() *GetHealthzFailed
NewGetHealthzFailed creates a GetHealthzFailed with default headers values
func (*GetHealthzFailed) Error ¶
func (o *GetHealthzFailed) Error() string
func (*GetHealthzFailed) GetPayload ¶ added in v1.14.0
func (o *GetHealthzFailed) GetPayload() models.Error
func (*GetHealthzFailed) IsClientError ¶ added in v1.14.0
func (o *GetHealthzFailed) IsClientError() bool
IsClientError returns true when this get healthz failed response has a 4xx status code
func (*GetHealthzFailed) IsCode ¶ added in v1.14.0
func (o *GetHealthzFailed) IsCode(code int) bool
IsCode returns true when this get healthz failed response a status code equal to that given
func (*GetHealthzFailed) IsRedirect ¶ added in v1.14.0
func (o *GetHealthzFailed) IsRedirect() bool
IsRedirect returns true when this get healthz failed response has a 3xx status code
func (*GetHealthzFailed) IsServerError ¶ added in v1.14.0
func (o *GetHealthzFailed) IsServerError() bool
IsServerError returns true when this get healthz failed response has a 5xx status code
func (*GetHealthzFailed) IsSuccess ¶ added in v1.14.0
func (o *GetHealthzFailed) IsSuccess() bool
IsSuccess returns true when this get healthz failed response has a 2xx status code
func (*GetHealthzFailed) String ¶ added in v1.14.0
func (o *GetHealthzFailed) String() string
type GetHealthzOK ¶
type GetHealthzOK struct {
Payload *models.HealthResponse
}
GetHealthzOK describes a response with status code 200, with default header values.
Success
func NewGetHealthzOK ¶
func NewGetHealthzOK() *GetHealthzOK
NewGetHealthzOK creates a GetHealthzOK with default headers values
func (*GetHealthzOK) Error ¶
func (o *GetHealthzOK) Error() string
func (*GetHealthzOK) GetPayload ¶ added in v1.14.0
func (o *GetHealthzOK) GetPayload() *models.HealthResponse
func (*GetHealthzOK) IsClientError ¶ added in v1.14.0
func (o *GetHealthzOK) IsClientError() bool
IsClientError returns true when this get healthz o k response has a 4xx status code
func (*GetHealthzOK) IsCode ¶ added in v1.14.0
func (o *GetHealthzOK) IsCode(code int) bool
IsCode returns true when this get healthz o k response a status code equal to that given
func (*GetHealthzOK) IsRedirect ¶ added in v1.14.0
func (o *GetHealthzOK) IsRedirect() bool
IsRedirect returns true when this get healthz o k response has a 3xx status code
func (*GetHealthzOK) IsServerError ¶ added in v1.14.0
func (o *GetHealthzOK) IsServerError() bool
IsServerError returns true when this get healthz o k response has a 5xx status code
func (*GetHealthzOK) IsSuccess ¶ added in v1.14.0
func (o *GetHealthzOK) IsSuccess() bool
IsSuccess returns true when this get healthz o k response has a 2xx status code
func (*GetHealthzOK) String ¶ added in v1.14.0
func (o *GetHealthzOK) String() string
type GetHealthzParams ¶
type GetHealthzParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHealthzParams contains all the parameters to send to the API endpoint
for the get healthz operation. Typically these are written to a http.Request.
func NewGetHealthzParams ¶
func NewGetHealthzParams() *GetHealthzParams
NewGetHealthzParams creates a new GetHealthzParams 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 NewGetHealthzParamsWithContext ¶
func NewGetHealthzParamsWithContext(ctx context.Context) *GetHealthzParams
NewGetHealthzParamsWithContext creates a new GetHealthzParams object with the ability to set a context for a request.
func NewGetHealthzParamsWithHTTPClient ¶
func NewGetHealthzParamsWithHTTPClient(client *http.Client) *GetHealthzParams
NewGetHealthzParamsWithHTTPClient creates a new GetHealthzParams object with the ability to set a custom HTTPClient for a request.
func NewGetHealthzParamsWithTimeout ¶
func NewGetHealthzParamsWithTimeout(timeout time.Duration) *GetHealthzParams
NewGetHealthzParamsWithTimeout creates a new GetHealthzParams object with the ability to set a timeout on a request.
func (*GetHealthzParams) SetContext ¶
func (o *GetHealthzParams) SetContext(ctx context.Context)
SetContext adds the context to the get healthz params
func (*GetHealthzParams) SetDefaults ¶ added in v1.14.0
func (o *GetHealthzParams) SetDefaults()
SetDefaults hydrates default values in the get healthz params (not the query body).
All values with no default are reset to their zero value.
func (*GetHealthzParams) SetHTTPClient ¶
func (o *GetHealthzParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get healthz params
func (*GetHealthzParams) SetTimeout ¶
func (o *GetHealthzParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get healthz params
func (*GetHealthzParams) WithContext ¶
func (o *GetHealthzParams) WithContext(ctx context.Context) *GetHealthzParams
WithContext adds the context to the get healthz params
func (*GetHealthzParams) WithDefaults ¶ added in v1.14.0
func (o *GetHealthzParams) WithDefaults() *GetHealthzParams
WithDefaults hydrates default values in the get healthz params (not the query body).
All values with no default are reset to their zero value.
func (*GetHealthzParams) WithHTTPClient ¶
func (o *GetHealthzParams) WithHTTPClient(client *http.Client) *GetHealthzParams
WithHTTPClient adds the HTTPClient to the get healthz params
func (*GetHealthzParams) WithTimeout ¶
func (o *GetHealthzParams) WithTimeout(timeout time.Duration) *GetHealthzParams
WithTimeout adds the timeout to the get healthz params
func (*GetHealthzParams) WriteToRequest ¶
func (o *GetHealthzParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHealthzReader ¶
type GetHealthzReader struct {
// contains filtered or unexported fields
}
GetHealthzReader is a Reader for the GetHealthz structure.
func (*GetHealthzReader) ReadResponse ¶
func (o *GetHealthzReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.