Documentation ¶
Index ¶
- Constants
- type CiliumHealthAPI
- func (o *CiliumHealthAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *CiliumHealthAPI) Authorizer() runtime.Authorizer
- func (o *CiliumHealthAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *CiliumHealthAPI) Context() *middleware.Context
- func (o *CiliumHealthAPI) DefaultConsumes() string
- func (o *CiliumHealthAPI) DefaultProduces() string
- func (o *CiliumHealthAPI) Formats() strfmt.Registry
- func (o *CiliumHealthAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *CiliumHealthAPI) Init()
- func (o *CiliumHealthAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *CiliumHealthAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *CiliumHealthAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *CiliumHealthAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *CiliumHealthAPI) Serve(builder middleware.Builder) http.Handler
- func (o *CiliumHealthAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *CiliumHealthAPI) SetDefaultConsumes(mediaType string)
- func (o *CiliumHealthAPI) SetDefaultProduces(mediaType string)
- func (o *CiliumHealthAPI) SetSpec(spec *loads.Document)
- func (o *CiliumHealthAPI) Validate() error
- type GetHealthz
- type GetHealthzFailed
- type GetHealthzHandler
- type GetHealthzHandlerFunc
- type GetHealthzOK
- type GetHealthzParams
- type GetHealthzURL
- func (o *GetHealthzURL) Build() (*url.URL, error)
- func (o *GetHealthzURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHealthzURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHealthzURL) SetBasePath(bp string)
- func (o *GetHealthzURL) String() string
- func (o *GetHealthzURL) StringFull(scheme, host string) string
- func (o *GetHealthzURL) WithBasePath(bp string) *GetHealthzURL
- type GetHello
- type GetHelloHandler
- type GetHelloHandlerFunc
- type GetHelloOK
- type GetHelloParams
- type GetHelloURL
- func (o *GetHelloURL) Build() (*url.URL, error)
- func (o *GetHelloURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHelloURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHelloURL) SetBasePath(bp string)
- func (o *GetHelloURL) String() string
- func (o *GetHelloURL) StringFull(scheme, host string) string
- func (o *GetHelloURL) WithBasePath(bp string) *GetHelloURL
Constants ¶
const GetHealthzFailedCode int = 500
GetHealthzFailedCode is the HTTP code returned for type GetHealthzFailed
const GetHealthzOKCode int = 200
GetHealthzOKCode is the HTTP code returned for type GetHealthzOK
const GetHelloOKCode int = 200
GetHelloOKCode is the HTTP code returned for type GetHelloOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiliumHealthAPI ¶
type CiliumHealthAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implemention in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implemention in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implemention in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for a "application/json" mime type JSONConsumer runtime.Consumer // JSONProducer registers a producer for a "application/json" mime type JSONProducer runtime.Producer // GetHealthzHandler sets the operation handler for the get healthz operation GetHealthzHandler GetHealthzHandler // GetHelloHandler sets the operation handler for the get hello operation GetHelloHandler GetHelloHandler // ConnectivityGetStatusHandler sets the operation handler for the get status operation ConnectivityGetStatusHandler connectivity.GetStatusHandler // ConnectivityPutStatusProbeHandler sets the operation handler for the put status probe operation ConnectivityPutStatusProbeHandler connectivity.PutStatusProbeHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
CiliumHealthAPI Cilium Health Checker
func NewCiliumHealthAPI ¶
func NewCiliumHealthAPI(spec *loads.Document) *CiliumHealthAPI
NewCiliumHealthAPI creates a new CiliumHealth instance
func (*CiliumHealthAPI) AuthenticatorsFor ¶
func (o *CiliumHealthAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*CiliumHealthAPI) Authorizer ¶
func (o *CiliumHealthAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*CiliumHealthAPI) ConsumersFor ¶
func (o *CiliumHealthAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types
func (*CiliumHealthAPI) Context ¶
func (o *CiliumHealthAPI) Context() *middleware.Context
Context returns the middleware context for the cilium health API
func (*CiliumHealthAPI) DefaultConsumes ¶
func (o *CiliumHealthAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*CiliumHealthAPI) DefaultProduces ¶
func (o *CiliumHealthAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*CiliumHealthAPI) Formats ¶
func (o *CiliumHealthAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*CiliumHealthAPI) HandlerFor ¶
func (o *CiliumHealthAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*CiliumHealthAPI) Init ¶
func (o *CiliumHealthAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*CiliumHealthAPI) ProducersFor ¶
func (o *CiliumHealthAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types
func (*CiliumHealthAPI) RegisterConsumer ¶
func (o *CiliumHealthAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*CiliumHealthAPI) RegisterFormat ¶
func (o *CiliumHealthAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*CiliumHealthAPI) RegisterProducer ¶
func (o *CiliumHealthAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*CiliumHealthAPI) Serve ¶
func (o *CiliumHealthAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*CiliumHealthAPI) ServeErrorFor ¶
func (o *CiliumHealthAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*CiliumHealthAPI) SetDefaultConsumes ¶
func (o *CiliumHealthAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*CiliumHealthAPI) SetDefaultProduces ¶
func (o *CiliumHealthAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*CiliumHealthAPI) SetSpec ¶
func (o *CiliumHealthAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*CiliumHealthAPI) Validate ¶
func (o *CiliumHealthAPI) Validate() error
Validate validates the registrations in the CiliumHealthAPI
type GetHealthz ¶
type GetHealthz struct { Context *middleware.Context Handler GetHealthzHandler }
GetHealthz swagger:route GET /healthz getHealthz
Get health of Cilium node ¶
Returns health and status information of the local node including load and uptime, as well as the status of related components including the Cilium daemon.
func NewGetHealthz ¶
func NewGetHealthz(ctx *middleware.Context, handler GetHealthzHandler) *GetHealthz
NewGetHealthz creates a new http.Handler for the get healthz operation
func (*GetHealthz) ServeHTTP ¶
func (o *GetHealthz) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetHealthzFailed ¶
GetHealthzFailed Failed to contact local Cilium daemon
swagger:response getHealthzFailed
func NewGetHealthzFailed ¶
func NewGetHealthzFailed() *GetHealthzFailed
NewGetHealthzFailed creates GetHealthzFailed with default headers values
func (*GetHealthzFailed) SetPayload ¶
func (o *GetHealthzFailed) SetPayload(payload models.Error)
SetPayload sets the payload to the get healthz failed response
func (*GetHealthzFailed) WithPayload ¶
func (o *GetHealthzFailed) WithPayload(payload models.Error) *GetHealthzFailed
WithPayload adds the payload to the get healthz failed response
func (*GetHealthzFailed) WriteResponse ¶
func (o *GetHealthzFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHealthzHandler ¶
type GetHealthzHandler interface {
Handle(GetHealthzParams) middleware.Responder
}
GetHealthzHandler interface for that can handle valid get healthz params
type GetHealthzHandlerFunc ¶
type GetHealthzHandlerFunc func(GetHealthzParams) middleware.Responder
GetHealthzHandlerFunc turns a function with the right signature into a get healthz handler
func (GetHealthzHandlerFunc) Handle ¶
func (fn GetHealthzHandlerFunc) Handle(params GetHealthzParams) middleware.Responder
Handle executing the request and returning a response
type GetHealthzOK ¶
type GetHealthzOK struct { /* In: Body */ Payload *models.HealthResponse `json:"body,omitempty"` }
GetHealthzOK Success
swagger:response getHealthzOK
func NewGetHealthzOK ¶
func NewGetHealthzOK() *GetHealthzOK
NewGetHealthzOK creates GetHealthzOK with default headers values
func (*GetHealthzOK) SetPayload ¶
func (o *GetHealthzOK) SetPayload(payload *models.HealthResponse)
SetPayload sets the payload to the get healthz o k response
func (*GetHealthzOK) WithPayload ¶
func (o *GetHealthzOK) WithPayload(payload *models.HealthResponse) *GetHealthzOK
WithPayload adds the payload to the get healthz o k response
func (*GetHealthzOK) WriteResponse ¶
func (o *GetHealthzOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHealthzParams ¶
GetHealthzParams contains all the bound params for the get healthz operation typically these are obtained from a http.Request
swagger:parameters GetHealthz
func NewGetHealthzParams ¶
func NewGetHealthzParams() GetHealthzParams
NewGetHealthzParams creates a new GetHealthzParams object no default values defined in spec.
func (*GetHealthzParams) BindRequest ¶
func (o *GetHealthzParams) 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 NewGetHealthzParams() beforehand.
type GetHealthzURL ¶
type GetHealthzURL struct {
// contains filtered or unexported fields
}
GetHealthzURL generates an URL for the get healthz operation
func (*GetHealthzURL) Build ¶
func (o *GetHealthzURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHealthzURL) BuildFull ¶
func (o *GetHealthzURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHealthzURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetHealthzURL) SetBasePath ¶
func (o *GetHealthzURL) 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 (*GetHealthzURL) String ¶
func (o *GetHealthzURL) String() string
String returns the string representation of the path with query string
func (*GetHealthzURL) StringFull ¶
func (o *GetHealthzURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHealthzURL) WithBasePath ¶
func (o *GetHealthzURL) WithBasePath(bp string) *GetHealthzURL
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 GetHello ¶
type GetHello struct { Context *middleware.Context Handler GetHelloHandler }
GetHello swagger:route GET /hello getHello
Say hello to cilium-health ¶
Returns a successful status code if this cilium-health instance is reachable.
func NewGetHello ¶
func NewGetHello(ctx *middleware.Context, handler GetHelloHandler) *GetHello
NewGetHello creates a new http.Handler for the get hello operation
type GetHelloHandler ¶
type GetHelloHandler interface {
Handle(GetHelloParams) middleware.Responder
}
GetHelloHandler interface for that can handle valid get hello params
type GetHelloHandlerFunc ¶
type GetHelloHandlerFunc func(GetHelloParams) middleware.Responder
GetHelloHandlerFunc turns a function with the right signature into a get hello handler
func (GetHelloHandlerFunc) Handle ¶
func (fn GetHelloHandlerFunc) Handle(params GetHelloParams) middleware.Responder
Handle executing the request and returning a response
type GetHelloOK ¶
type GetHelloOK struct { }
GetHelloOK Success
swagger:response getHelloOK
func NewGetHelloOK ¶
func NewGetHelloOK() *GetHelloOK
NewGetHelloOK creates GetHelloOK with default headers values
func (*GetHelloOK) WriteResponse ¶
func (o *GetHelloOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHelloParams ¶
GetHelloParams contains all the bound params for the get hello operation typically these are obtained from a http.Request
swagger:parameters GetHello
func NewGetHelloParams ¶
func NewGetHelloParams() GetHelloParams
NewGetHelloParams creates a new GetHelloParams object no default values defined in spec.
func (*GetHelloParams) BindRequest ¶
func (o *GetHelloParams) 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 NewGetHelloParams() beforehand.
type GetHelloURL ¶
type GetHelloURL struct {
// contains filtered or unexported fields
}
GetHelloURL generates an URL for the get hello operation
func (*GetHelloURL) Build ¶
func (o *GetHelloURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHelloURL) BuildFull ¶
func (o *GetHelloURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHelloURL) SetBasePath ¶
func (o *GetHelloURL) 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 (*GetHelloURL) String ¶
func (o *GetHelloURL) String() string
String returns the string representation of the path with query string
func (*GetHelloURL) StringFull ¶
func (o *GetHelloURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHelloURL) WithBasePath ¶
func (o *GetHelloURL) WithBasePath(bp string) *GetHelloURL
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