liveness

package
v0.0.0-...-2b9725c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 10 Imported by: 0

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 liveness API

func New

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

New creates a new liveness API client.

func (*Client) GetLive

func (a *Client) GetLive(params *GetLiveParams) (*GetLiveOK, error)

GetLive get live API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetLiveDefault

type GetLiveDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetLiveDefault handles this case with default header values.

generic error response

func NewGetLiveDefault

func NewGetLiveDefault(code int) *GetLiveDefault

NewGetLiveDefault creates a GetLiveDefault with default headers values

func (*GetLiveDefault) Code

func (o *GetLiveDefault) Code() int

Code gets the status code for the get live default response

func (*GetLiveDefault) Error

func (o *GetLiveDefault) Error() string

type GetLiveOK

type GetLiveOK struct {
}

GetLiveOK handles this case with default header values.

liveness probe

func NewGetLiveOK

func NewGetLiveOK() *GetLiveOK

NewGetLiveOK creates a GetLiveOK with default headers values

func (*GetLiveOK) Error

func (o *GetLiveOK) Error() string

type GetLiveParams

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

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

func NewGetLiveParams

func NewGetLiveParams() *GetLiveParams

NewGetLiveParams creates a new GetLiveParams object with the default values initialized.

func NewGetLiveParamsWithContext

func NewGetLiveParamsWithContext(ctx context.Context) *GetLiveParams

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

func NewGetLiveParamsWithHTTPClient

func NewGetLiveParamsWithHTTPClient(client *http.Client) *GetLiveParams

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

func NewGetLiveParamsWithTimeout

func NewGetLiveParamsWithTimeout(timeout time.Duration) *GetLiveParams

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

func (*GetLiveParams) SetContext

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

SetContext adds the context to the get live params

func (*GetLiveParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get live params

func (*GetLiveParams) SetTimeout

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

SetTimeout adds the timeout to the get live params

func (*GetLiveParams) WithContext

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

WithContext adds the context to the get live params

func (*GetLiveParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get live params

func (*GetLiveParams) WithTimeout

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

WithTimeout adds the timeout to the get live params

func (*GetLiveParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLiveReader

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

GetLiveReader is a Reader for the GetLive structure.

func (*GetLiveReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLiveServiceUnavailable

type GetLiveServiceUnavailable struct {
	Payload *models.Error
}

GetLiveServiceUnavailable handles this case with default header values.

if not alive

func NewGetLiveServiceUnavailable

func NewGetLiveServiceUnavailable() *GetLiveServiceUnavailable

NewGetLiveServiceUnavailable creates a GetLiveServiceUnavailable with default headers values

func (*GetLiveServiceUnavailable) Error

func (o *GetLiveServiceUnavailable) Error() string

Jump to

Keyboard shortcuts

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