runtime

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 8 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 runtime API

func (*Client) GetRuntimeLiveness

func (a *Client) GetRuntimeLiveness(params *GetRuntimeLivenessParams, opts ...ClientOption) (*GetRuntimeLivenessOK, error)

GetRuntimeLiveness livenesses probe

Check pod liveness probe

func (*Client) GetRuntimeReadiness

func (a *Client) GetRuntimeReadiness(params *GetRuntimeReadinessParams, opts ...ClientOption) (*GetRuntimeReadinessOK, error)

GetRuntimeReadiness readinesses probe

Check pod readiness probe

func (*Client) GetRuntimeStartup

func (a *Client) GetRuntimeStartup(params *GetRuntimeStartupParams, opts ...ClientOption) (*GetRuntimeStartupOK, error)

GetRuntimeStartup startups probe

Check pod startup probe

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetRuntimeLiveness(params *GetRuntimeLivenessParams, opts ...ClientOption) (*GetRuntimeLivenessOK, error)

	GetRuntimeReadiness(params *GetRuntimeReadinessParams, opts ...ClientOption) (*GetRuntimeReadinessOK, error)

	GetRuntimeStartup(params *GetRuntimeStartupParams, opts ...ClientOption) (*GetRuntimeStartupOK, 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 runtime API client.

type GetRuntimeLivenessInternalServerError

type GetRuntimeLivenessInternalServerError struct {
}
GetRuntimeLivenessInternalServerError describes a response with status code 500, with default header values.

Failed

func NewGetRuntimeLivenessInternalServerError

func NewGetRuntimeLivenessInternalServerError() *GetRuntimeLivenessInternalServerError

NewGetRuntimeLivenessInternalServerError creates a GetRuntimeLivenessInternalServerError with default headers values

func (*GetRuntimeLivenessInternalServerError) Error

type GetRuntimeLivenessOK

type GetRuntimeLivenessOK struct {
}
GetRuntimeLivenessOK describes a response with status code 200, with default header values.

Success

func NewGetRuntimeLivenessOK

func NewGetRuntimeLivenessOK() *GetRuntimeLivenessOK

NewGetRuntimeLivenessOK creates a GetRuntimeLivenessOK with default headers values

func (*GetRuntimeLivenessOK) Error

func (o *GetRuntimeLivenessOK) Error() string

type GetRuntimeLivenessParams

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

GetRuntimeLivenessParams contains all the parameters to send to the API endpoint

for the get runtime liveness operation.

Typically these are written to a http.Request.

func NewGetRuntimeLivenessParams

func NewGetRuntimeLivenessParams() *GetRuntimeLivenessParams

NewGetRuntimeLivenessParams creates a new GetRuntimeLivenessParams 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 NewGetRuntimeLivenessParamsWithContext

func NewGetRuntimeLivenessParamsWithContext(ctx context.Context) *GetRuntimeLivenessParams

NewGetRuntimeLivenessParamsWithContext creates a new GetRuntimeLivenessParams object with the ability to set a context for a request.

func NewGetRuntimeLivenessParamsWithHTTPClient

func NewGetRuntimeLivenessParamsWithHTTPClient(client *http.Client) *GetRuntimeLivenessParams

NewGetRuntimeLivenessParamsWithHTTPClient creates a new GetRuntimeLivenessParams object with the ability to set a custom HTTPClient for a request.

func NewGetRuntimeLivenessParamsWithTimeout

func NewGetRuntimeLivenessParamsWithTimeout(timeout time.Duration) *GetRuntimeLivenessParams

NewGetRuntimeLivenessParamsWithTimeout creates a new GetRuntimeLivenessParams object with the ability to set a timeout on a request.

func (*GetRuntimeLivenessParams) SetContext

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

SetContext adds the context to the get runtime liveness params

func (*GetRuntimeLivenessParams) SetDefaults

func (o *GetRuntimeLivenessParams) SetDefaults()

SetDefaults hydrates default values in the get runtime liveness params (not the query body).

All values with no default are reset to their zero value.

func (*GetRuntimeLivenessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get runtime liveness params

func (*GetRuntimeLivenessParams) SetTimeout

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

SetTimeout adds the timeout to the get runtime liveness params

func (*GetRuntimeLivenessParams) WithContext

WithContext adds the context to the get runtime liveness params

func (*GetRuntimeLivenessParams) WithDefaults

WithDefaults hydrates default values in the get runtime liveness params (not the query body).

All values with no default are reset to their zero value.

func (*GetRuntimeLivenessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get runtime liveness params

func (*GetRuntimeLivenessParams) WithTimeout

WithTimeout adds the timeout to the get runtime liveness params

func (*GetRuntimeLivenessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRuntimeLivenessReader

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

GetRuntimeLivenessReader is a Reader for the GetRuntimeLiveness structure.

func (*GetRuntimeLivenessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRuntimeReadinessInternalServerError

type GetRuntimeReadinessInternalServerError struct {
}
GetRuntimeReadinessInternalServerError describes a response with status code 500, with default header values.

Failed

func NewGetRuntimeReadinessInternalServerError

func NewGetRuntimeReadinessInternalServerError() *GetRuntimeReadinessInternalServerError

NewGetRuntimeReadinessInternalServerError creates a GetRuntimeReadinessInternalServerError with default headers values

func (*GetRuntimeReadinessInternalServerError) Error

type GetRuntimeReadinessOK

type GetRuntimeReadinessOK struct {
}
GetRuntimeReadinessOK describes a response with status code 200, with default header values.

Success

func NewGetRuntimeReadinessOK

func NewGetRuntimeReadinessOK() *GetRuntimeReadinessOK

NewGetRuntimeReadinessOK creates a GetRuntimeReadinessOK with default headers values

func (*GetRuntimeReadinessOK) Error

func (o *GetRuntimeReadinessOK) Error() string

type GetRuntimeReadinessParams

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

GetRuntimeReadinessParams contains all the parameters to send to the API endpoint

for the get runtime readiness operation.

Typically these are written to a http.Request.

func NewGetRuntimeReadinessParams

func NewGetRuntimeReadinessParams() *GetRuntimeReadinessParams

NewGetRuntimeReadinessParams creates a new GetRuntimeReadinessParams 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 NewGetRuntimeReadinessParamsWithContext

func NewGetRuntimeReadinessParamsWithContext(ctx context.Context) *GetRuntimeReadinessParams

NewGetRuntimeReadinessParamsWithContext creates a new GetRuntimeReadinessParams object with the ability to set a context for a request.

func NewGetRuntimeReadinessParamsWithHTTPClient

func NewGetRuntimeReadinessParamsWithHTTPClient(client *http.Client) *GetRuntimeReadinessParams

NewGetRuntimeReadinessParamsWithHTTPClient creates a new GetRuntimeReadinessParams object with the ability to set a custom HTTPClient for a request.

func NewGetRuntimeReadinessParamsWithTimeout

func NewGetRuntimeReadinessParamsWithTimeout(timeout time.Duration) *GetRuntimeReadinessParams

NewGetRuntimeReadinessParamsWithTimeout creates a new GetRuntimeReadinessParams object with the ability to set a timeout on a request.

func (*GetRuntimeReadinessParams) SetContext

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

SetContext adds the context to the get runtime readiness params

func (*GetRuntimeReadinessParams) SetDefaults

func (o *GetRuntimeReadinessParams) SetDefaults()

SetDefaults hydrates default values in the get runtime readiness params (not the query body).

All values with no default are reset to their zero value.

func (*GetRuntimeReadinessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get runtime readiness params

func (*GetRuntimeReadinessParams) SetTimeout

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

SetTimeout adds the timeout to the get runtime readiness params

func (*GetRuntimeReadinessParams) WithContext

WithContext adds the context to the get runtime readiness params

func (*GetRuntimeReadinessParams) WithDefaults

WithDefaults hydrates default values in the get runtime readiness params (not the query body).

All values with no default are reset to their zero value.

func (*GetRuntimeReadinessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get runtime readiness params

func (*GetRuntimeReadinessParams) WithTimeout

WithTimeout adds the timeout to the get runtime readiness params

func (*GetRuntimeReadinessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRuntimeReadinessReader

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

GetRuntimeReadinessReader is a Reader for the GetRuntimeReadiness structure.

func (*GetRuntimeReadinessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRuntimeStartupInternalServerError

type GetRuntimeStartupInternalServerError struct {
}
GetRuntimeStartupInternalServerError describes a response with status code 500, with default header values.

Failed

func NewGetRuntimeStartupInternalServerError

func NewGetRuntimeStartupInternalServerError() *GetRuntimeStartupInternalServerError

NewGetRuntimeStartupInternalServerError creates a GetRuntimeStartupInternalServerError with default headers values

func (*GetRuntimeStartupInternalServerError) Error

type GetRuntimeStartupOK

type GetRuntimeStartupOK struct {
}
GetRuntimeStartupOK describes a response with status code 200, with default header values.

Success

func NewGetRuntimeStartupOK

func NewGetRuntimeStartupOK() *GetRuntimeStartupOK

NewGetRuntimeStartupOK creates a GetRuntimeStartupOK with default headers values

func (*GetRuntimeStartupOK) Error

func (o *GetRuntimeStartupOK) Error() string

type GetRuntimeStartupParams

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

GetRuntimeStartupParams contains all the parameters to send to the API endpoint

for the get runtime startup operation.

Typically these are written to a http.Request.

func NewGetRuntimeStartupParams

func NewGetRuntimeStartupParams() *GetRuntimeStartupParams

NewGetRuntimeStartupParams creates a new GetRuntimeStartupParams 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 NewGetRuntimeStartupParamsWithContext

func NewGetRuntimeStartupParamsWithContext(ctx context.Context) *GetRuntimeStartupParams

NewGetRuntimeStartupParamsWithContext creates a new GetRuntimeStartupParams object with the ability to set a context for a request.

func NewGetRuntimeStartupParamsWithHTTPClient

func NewGetRuntimeStartupParamsWithHTTPClient(client *http.Client) *GetRuntimeStartupParams

NewGetRuntimeStartupParamsWithHTTPClient creates a new GetRuntimeStartupParams object with the ability to set a custom HTTPClient for a request.

func NewGetRuntimeStartupParamsWithTimeout

func NewGetRuntimeStartupParamsWithTimeout(timeout time.Duration) *GetRuntimeStartupParams

NewGetRuntimeStartupParamsWithTimeout creates a new GetRuntimeStartupParams object with the ability to set a timeout on a request.

func (*GetRuntimeStartupParams) SetContext

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

SetContext adds the context to the get runtime startup params

func (*GetRuntimeStartupParams) SetDefaults

func (o *GetRuntimeStartupParams) SetDefaults()

SetDefaults hydrates default values in the get runtime startup params (not the query body).

All values with no default are reset to their zero value.

func (*GetRuntimeStartupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get runtime startup params

func (*GetRuntimeStartupParams) SetTimeout

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

SetTimeout adds the timeout to the get runtime startup params

func (*GetRuntimeStartupParams) WithContext

WithContext adds the context to the get runtime startup params

func (*GetRuntimeStartupParams) WithDefaults

WithDefaults hydrates default values in the get runtime startup params (not the query body).

All values with no default are reset to their zero value.

func (*GetRuntimeStartupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get runtime startup params

func (*GetRuntimeStartupParams) WithTimeout

WithTimeout adds the timeout to the get runtime startup params

func (*GetRuntimeStartupParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRuntimeStartupReader

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

GetRuntimeStartupReader is a Reader for the GetRuntimeStartup structure.

func (*GetRuntimeStartupReader) ReadResponse

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