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

package connectivity

import "github.com/cilium/cilium/api/v1/health/server/restapi/connectivity"

Index

Package Files

get_status.go get_status_parameters.go get_status_responses.go get_status_urlbuilder.go put_status_probe.go put_status_probe_parameters.go put_status_probe_responses.go put_status_probe_urlbuilder.go

Constants

const GetStatusOKCode int = 200

GetStatusOKCode is the HTTP code returned for type GetStatusOK

const PutStatusProbeFailedCode int = 500

PutStatusProbeFailedCode is the HTTP code returned for type PutStatusProbeFailed

const PutStatusProbeOKCode int = 200

PutStatusProbeOKCode is the HTTP code returned for type PutStatusProbeOK

type GetStatus Uses

type GetStatus struct {
    Context *middleware.Context
    Handler GetStatusHandler
}

GetStatus swagger:route GET /status connectivity getStatus

Get connectivity status of the Cilium cluster

Returns the connectivity status to all other cilium-health instances using interval-based probing.

func NewGetStatus Uses

func NewGetStatus(ctx *middleware.Context, handler GetStatusHandler) *GetStatus

NewGetStatus creates a new http.Handler for the get status operation

func (*GetStatus) ServeHTTP Uses

func (o *GetStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetStatusHandler Uses

type GetStatusHandler interface {
    Handle(GetStatusParams) middleware.Responder
}

GetStatusHandler interface for that can handle valid get status params

type GetStatusHandlerFunc Uses

type GetStatusHandlerFunc func(GetStatusParams) middleware.Responder

GetStatusHandlerFunc turns a function with the right signature into a get status handler

func (GetStatusHandlerFunc) Handle Uses

func (fn GetStatusHandlerFunc) Handle(params GetStatusParams) middleware.Responder

Handle executing the request and returning a response

type GetStatusOK Uses

type GetStatusOK struct {

    /*
      In: Body
    */
    Payload *models.HealthStatusResponse `json:"body,omitempty"`
}

GetStatusOK Success

swagger:response getStatusOK

func NewGetStatusOK Uses

func NewGetStatusOK() *GetStatusOK

NewGetStatusOK creates GetStatusOK with default headers values

func (*GetStatusOK) SetPayload Uses

func (o *GetStatusOK) SetPayload(payload *models.HealthStatusResponse)

SetPayload sets the payload to the get status o k response

func (*GetStatusOK) WithPayload Uses

func (o *GetStatusOK) WithPayload(payload *models.HealthStatusResponse) *GetStatusOK

WithPayload adds the payload to the get status o k response

func (*GetStatusOK) WriteResponse Uses

func (o *GetStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetStatusParams Uses

type GetStatusParams struct {

    // HTTP Request Object
    HTTPRequest *http.Request `json:"-"`
}

GetStatusParams contains all the bound params for the get status operation typically these are obtained from a http.Request

swagger:parameters GetStatus

func NewGetStatusParams Uses

func NewGetStatusParams() GetStatusParams

NewGetStatusParams creates a new GetStatusParams object no default values defined in spec.

func (*GetStatusParams) BindRequest Uses

func (o *GetStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetStatusParams() beforehand.

type GetStatusURL Uses

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

GetStatusURL generates an URL for the get status operation

func (*GetStatusURL) Build Uses

func (o *GetStatusURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetStatusURL) BuildFull Uses

func (o *GetStatusURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetStatusURL) Must Uses

func (o *GetStatusURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetStatusURL) SetBasePath Uses

func (o *GetStatusURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetStatusURL) String Uses

func (o *GetStatusURL) String() string

String returns the string representation of the path with query string

func (*GetStatusURL) StringFull Uses

func (o *GetStatusURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetStatusURL) WithBasePath Uses

func (o *GetStatusURL) WithBasePath(bp string) *GetStatusURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PutStatusProbe Uses

type PutStatusProbe struct {
    Context *middleware.Context
    Handler PutStatusProbeHandler
}

PutStatusProbe swagger:route PUT /status/probe connectivity putStatusProbe

Run 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 NewPutStatusProbe Uses

func NewPutStatusProbe(ctx *middleware.Context, handler PutStatusProbeHandler) *PutStatusProbe

NewPutStatusProbe creates a new http.Handler for the put status probe operation

func (*PutStatusProbe) ServeHTTP Uses

func (o *PutStatusProbe) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PutStatusProbeFailed Uses

type PutStatusProbeFailed struct {

    /*
      In: Body
    */
    Payload models.Error `json:"body,omitempty"`
}

PutStatusProbeFailed Internal error occurred while conducting connectivity probe

swagger:response putStatusProbeFailed

func NewPutStatusProbeFailed Uses

func NewPutStatusProbeFailed() *PutStatusProbeFailed

NewPutStatusProbeFailed creates PutStatusProbeFailed with default headers values

func (*PutStatusProbeFailed) SetPayload Uses

func (o *PutStatusProbeFailed) SetPayload(payload models.Error)

SetPayload sets the payload to the put status probe failed response

func (*PutStatusProbeFailed) WithPayload Uses

func (o *PutStatusProbeFailed) WithPayload(payload models.Error) *PutStatusProbeFailed

WithPayload adds the payload to the put status probe failed response

func (*PutStatusProbeFailed) WriteResponse Uses

func (o *PutStatusProbeFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutStatusProbeHandler Uses

type PutStatusProbeHandler interface {
    Handle(PutStatusProbeParams) middleware.Responder
}

PutStatusProbeHandler interface for that can handle valid put status probe params

type PutStatusProbeHandlerFunc Uses

type PutStatusProbeHandlerFunc func(PutStatusProbeParams) middleware.Responder

PutStatusProbeHandlerFunc turns a function with the right signature into a put status probe handler

func (PutStatusProbeHandlerFunc) Handle Uses

func (fn PutStatusProbeHandlerFunc) Handle(params PutStatusProbeParams) middleware.Responder

Handle executing the request and returning a response

type PutStatusProbeOK Uses

type PutStatusProbeOK struct {

    /*
      In: Body
    */
    Payload *models.HealthStatusResponse `json:"body,omitempty"`
}

PutStatusProbeOK Success

swagger:response putStatusProbeOK

func NewPutStatusProbeOK Uses

func NewPutStatusProbeOK() *PutStatusProbeOK

NewPutStatusProbeOK creates PutStatusProbeOK with default headers values

func (*PutStatusProbeOK) SetPayload Uses

func (o *PutStatusProbeOK) SetPayload(payload *models.HealthStatusResponse)

SetPayload sets the payload to the put status probe o k response

func (*PutStatusProbeOK) WithPayload Uses

func (o *PutStatusProbeOK) WithPayload(payload *models.HealthStatusResponse) *PutStatusProbeOK

WithPayload adds the payload to the put status probe o k response

func (*PutStatusProbeOK) WriteResponse Uses

func (o *PutStatusProbeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutStatusProbeParams Uses

type PutStatusProbeParams struct {

    // HTTP Request Object
    HTTPRequest *http.Request `json:"-"`
}

PutStatusProbeParams contains all the bound params for the put status probe operation typically these are obtained from a http.Request

swagger:parameters PutStatusProbe

func NewPutStatusProbeParams Uses

func NewPutStatusProbeParams() PutStatusProbeParams

NewPutStatusProbeParams creates a new PutStatusProbeParams object no default values defined in spec.

func (*PutStatusProbeParams) BindRequest Uses

func (o *PutStatusProbeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPutStatusProbeParams() beforehand.

type PutStatusProbeURL Uses

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

PutStatusProbeURL generates an URL for the put status probe operation

func (*PutStatusProbeURL) Build Uses

func (o *PutStatusProbeURL) Build() (*url.URL, error)

Build a url path and query string

func (*PutStatusProbeURL) BuildFull Uses

func (o *PutStatusProbeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PutStatusProbeURL) Must Uses

func (o *PutStatusProbeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PutStatusProbeURL) SetBasePath Uses

func (o *PutStatusProbeURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PutStatusProbeURL) String Uses

func (o *PutStatusProbeURL) String() string

String returns the string representation of the path with query string

func (*PutStatusProbeURL) StringFull Uses

func (o *PutStatusProbeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PutStatusProbeURL) WithBasePath Uses

func (o *PutStatusProbeURL) WithBasePath(bp string) *PutStatusProbeURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Package connectivity imports 8 packages (graph) and is imported by 3 packages. Updated 2019-06-05. Refresh now. Tools for package owners.