Documentation
¶
Index ¶
- Constants
- type GetConfig
- type GetConfigHandler
- type GetConfigHandlerFunc
- type GetConfigOK
- type GetConfigParams
- type GetConfigURL
- func (o *GetConfigURL) Build() (*url.URL, error)
- func (o *GetConfigURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetConfigURL) Must(u *url.URL, err error) *url.URL
- func (o *GetConfigURL) SetBasePath(bp string)
- func (o *GetConfigURL) String() string
- func (o *GetConfigURL) StringFull(scheme, host string) string
- func (o *GetConfigURL) WithBasePath(bp string) *GetConfigURL
- type GetHealthz
- 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
Constants ¶
const GetConfigOKCode int = 200
GetConfigOKCode is the HTTP code returned for type GetConfigOK
const GetHealthzOKCode int = 200
GetHealthzOKCode is the HTTP code returned for type GetHealthzOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetConfig ¶
type GetConfig struct { Context *middleware.Context Handler GetConfigHandler }
GetConfig swagger:route GET /config daemon getConfig
Get configuration of bpflock daemon ¶
Returns the configuration of the bpflock daemon.
func NewGetConfig ¶
func NewGetConfig(ctx *middleware.Context, handler GetConfigHandler) *GetConfig
NewGetConfig creates a new http.Handler for the get config operation
type GetConfigHandler ¶
type GetConfigHandler interface {
Handle(GetConfigParams) middleware.Responder
}
GetConfigHandler interface for that can handle valid get config params
type GetConfigHandlerFunc ¶
type GetConfigHandlerFunc func(GetConfigParams) middleware.Responder
GetConfigHandlerFunc turns a function with the right signature into a get config handler
func (GetConfigHandlerFunc) Handle ¶
func (fn GetConfigHandlerFunc) Handle(params GetConfigParams) middleware.Responder
Handle executing the request and returning a response
type GetConfigOK ¶
type GetConfigOK struct { /* In: Body */ Payload *models.DaemonConfiguration `json:"body,omitempty"` }
GetConfigOK Success
swagger:response getConfigOK
func NewGetConfigOK ¶
func NewGetConfigOK() *GetConfigOK
NewGetConfigOK creates GetConfigOK with default headers values
func (*GetConfigOK) SetPayload ¶
func (o *GetConfigOK) SetPayload(payload *models.DaemonConfiguration)
SetPayload sets the payload to the get config o k response
func (*GetConfigOK) WithPayload ¶
func (o *GetConfigOK) WithPayload(payload *models.DaemonConfiguration) *GetConfigOK
WithPayload adds the payload to the get config o k response
func (*GetConfigOK) WriteResponse ¶
func (o *GetConfigOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetConfigParams ¶
GetConfigParams contains all the bound params for the get config operation typically these are obtained from a http.Request
swagger:parameters GetConfig
func NewGetConfigParams ¶
func NewGetConfigParams() GetConfigParams
NewGetConfigParams creates a new GetConfigParams object
There are no default values defined in the spec.
func (*GetConfigParams) BindRequest ¶
func (o *GetConfigParams) 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 NewGetConfigParams() beforehand.
type GetConfigURL ¶
type GetConfigURL struct {
// contains filtered or unexported fields
}
GetConfigURL generates an URL for the get config operation
func (*GetConfigURL) Build ¶
func (o *GetConfigURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetConfigURL) BuildFull ¶
func (o *GetConfigURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetConfigURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetConfigURL) SetBasePath ¶
func (o *GetConfigURL) 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 (*GetConfigURL) String ¶
func (o *GetConfigURL) String() string
String returns the string representation of the path with query string
func (*GetConfigURL) StringFull ¶
func (o *GetConfigURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetConfigURL) WithBasePath ¶
func (o *GetConfigURL) WithBasePath(bp string) *GetConfigURL
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 GetHealthz ¶
type GetHealthz struct { Context *middleware.Context Handler GetHealthzHandler }
GetHealthz swagger:route GET /healthz daemon getHealthz
Get health of bpflock daemon ¶
Returns health and status information of the bpflock 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 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.StatusResponse `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.StatusResponse)
SetPayload sets the payload to the get healthz o k response
func (*GetHealthzOK) WithPayload ¶
func (o *GetHealthzOK) WithPayload(payload *models.StatusResponse) *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 ¶
type GetHealthzParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Brief will return a brief representation of the bpflock status. In: header */ Brief *bool }
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
There are no default values defined in the 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