Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetStatusOK
- func (o *GetStatusOK) Error() string
- func (o *GetStatusOK) GetPayload() *models.HealthStatusResponse
- func (o *GetStatusOK) IsClientError() bool
- func (o *GetStatusOK) IsCode(code int) bool
- func (o *GetStatusOK) IsRedirect() bool
- func (o *GetStatusOK) IsServerError() bool
- func (o *GetStatusOK) IsSuccess() bool
- func (o *GetStatusOK) String() string
- type GetStatusParams
- func (o *GetStatusParams) SetContext(ctx context.Context)
- func (o *GetStatusParams) SetDefaults()
- func (o *GetStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetStatusParams) WithContext(ctx context.Context) *GetStatusParams
- func (o *GetStatusParams) WithDefaults() *GetStatusParams
- func (o *GetStatusParams) WithHTTPClient(client *http.Client) *GetStatusParams
- func (o *GetStatusParams) WithTimeout(timeout time.Duration) *GetStatusParams
- func (o *GetStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStatusReader
- type PutStatusProbeFailed
- func (o *PutStatusProbeFailed) Error() string
- func (o *PutStatusProbeFailed) GetPayload() models.Error
- func (o *PutStatusProbeFailed) IsClientError() bool
- func (o *PutStatusProbeFailed) IsCode(code int) bool
- func (o *PutStatusProbeFailed) IsRedirect() bool
- func (o *PutStatusProbeFailed) IsServerError() bool
- func (o *PutStatusProbeFailed) IsSuccess() bool
- func (o *PutStatusProbeFailed) String() string
- type PutStatusProbeOK
- func (o *PutStatusProbeOK) Error() string
- func (o *PutStatusProbeOK) GetPayload() *models.HealthStatusResponse
- func (o *PutStatusProbeOK) IsClientError() bool
- func (o *PutStatusProbeOK) IsCode(code int) bool
- func (o *PutStatusProbeOK) IsRedirect() bool
- func (o *PutStatusProbeOK) IsServerError() bool
- func (o *PutStatusProbeOK) IsSuccess() bool
- func (o *PutStatusProbeOK) String() string
- type PutStatusProbeParams
- func NewPutStatusProbeParams() *PutStatusProbeParams
- func NewPutStatusProbeParamsWithContext(ctx context.Context) *PutStatusProbeParams
- func NewPutStatusProbeParamsWithHTTPClient(client *http.Client) *PutStatusProbeParams
- func NewPutStatusProbeParamsWithTimeout(timeout time.Duration) *PutStatusProbeParams
- func (o *PutStatusProbeParams) SetContext(ctx context.Context)
- func (o *PutStatusProbeParams) SetDefaults()
- func (o *PutStatusProbeParams) SetHTTPClient(client *http.Client)
- func (o *PutStatusProbeParams) SetTimeout(timeout time.Duration)
- func (o *PutStatusProbeParams) WithContext(ctx context.Context) *PutStatusProbeParams
- func (o *PutStatusProbeParams) WithDefaults() *PutStatusProbeParams
- func (o *PutStatusProbeParams) WithHTTPClient(client *http.Client) *PutStatusProbeParams
- func (o *PutStatusProbeParams) WithTimeout(timeout time.Duration) *PutStatusProbeParams
- func (o *PutStatusProbeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutStatusProbeReader
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) GetStatus ¶
func (a *Client) GetStatus(params *GetStatusParams, opts ...ClientOption) (*GetStatusOK, error)
GetStatus gets connectivity status of the cilium cluster Returns the connectivity status to all other cilium-health instances
using interval-based probing.
func (*Client) PutStatusProbe ¶
func (a *Client) PutStatusProbe(params *PutStatusProbeParams, opts ...ClientOption) (*PutStatusProbeOK, error)
PutStatusProbe runs synchronous connectivity probe to determine status of the cilium cluster Runs a synchronous probe to all other cilium-health instances and
returns the connectivity status.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v1.14.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v1.14.0
type ClientService interface { GetStatus(params *GetStatusParams, opts ...ClientOption) (*GetStatusOK, error) PutStatusProbe(params *PutStatusProbeParams, opts ...ClientOption) (*PutStatusProbeOK, 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 GetStatusOK ¶
type GetStatusOK struct {
Payload *models.HealthStatusResponse
}
GetStatusOK describes a response with status code 200, with default header values.
Success
func NewGetStatusOK ¶
func NewGetStatusOK() *GetStatusOK
NewGetStatusOK creates a GetStatusOK with default headers values
func (*GetStatusOK) Error ¶
func (o *GetStatusOK) Error() string
func (*GetStatusOK) GetPayload ¶ added in v1.14.0
func (o *GetStatusOK) GetPayload() *models.HealthStatusResponse
func (*GetStatusOK) IsClientError ¶ added in v1.14.0
func (o *GetStatusOK) IsClientError() bool
IsClientError returns true when this get status o k response has a 4xx status code
func (*GetStatusOK) IsCode ¶ added in v1.14.0
func (o *GetStatusOK) IsCode(code int) bool
IsCode returns true when this get status o k response a status code equal to that given
func (*GetStatusOK) IsRedirect ¶ added in v1.14.0
func (o *GetStatusOK) IsRedirect() bool
IsRedirect returns true when this get status o k response has a 3xx status code
func (*GetStatusOK) IsServerError ¶ added in v1.14.0
func (o *GetStatusOK) IsServerError() bool
IsServerError returns true when this get status o k response has a 5xx status code
func (*GetStatusOK) IsSuccess ¶ added in v1.14.0
func (o *GetStatusOK) IsSuccess() bool
IsSuccess returns true when this get status o k response has a 2xx status code
func (*GetStatusOK) String ¶ added in v1.14.0
func (o *GetStatusOK) String() string
type GetStatusParams ¶
type GetStatusParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetStatusParams contains all the parameters to send to the API endpoint
for the get status operation. Typically these are written to a http.Request.
func NewGetStatusParams ¶
func NewGetStatusParams() *GetStatusParams
NewGetStatusParams creates a new GetStatusParams 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 NewGetStatusParamsWithContext ¶
func NewGetStatusParamsWithContext(ctx context.Context) *GetStatusParams
NewGetStatusParamsWithContext creates a new GetStatusParams object with the ability to set a context for a request.
func NewGetStatusParamsWithHTTPClient ¶
func NewGetStatusParamsWithHTTPClient(client *http.Client) *GetStatusParams
NewGetStatusParamsWithHTTPClient creates a new GetStatusParams object with the ability to set a custom HTTPClient for a request.
func NewGetStatusParamsWithTimeout ¶
func NewGetStatusParamsWithTimeout(timeout time.Duration) *GetStatusParams
NewGetStatusParamsWithTimeout creates a new GetStatusParams object with the ability to set a timeout on a request.
func (*GetStatusParams) SetContext ¶
func (o *GetStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get status params
func (*GetStatusParams) SetDefaults ¶ added in v1.14.0
func (o *GetStatusParams) SetDefaults()
SetDefaults hydrates default values in the get status params (not the query body).
All values with no default are reset to their zero value.
func (*GetStatusParams) SetHTTPClient ¶
func (o *GetStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get status params
func (*GetStatusParams) SetTimeout ¶
func (o *GetStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get status params
func (*GetStatusParams) WithContext ¶
func (o *GetStatusParams) WithContext(ctx context.Context) *GetStatusParams
WithContext adds the context to the get status params
func (*GetStatusParams) WithDefaults ¶ added in v1.14.0
func (o *GetStatusParams) WithDefaults() *GetStatusParams
WithDefaults hydrates default values in the get status params (not the query body).
All values with no default are reset to their zero value.
func (*GetStatusParams) WithHTTPClient ¶
func (o *GetStatusParams) WithHTTPClient(client *http.Client) *GetStatusParams
WithHTTPClient adds the HTTPClient to the get status params
func (*GetStatusParams) WithTimeout ¶
func (o *GetStatusParams) WithTimeout(timeout time.Duration) *GetStatusParams
WithTimeout adds the timeout to the get status params
func (*GetStatusParams) WriteToRequest ¶
func (o *GetStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStatusReader ¶
type GetStatusReader struct {
// contains filtered or unexported fields
}
GetStatusReader is a Reader for the GetStatus structure.
func (*GetStatusReader) ReadResponse ¶
func (o *GetStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutStatusProbeFailed ¶
PutStatusProbeFailed describes a response with status code 500, with default header values.
Internal error occurred while conducting connectivity probe
func NewPutStatusProbeFailed ¶
func NewPutStatusProbeFailed() *PutStatusProbeFailed
NewPutStatusProbeFailed creates a PutStatusProbeFailed with default headers values
func (*PutStatusProbeFailed) Error ¶
func (o *PutStatusProbeFailed) Error() string
func (*PutStatusProbeFailed) GetPayload ¶ added in v1.14.0
func (o *PutStatusProbeFailed) GetPayload() models.Error
func (*PutStatusProbeFailed) IsClientError ¶ added in v1.14.0
func (o *PutStatusProbeFailed) IsClientError() bool
IsClientError returns true when this put status probe failed response has a 4xx status code
func (*PutStatusProbeFailed) IsCode ¶ added in v1.14.0
func (o *PutStatusProbeFailed) IsCode(code int) bool
IsCode returns true when this put status probe failed response a status code equal to that given
func (*PutStatusProbeFailed) IsRedirect ¶ added in v1.14.0
func (o *PutStatusProbeFailed) IsRedirect() bool
IsRedirect returns true when this put status probe failed response has a 3xx status code
func (*PutStatusProbeFailed) IsServerError ¶ added in v1.14.0
func (o *PutStatusProbeFailed) IsServerError() bool
IsServerError returns true when this put status probe failed response has a 5xx status code
func (*PutStatusProbeFailed) IsSuccess ¶ added in v1.14.0
func (o *PutStatusProbeFailed) IsSuccess() bool
IsSuccess returns true when this put status probe failed response has a 2xx status code
func (*PutStatusProbeFailed) String ¶ added in v1.14.0
func (o *PutStatusProbeFailed) String() string
type PutStatusProbeOK ¶
type PutStatusProbeOK struct {
Payload *models.HealthStatusResponse
}
PutStatusProbeOK describes a response with status code 200, with default header values.
Success
func NewPutStatusProbeOK ¶
func NewPutStatusProbeOK() *PutStatusProbeOK
NewPutStatusProbeOK creates a PutStatusProbeOK with default headers values
func (*PutStatusProbeOK) Error ¶
func (o *PutStatusProbeOK) Error() string
func (*PutStatusProbeOK) GetPayload ¶ added in v1.14.0
func (o *PutStatusProbeOK) GetPayload() *models.HealthStatusResponse
func (*PutStatusProbeOK) IsClientError ¶ added in v1.14.0
func (o *PutStatusProbeOK) IsClientError() bool
IsClientError returns true when this put status probe o k response has a 4xx status code
func (*PutStatusProbeOK) IsCode ¶ added in v1.14.0
func (o *PutStatusProbeOK) IsCode(code int) bool
IsCode returns true when this put status probe o k response a status code equal to that given
func (*PutStatusProbeOK) IsRedirect ¶ added in v1.14.0
func (o *PutStatusProbeOK) IsRedirect() bool
IsRedirect returns true when this put status probe o k response has a 3xx status code
func (*PutStatusProbeOK) IsServerError ¶ added in v1.14.0
func (o *PutStatusProbeOK) IsServerError() bool
IsServerError returns true when this put status probe o k response has a 5xx status code
func (*PutStatusProbeOK) IsSuccess ¶ added in v1.14.0
func (o *PutStatusProbeOK) IsSuccess() bool
IsSuccess returns true when this put status probe o k response has a 2xx status code
func (*PutStatusProbeOK) String ¶ added in v1.14.0
func (o *PutStatusProbeOK) String() string
type PutStatusProbeParams ¶
type PutStatusProbeParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutStatusProbeParams contains all the parameters to send to the API endpoint
for the put status probe operation. Typically these are written to a http.Request.
func NewPutStatusProbeParams ¶
func NewPutStatusProbeParams() *PutStatusProbeParams
NewPutStatusProbeParams creates a new PutStatusProbeParams 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 NewPutStatusProbeParamsWithContext ¶
func NewPutStatusProbeParamsWithContext(ctx context.Context) *PutStatusProbeParams
NewPutStatusProbeParamsWithContext creates a new PutStatusProbeParams object with the ability to set a context for a request.
func NewPutStatusProbeParamsWithHTTPClient ¶
func NewPutStatusProbeParamsWithHTTPClient(client *http.Client) *PutStatusProbeParams
NewPutStatusProbeParamsWithHTTPClient creates a new PutStatusProbeParams object with the ability to set a custom HTTPClient for a request.
func NewPutStatusProbeParamsWithTimeout ¶
func NewPutStatusProbeParamsWithTimeout(timeout time.Duration) *PutStatusProbeParams
NewPutStatusProbeParamsWithTimeout creates a new PutStatusProbeParams object with the ability to set a timeout on a request.
func (*PutStatusProbeParams) SetContext ¶
func (o *PutStatusProbeParams) SetContext(ctx context.Context)
SetContext adds the context to the put status probe params
func (*PutStatusProbeParams) SetDefaults ¶ added in v1.14.0
func (o *PutStatusProbeParams) SetDefaults()
SetDefaults hydrates default values in the put status probe params (not the query body).
All values with no default are reset to their zero value.
func (*PutStatusProbeParams) SetHTTPClient ¶
func (o *PutStatusProbeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put status probe params
func (*PutStatusProbeParams) SetTimeout ¶
func (o *PutStatusProbeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put status probe params
func (*PutStatusProbeParams) WithContext ¶
func (o *PutStatusProbeParams) WithContext(ctx context.Context) *PutStatusProbeParams
WithContext adds the context to the put status probe params
func (*PutStatusProbeParams) WithDefaults ¶ added in v1.14.0
func (o *PutStatusProbeParams) WithDefaults() *PutStatusProbeParams
WithDefaults hydrates default values in the put status probe params (not the query body).
All values with no default are reset to their zero value.
func (*PutStatusProbeParams) WithHTTPClient ¶
func (o *PutStatusProbeParams) WithHTTPClient(client *http.Client) *PutStatusProbeParams
WithHTTPClient adds the HTTPClient to the put status probe params
func (*PutStatusProbeParams) WithTimeout ¶
func (o *PutStatusProbeParams) WithTimeout(timeout time.Duration) *PutStatusProbeParams
WithTimeout adds the timeout to the put status probe params
func (*PutStatusProbeParams) WriteToRequest ¶
func (o *PutStatusProbeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutStatusProbeReader ¶
type PutStatusProbeReader struct {
// contains filtered or unexported fields
}
PutStatusProbeReader is a Reader for the PutStatusProbe structure.
func (*PutStatusProbeReader) ReadResponse ¶
func (o *PutStatusProbeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.