operations

package
v0.0.0-...-b3aaee5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   HealthZ checks heathy of API server*/
	HealthZ(ctx context.Context, params *HealthZParams) (*HealthZOK, error)
}

API is the interface of the operations client

type Client

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

Client for operations API

func New

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

New creates a new operations API client.

func (*Client) HealthZ

func (a *Client) HealthZ(ctx context.Context, params *HealthZParams) (*HealthZOK, error)

HealthZ checks heathy of API server

type HealthZOK

type HealthZOK struct {
	Payload *models.StatusResponse
}

HealthZOK handles this case with default header values.

successful operation

func NewHealthZOK

func NewHealthZOK() *HealthZOK

NewHealthZOK creates a HealthZOK with default headers values

func (*HealthZOK) Error

func (o *HealthZOK) Error() string

func (*HealthZOK) GetPayload

func (o *HealthZOK) GetPayload() *models.StatusResponse

type HealthZParams

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

HealthZParams contains all the parameters to send to the API endpoint for the health z operation typically these are written to a http.Request

func NewHealthZParams

func NewHealthZParams() *HealthZParams

NewHealthZParams creates a new HealthZParams object with the default values initialized.

func NewHealthZParamsWithContext

func NewHealthZParamsWithContext(ctx context.Context) *HealthZParams

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

func NewHealthZParamsWithHTTPClient

func NewHealthZParamsWithHTTPClient(client *http.Client) *HealthZParams

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

func NewHealthZParamsWithTimeout

func NewHealthZParamsWithTimeout(timeout time.Duration) *HealthZParams

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

func (*HealthZParams) SetContext

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

SetContext adds the context to the health z params

func (*HealthZParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the health z params

func (*HealthZParams) SetTimeout

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

SetTimeout adds the timeout to the health z params

func (*HealthZParams) WithContext

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

WithContext adds the context to the health z params

func (*HealthZParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the health z params

func (*HealthZParams) WithTimeout

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

WithTimeout adds the timeout to the health z params

func (*HealthZParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type HealthZReader

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

HealthZReader is a Reader for the HealthZ structure.

func (*HealthZReader) ReadResponse

func (o *HealthZReader) 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