restapi

package
v1.5.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

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 New

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

New creates a new restapi API client.

func (*Client) GetHealthz

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) GetHello added in v1.5.0

func (a *Client) GetHello(params *GetHelloParams) (*GetHelloOK, error)

GetHello says hello to cilium health

Returns a successful status code if this cilium-health instance is reachable.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetHealthzFailed

type GetHealthzFailed struct {
	Payload models.Error
}

GetHealthzFailed handles this case 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

type GetHealthzOK

type GetHealthzOK struct {
	Payload *models.HealthResponse
}

GetHealthzOK handles this case 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

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 values initialized.

func NewGetHealthzParamsWithContext

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

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

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

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

SetContext adds the context to the get healthz params

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) 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.

type GetHelloOK added in v1.5.0

type GetHelloOK struct {
}

GetHelloOK handles this case with default header values.

Success

func NewGetHelloOK added in v1.5.0

func NewGetHelloOK() *GetHelloOK

NewGetHelloOK creates a GetHelloOK with default headers values

func (*GetHelloOK) Error added in v1.5.0

func (o *GetHelloOK) Error() string

type GetHelloParams added in v1.5.0

type GetHelloParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetHelloParams contains all the parameters to send to the API endpoint for the get hello operation typically these are written to a http.Request

func NewGetHelloParams added in v1.5.0

func NewGetHelloParams() *GetHelloParams

NewGetHelloParams creates a new GetHelloParams object with the default values initialized.

func NewGetHelloParamsWithContext added in v1.5.0

func NewGetHelloParamsWithContext(ctx context.Context) *GetHelloParams

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

func NewGetHelloParamsWithHTTPClient added in v1.5.0

func NewGetHelloParamsWithHTTPClient(client *http.Client) *GetHelloParams

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

func NewGetHelloParamsWithTimeout added in v1.5.0

func NewGetHelloParamsWithTimeout(timeout time.Duration) *GetHelloParams

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

func (*GetHelloParams) SetContext added in v1.5.0

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

SetContext adds the context to the get hello params

func (*GetHelloParams) SetHTTPClient added in v1.5.0

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

SetHTTPClient adds the HTTPClient to the get hello params

func (*GetHelloParams) SetTimeout added in v1.5.0

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

SetTimeout adds the timeout to the get hello params

func (*GetHelloParams) WithContext added in v1.5.0

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

WithContext adds the context to the get hello params

func (*GetHelloParams) WithHTTPClient added in v1.5.0

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

WithHTTPClient adds the HTTPClient to the get hello params

func (*GetHelloParams) WithTimeout added in v1.5.0

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

WithTimeout adds the timeout to the get hello params

func (*GetHelloParams) WriteToRequest added in v1.5.0

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

WriteToRequest writes these params to a swagger request

type GetHelloReader added in v1.5.0

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

GetHelloReader is a Reader for the GetHello structure.

func (*GetHelloReader) ReadResponse added in v1.5.0

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL