cilium: github.com/cilium/cilium/api/v1/health/client/restapi Index | Files

package restapi

import "github.com/cilium/cilium/api/v1/health/client/restapi"

Index

Package Files

get_healthz_parameters.go get_healthz_responses.go restapi_client.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

Client for restapi API

func New Uses

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new restapi API client.

func (*Client) GetHealthz Uses

func (a *Client) GetHealthz(params *GetHealthzParams) (*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 Uses

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type GetHealthzFailed Uses

type GetHealthzFailed struct {
    Payload models.Error
}

GetHealthzFailed handles this case with default header values.

Failed to contact local Cilium daemon

func NewGetHealthzFailed Uses

func NewGetHealthzFailed() *GetHealthzFailed

NewGetHealthzFailed creates a GetHealthzFailed with default headers values

func (*GetHealthzFailed) Error Uses

func (o *GetHealthzFailed) Error() string

func (*GetHealthzFailed) GetPayload Uses

func (o *GetHealthzFailed) GetPayload() models.Error

type GetHealthzOK Uses

type GetHealthzOK struct {
    Payload *models.HealthResponse
}

GetHealthzOK handles this case with default header values.

Success

func NewGetHealthzOK Uses

func NewGetHealthzOK() *GetHealthzOK

NewGetHealthzOK creates a GetHealthzOK with default headers values

func (*GetHealthzOK) Error Uses

func (o *GetHealthzOK) Error() string

func (*GetHealthzOK) GetPayload Uses

func (o *GetHealthzOK) GetPayload() *models.HealthResponse

type GetHealthzParams Uses

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 Uses

func NewGetHealthzParams() *GetHealthzParams

NewGetHealthzParams creates a new GetHealthzParams object with the default values initialized.

func NewGetHealthzParamsWithContext Uses

func NewGetHealthzParamsWithContext(ctx context.Context) *GetHealthzParams

NewGetHealthzParamsWithContext creates a new GetHealthzParams object with the default values initialized, and the ability to set a context for a request

func NewGetHealthzParamsWithHTTPClient Uses

func NewGetHealthzParamsWithHTTPClient(client *http.Client) *GetHealthzParams

NewGetHealthzParamsWithHTTPClient creates a new GetHealthzParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetHealthzParamsWithTimeout Uses

func NewGetHealthzParamsWithTimeout(timeout time.Duration) *GetHealthzParams

NewGetHealthzParamsWithTimeout creates a new GetHealthzParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetHealthzParams) SetContext Uses

func (o *GetHealthzParams) SetContext(ctx context.Context)

SetContext adds the context to the get healthz params

func (*GetHealthzParams) SetHTTPClient Uses

func (o *GetHealthzParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get healthz params

func (*GetHealthzParams) SetTimeout Uses

func (o *GetHealthzParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get healthz params

func (*GetHealthzParams) WithContext Uses

func (o *GetHealthzParams) WithContext(ctx context.Context) *GetHealthzParams

WithContext adds the context to the get healthz params

func (*GetHealthzParams) WithHTTPClient Uses

func (o *GetHealthzParams) WithHTTPClient(client *http.Client) *GetHealthzParams

WithHTTPClient adds the HTTPClient to the get healthz params

func (*GetHealthzParams) WithTimeout Uses

func (o *GetHealthzParams) WithTimeout(timeout time.Duration) *GetHealthzParams

WithTimeout adds the timeout to the get healthz params

func (*GetHealthzParams) WriteToRequest Uses

func (o *GetHealthzParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetHealthzReader Uses

type GetHealthzReader struct {
    // contains filtered or unexported fields
}

GetHealthzReader is a Reader for the GetHealthz structure.

func (*GetHealthzReader) ReadResponse Uses

func (o *GetHealthzReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Package restapi imports 10 packages (graph) and is imported by 1 packages. Updated 2019-11-25. Refresh now. Tools for package owners.