connectivity

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

func (*Client) GetIpamHealthy

func (a *Client) GetIpamHealthy(params *GetIpamHealthyParams, opts ...ClientOption) (*GetIpamHealthyOK, error)
GetIpamHealthy gets health of spiderpool daemon

Check spiderpool daemonset health to make sure whether it's ready

for CNI plugin usage

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 {
	GetIpamHealthy(params *GetIpamHealthyParams, opts ...ClientOption) (*GetIpamHealthyOK, 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 connectivity API client.

type GetIpamHealthyInternalServerError

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

Failed

func NewGetIpamHealthyInternalServerError

func NewGetIpamHealthyInternalServerError() *GetIpamHealthyInternalServerError

NewGetIpamHealthyInternalServerError creates a GetIpamHealthyInternalServerError with default headers values

func (*GetIpamHealthyInternalServerError) Error

type GetIpamHealthyOK

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

Success

func NewGetIpamHealthyOK

func NewGetIpamHealthyOK() *GetIpamHealthyOK

NewGetIpamHealthyOK creates a GetIpamHealthyOK with default headers values

func (*GetIpamHealthyOK) Error

func (o *GetIpamHealthyOK) Error() string

type GetIpamHealthyParams

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

GetIpamHealthyParams contains all the parameters to send to the API endpoint

for the get ipam healthy operation.

Typically these are written to a http.Request.

func NewGetIpamHealthyParams

func NewGetIpamHealthyParams() *GetIpamHealthyParams

NewGetIpamHealthyParams creates a new GetIpamHealthyParams 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 NewGetIpamHealthyParamsWithContext

func NewGetIpamHealthyParamsWithContext(ctx context.Context) *GetIpamHealthyParams

NewGetIpamHealthyParamsWithContext creates a new GetIpamHealthyParams object with the ability to set a context for a request.

func NewGetIpamHealthyParamsWithHTTPClient

func NewGetIpamHealthyParamsWithHTTPClient(client *http.Client) *GetIpamHealthyParams

NewGetIpamHealthyParamsWithHTTPClient creates a new GetIpamHealthyParams object with the ability to set a custom HTTPClient for a request.

func NewGetIpamHealthyParamsWithTimeout

func NewGetIpamHealthyParamsWithTimeout(timeout time.Duration) *GetIpamHealthyParams

NewGetIpamHealthyParamsWithTimeout creates a new GetIpamHealthyParams object with the ability to set a timeout on a request.

func (*GetIpamHealthyParams) SetContext

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

SetContext adds the context to the get ipam healthy params

func (*GetIpamHealthyParams) SetDefaults

func (o *GetIpamHealthyParams) SetDefaults()

SetDefaults hydrates default values in the get ipam healthy params (not the query body).

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

func (*GetIpamHealthyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get ipam healthy params

func (*GetIpamHealthyParams) SetTimeout

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

SetTimeout adds the timeout to the get ipam healthy params

func (*GetIpamHealthyParams) WithContext

WithContext adds the context to the get ipam healthy params

func (*GetIpamHealthyParams) WithDefaults

func (o *GetIpamHealthyParams) WithDefaults() *GetIpamHealthyParams

WithDefaults hydrates default values in the get ipam healthy params (not the query body).

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

func (*GetIpamHealthyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get ipam healthy params

func (*GetIpamHealthyParams) WithTimeout

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

WithTimeout adds the timeout to the get ipam healthy params

func (*GetIpamHealthyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetIpamHealthyReader

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

GetIpamHealthyReader is a Reader for the GetIpamHealthy structure.

func (*GetIpamHealthyReader) ReadResponse

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