cilium: github.com/cilium/cilium/api/v1/health/client/connectivity Index | Files

package connectivity

import "github.com/cilium/cilium/api/v1/health/client/connectivity"

Index

Package Files

connectivity_client.go get_status_parameters.go get_status_responses.go put_status_probe_parameters.go put_status_probe_responses.go

type Client Uses

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

Client for connectivity API

func New Uses

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

New creates a new connectivity API client.

func (*Client) GetStatus Uses

func (a *Client) GetStatus(params *GetStatusParams) (*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 Uses

func (a *Client) PutStatusProbe(params *PutStatusProbeParams) (*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 Uses

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

SetTransport changes the transport on the client

type GetStatusOK Uses

type GetStatusOK struct {
    Payload *models.HealthStatusResponse
}

GetStatusOK handles this case with default header values.

Success

func NewGetStatusOK Uses

func NewGetStatusOK() *GetStatusOK

NewGetStatusOK creates a GetStatusOK with default headers values

func (*GetStatusOK) Error Uses

func (o *GetStatusOK) Error() string

func (*GetStatusOK) GetPayload Uses

func (o *GetStatusOK) GetPayload() *models.HealthStatusResponse

type GetStatusParams Uses

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 Uses

func NewGetStatusParams() *GetStatusParams

NewGetStatusParams creates a new GetStatusParams object with the default values initialized.

func NewGetStatusParamsWithContext Uses

func NewGetStatusParamsWithContext(ctx context.Context) *GetStatusParams

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

func NewGetStatusParamsWithHTTPClient Uses

func NewGetStatusParamsWithHTTPClient(client *http.Client) *GetStatusParams

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

func NewGetStatusParamsWithTimeout Uses

func NewGetStatusParamsWithTimeout(timeout time.Duration) *GetStatusParams

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

func (*GetStatusParams) SetContext Uses

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

SetContext adds the context to the get status params

func (*GetStatusParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the get status params

func (*GetStatusParams) SetTimeout Uses

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

SetTimeout adds the timeout to the get status params

func (*GetStatusParams) WithContext Uses

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

WithContext adds the context to the get status params

func (*GetStatusParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the get status params

func (*GetStatusParams) WithTimeout Uses

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

WithTimeout adds the timeout to the get status params

func (*GetStatusParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type GetStatusReader Uses

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

GetStatusReader is a Reader for the GetStatus structure.

func (*GetStatusReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type PutStatusProbeFailed Uses

type PutStatusProbeFailed struct {
    Payload models.Error
}

PutStatusProbeFailed handles this case with default header values.

Internal error occurred while conducting connectivity probe

func NewPutStatusProbeFailed Uses

func NewPutStatusProbeFailed() *PutStatusProbeFailed

NewPutStatusProbeFailed creates a PutStatusProbeFailed with default headers values

func (*PutStatusProbeFailed) Error Uses

func (o *PutStatusProbeFailed) Error() string

func (*PutStatusProbeFailed) GetPayload Uses

func (o *PutStatusProbeFailed) GetPayload() models.Error

type PutStatusProbeOK Uses

type PutStatusProbeOK struct {
    Payload *models.HealthStatusResponse
}

PutStatusProbeOK handles this case with default header values.

Success

func NewPutStatusProbeOK Uses

func NewPutStatusProbeOK() *PutStatusProbeOK

NewPutStatusProbeOK creates a PutStatusProbeOK with default headers values

func (*PutStatusProbeOK) Error Uses

func (o *PutStatusProbeOK) Error() string

func (*PutStatusProbeOK) GetPayload Uses

func (o *PutStatusProbeOK) GetPayload() *models.HealthStatusResponse

type PutStatusProbeParams Uses

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 Uses

func NewPutStatusProbeParams() *PutStatusProbeParams

NewPutStatusProbeParams creates a new PutStatusProbeParams object with the default values initialized.

func NewPutStatusProbeParamsWithContext Uses

func NewPutStatusProbeParamsWithContext(ctx context.Context) *PutStatusProbeParams

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

func NewPutStatusProbeParamsWithHTTPClient Uses

func NewPutStatusProbeParamsWithHTTPClient(client *http.Client) *PutStatusProbeParams

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

func NewPutStatusProbeParamsWithTimeout Uses

func NewPutStatusProbeParamsWithTimeout(timeout time.Duration) *PutStatusProbeParams

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

func (*PutStatusProbeParams) SetContext Uses

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

SetContext adds the context to the put status probe params

func (*PutStatusProbeParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the put status probe params

func (*PutStatusProbeParams) SetTimeout Uses

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

SetTimeout adds the timeout to the put status probe params

func (*PutStatusProbeParams) WithContext Uses

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

WithContext adds the context to the put status probe params

func (*PutStatusProbeParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the put status probe params

func (*PutStatusProbeParams) WithTimeout Uses

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

WithTimeout adds the timeout to the put status probe params

func (*PutStatusProbeParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type PutStatusProbeReader Uses

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

PutStatusProbeReader is a Reader for the PutStatusProbe structure.

func (*PutStatusProbeReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

Package connectivity imports 10 packages (graph) and is imported by 1 packages. Updated 2019-11-14. Refresh now. Tools for package owners.