Documentation
¶
Index ¶
- Constants
- type DeleteFail2banIP
- type DeleteFail2banIPHandler
- type DeleteFail2banIPHandlerFunc
- type DeleteFail2banIPInternalServerError
- type DeleteFail2banIPMethodNotAllowed
- type DeleteFail2banIPNotFound
- type DeleteFail2banIPOK
- type DeleteFail2banIPParams
- type DeleteFail2banIPURL
- func (o *DeleteFail2banIPURL) Build() (*url.URL, error)
- func (o *DeleteFail2banIPURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteFail2banIPURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteFail2banIPURL) SetBasePath(bp string)
- func (o *DeleteFail2banIPURL) String() string
- func (o *DeleteFail2banIPURL) StringFull(scheme, host string) string
- func (o *DeleteFail2banIPURL) WithBasePath(bp string) *DeleteFail2banIPURL
- type GetFail2banIps
- type GetFail2banIpsHandler
- type GetFail2banIpsHandlerFunc
- type GetFail2banIpsInternalServerError
- type GetFail2banIpsOK
- type GetFail2banIpsParams
- type GetFail2banIpsURL
- func (o *GetFail2banIpsURL) Build() (*url.URL, error)
- func (o *GetFail2banIpsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFail2banIpsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFail2banIpsURL) SetBasePath(bp string)
- func (o *GetFail2banIpsURL) String() string
- func (o *GetFail2banIpsURL) StringFull(scheme, host string) string
- func (o *GetFail2banIpsURL) WithBasePath(bp string) *GetFail2banIpsURL
- type PostFail2banIP
- type PostFail2banIPHandler
- type PostFail2banIPHandlerFunc
- type PostFail2banIPInternalServerError
- type PostFail2banIPMethodNotAllowed
- type PostFail2banIPOK
- type PostFail2banIPParams
- type PostFail2banIPURL
- func (o *PostFail2banIPURL) Build() (*url.URL, error)
- func (o *PostFail2banIPURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFail2banIPURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFail2banIPURL) SetBasePath(bp string)
- func (o *PostFail2banIPURL) String() string
- func (o *PostFail2banIPURL) StringFull(scheme, host string) string
- func (o *PostFail2banIPURL) WithBasePath(bp string) *PostFail2banIPURL
Constants ¶
const DeleteFail2banIPInternalServerErrorCode int = 500
DeleteFail2banIPInternalServerErrorCode is the HTTP code returned for type DeleteFail2banIPInternalServerError
const DeleteFail2banIPMethodNotAllowedCode int = 405
DeleteFail2banIPMethodNotAllowedCode is the HTTP code returned for type DeleteFail2banIPMethodNotAllowed
const DeleteFail2banIPNotFoundCode int = 404
DeleteFail2banIPNotFoundCode is the HTTP code returned for type DeleteFail2banIPNotFound
const DeleteFail2banIPOKCode int = 200
DeleteFail2banIPOKCode is the HTTP code returned for type DeleteFail2banIPOK
const GetFail2banIpsInternalServerErrorCode int = 500
GetFail2banIpsInternalServerErrorCode is the HTTP code returned for type GetFail2banIpsInternalServerError
const GetFail2banIpsOKCode int = 200
GetFail2banIpsOKCode is the HTTP code returned for type GetFail2banIpsOK
const PostFail2banIPInternalServerErrorCode int = 500
PostFail2banIPInternalServerErrorCode is the HTTP code returned for type PostFail2banIPInternalServerError
const PostFail2banIPMethodNotAllowedCode int = 405
PostFail2banIPMethodNotAllowedCode is the HTTP code returned for type PostFail2banIPMethodNotAllowed
const PostFail2banIPOKCode int = 200
PostFail2banIPOKCode is the HTTP code returned for type PostFail2banIPOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteFail2banIP ¶
type DeleteFail2banIP struct { Context *middleware.Context Handler DeleteFail2banIPHandler }
DeleteFail2banIP swagger:route DELETE /fail2ban/{ip} fail2ban deleteFail2banIp
DeleteFail2banIP delete fail2ban Ip API
func NewDeleteFail2banIP ¶
func NewDeleteFail2banIP(ctx *middleware.Context, handler DeleteFail2banIPHandler) *DeleteFail2banIP
NewDeleteFail2banIP creates a new http.Handler for the delete fail2ban Ip operation
func (*DeleteFail2banIP) ServeHTTP ¶
func (o *DeleteFail2banIP) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteFail2banIPHandler ¶
type DeleteFail2banIPHandler interface {
Handle(DeleteFail2banIPParams, interface{}) middleware.Responder
}
DeleteFail2banIPHandler interface for that can handle valid delete fail2ban Ip params
type DeleteFail2banIPHandlerFunc ¶
type DeleteFail2banIPHandlerFunc func(DeleteFail2banIPParams, interface{}) middleware.Responder
DeleteFail2banIPHandlerFunc turns a function with the right signature into a delete fail2ban Ip handler
func (DeleteFail2banIPHandlerFunc) Handle ¶
func (fn DeleteFail2banIPHandlerFunc) Handle(params DeleteFail2banIPParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteFail2banIPInternalServerError ¶
type DeleteFail2banIPInternalServerError struct { }
DeleteFail2banIPInternalServerError Internal error
swagger:response deleteFail2banIpInternalServerError
func NewDeleteFail2banIPInternalServerError ¶
func NewDeleteFail2banIPInternalServerError() *DeleteFail2banIPInternalServerError
NewDeleteFail2banIPInternalServerError creates DeleteFail2banIPInternalServerError with default headers values
func (*DeleteFail2banIPInternalServerError) WriteResponse ¶
func (o *DeleteFail2banIPInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFail2banIPMethodNotAllowed ¶
type DeleteFail2banIPMethodNotAllowed struct { }
DeleteFail2banIPMethodNotAllowed Invalid input
swagger:response deleteFail2banIpMethodNotAllowed
func NewDeleteFail2banIPMethodNotAllowed ¶
func NewDeleteFail2banIPMethodNotAllowed() *DeleteFail2banIPMethodNotAllowed
NewDeleteFail2banIPMethodNotAllowed creates DeleteFail2banIPMethodNotAllowed with default headers values
func (*DeleteFail2banIPMethodNotAllowed) WriteResponse ¶
func (o *DeleteFail2banIPMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFail2banIPNotFound ¶
type DeleteFail2banIPNotFound struct { }
DeleteFail2banIPNotFound IP was not found
swagger:response deleteFail2banIpNotFound
func NewDeleteFail2banIPNotFound ¶
func NewDeleteFail2banIPNotFound() *DeleteFail2banIPNotFound
NewDeleteFail2banIPNotFound creates DeleteFail2banIPNotFound with default headers values
func (*DeleteFail2banIPNotFound) WriteResponse ¶
func (o *DeleteFail2banIPNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFail2banIPOK ¶
type DeleteFail2banIPOK struct { }
DeleteFail2banIPOK Successful operation
swagger:response deleteFail2banIpOK
func NewDeleteFail2banIPOK ¶
func NewDeleteFail2banIPOK() *DeleteFail2banIPOK
NewDeleteFail2banIPOK creates DeleteFail2banIPOK with default headers values
func (*DeleteFail2banIPOK) WriteResponse ¶
func (o *DeleteFail2banIPOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFail2banIPParams ¶
type DeleteFail2banIPParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*IP address to delete Required: true In: path */ IP string }
DeleteFail2banIPParams contains all the bound params for the delete fail2ban Ip operation typically these are obtained from a http.Request
swagger:parameters deleteFail2banIp
func NewDeleteFail2banIPParams ¶
func NewDeleteFail2banIPParams() DeleteFail2banIPParams
NewDeleteFail2banIPParams creates a new DeleteFail2banIPParams object
There are no default values defined in the spec.
func (*DeleteFail2banIPParams) BindRequest ¶
func (o *DeleteFail2banIPParams) 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 NewDeleteFail2banIPParams() beforehand.
type DeleteFail2banIPURL ¶
type DeleteFail2banIPURL struct { IP string // contains filtered or unexported fields }
DeleteFail2banIPURL generates an URL for the delete fail2ban Ip operation
func (*DeleteFail2banIPURL) Build ¶
func (o *DeleteFail2banIPURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteFail2banIPURL) BuildFull ¶
func (o *DeleteFail2banIPURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteFail2banIPURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteFail2banIPURL) SetBasePath ¶
func (o *DeleteFail2banIPURL) 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 (*DeleteFail2banIPURL) String ¶
func (o *DeleteFail2banIPURL) String() string
String returns the string representation of the path with query string
func (*DeleteFail2banIPURL) StringFull ¶
func (o *DeleteFail2banIPURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteFail2banIPURL) WithBasePath ¶
func (o *DeleteFail2banIPURL) WithBasePath(bp string) *DeleteFail2banIPURL
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 GetFail2banIps ¶
type GetFail2banIps struct { Context *middleware.Context Handler GetFail2banIpsHandler }
GetFail2banIps swagger:route GET /fail2ban fail2ban getFail2banIps
GetFail2banIps get fail2ban ips API
func NewGetFail2banIps ¶
func NewGetFail2banIps(ctx *middleware.Context, handler GetFail2banIpsHandler) *GetFail2banIps
NewGetFail2banIps creates a new http.Handler for the get fail2ban ips operation
func (*GetFail2banIps) ServeHTTP ¶
func (o *GetFail2banIps) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetFail2banIpsHandler ¶
type GetFail2banIpsHandler interface {
Handle(GetFail2banIpsParams, interface{}) middleware.Responder
}
GetFail2banIpsHandler interface for that can handle valid get fail2ban ips params
type GetFail2banIpsHandlerFunc ¶
type GetFail2banIpsHandlerFunc func(GetFail2banIpsParams, interface{}) middleware.Responder
GetFail2banIpsHandlerFunc turns a function with the right signature into a get fail2ban ips handler
func (GetFail2banIpsHandlerFunc) Handle ¶
func (fn GetFail2banIpsHandlerFunc) Handle(params GetFail2banIpsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetFail2banIpsInternalServerError ¶
type GetFail2banIpsInternalServerError struct { }
GetFail2banIpsInternalServerError Internal error
swagger:response getFail2banIpsInternalServerError
func NewGetFail2banIpsInternalServerError ¶
func NewGetFail2banIpsInternalServerError() *GetFail2banIpsInternalServerError
NewGetFail2banIpsInternalServerError creates GetFail2banIpsInternalServerError with default headers values
func (*GetFail2banIpsInternalServerError) WriteResponse ¶
func (o *GetFail2banIpsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFail2banIpsOK ¶
type GetFail2banIpsOK struct { /* In: Body */ Payload *models.Fail2banListItem `json:"body,omitempty"` }
GetFail2banIpsOK Successful listing of banned IPs by Fail2ban.
swagger:response getFail2banIpsOK
func NewGetFail2banIpsOK ¶
func NewGetFail2banIpsOK() *GetFail2banIpsOK
NewGetFail2banIpsOK creates GetFail2banIpsOK with default headers values
func (*GetFail2banIpsOK) SetPayload ¶
func (o *GetFail2banIpsOK) SetPayload(payload *models.Fail2banListItem)
SetPayload sets the payload to the get fail2ban ips o k response
func (*GetFail2banIpsOK) WithPayload ¶
func (o *GetFail2banIpsOK) WithPayload(payload *models.Fail2banListItem) *GetFail2banIpsOK
WithPayload adds the payload to the get fail2ban ips o k response
func (*GetFail2banIpsOK) WriteResponse ¶
func (o *GetFail2banIpsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFail2banIpsParams ¶
GetFail2banIpsParams contains all the bound params for the get fail2ban ips operation typically these are obtained from a http.Request
swagger:parameters getFail2banIps
func NewGetFail2banIpsParams ¶
func NewGetFail2banIpsParams() GetFail2banIpsParams
NewGetFail2banIpsParams creates a new GetFail2banIpsParams object
There are no default values defined in the spec.
func (*GetFail2banIpsParams) BindRequest ¶
func (o *GetFail2banIpsParams) 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 NewGetFail2banIpsParams() beforehand.
type GetFail2banIpsURL ¶
type GetFail2banIpsURL struct {
// contains filtered or unexported fields
}
GetFail2banIpsURL generates an URL for the get fail2ban ips operation
func (*GetFail2banIpsURL) Build ¶
func (o *GetFail2banIpsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFail2banIpsURL) BuildFull ¶
func (o *GetFail2banIpsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFail2banIpsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetFail2banIpsURL) SetBasePath ¶
func (o *GetFail2banIpsURL) 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 (*GetFail2banIpsURL) String ¶
func (o *GetFail2banIpsURL) String() string
String returns the string representation of the path with query string
func (*GetFail2banIpsURL) StringFull ¶
func (o *GetFail2banIpsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFail2banIpsURL) WithBasePath ¶
func (o *GetFail2banIpsURL) WithBasePath(bp string) *GetFail2banIpsURL
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 PostFail2banIP ¶
type PostFail2banIP struct { Context *middleware.Context Handler PostFail2banIPHandler }
PostFail2banIP swagger:route POST /fail2ban fail2ban postFail2banIp
PostFail2banIP post fail2ban Ip API
func NewPostFail2banIP ¶
func NewPostFail2banIP(ctx *middleware.Context, handler PostFail2banIPHandler) *PostFail2banIP
NewPostFail2banIP creates a new http.Handler for the post fail2ban Ip operation
func (*PostFail2banIP) ServeHTTP ¶
func (o *PostFail2banIP) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostFail2banIPHandler ¶
type PostFail2banIPHandler interface {
Handle(PostFail2banIPParams, interface{}) middleware.Responder
}
PostFail2banIPHandler interface for that can handle valid post fail2ban Ip params
type PostFail2banIPHandlerFunc ¶
type PostFail2banIPHandlerFunc func(PostFail2banIPParams, interface{}) middleware.Responder
PostFail2banIPHandlerFunc turns a function with the right signature into a post fail2ban Ip handler
func (PostFail2banIPHandlerFunc) Handle ¶
func (fn PostFail2banIPHandlerFunc) Handle(params PostFail2banIPParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PostFail2banIPInternalServerError ¶
type PostFail2banIPInternalServerError struct { }
PostFail2banIPInternalServerError Internal error
swagger:response postFail2banIpInternalServerError
func NewPostFail2banIPInternalServerError ¶
func NewPostFail2banIPInternalServerError() *PostFail2banIPInternalServerError
NewPostFail2banIPInternalServerError creates PostFail2banIPInternalServerError with default headers values
func (*PostFail2banIPInternalServerError) WriteResponse ¶
func (o *PostFail2banIPInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFail2banIPMethodNotAllowed ¶
type PostFail2banIPMethodNotAllowed struct { }
PostFail2banIPMethodNotAllowed Invalid input
swagger:response postFail2banIpMethodNotAllowed
func NewPostFail2banIPMethodNotAllowed ¶
func NewPostFail2banIPMethodNotAllowed() *PostFail2banIPMethodNotAllowed
NewPostFail2banIPMethodNotAllowed creates PostFail2banIPMethodNotAllowed with default headers values
func (*PostFail2banIPMethodNotAllowed) WriteResponse ¶
func (o *PostFail2banIPMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFail2banIPOK ¶
type PostFail2banIPOK struct { }
PostFail2banIPOK Successful operation
swagger:response postFail2banIpOK
func NewPostFail2banIPOK ¶
func NewPostFail2banIPOK() *PostFail2banIPOK
NewPostFail2banIPOK creates PostFail2banIPOK with default headers values
func (*PostFail2banIPOK) WriteResponse ¶
func (o *PostFail2banIPOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFail2banIPParams ¶
type PostFail2banIPParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*IP address to add to fail2ban Required: true In: body */ Ipaddress string }
PostFail2banIPParams contains all the bound params for the post fail2ban Ip operation typically these are obtained from a http.Request
swagger:parameters postFail2banIp
func NewPostFail2banIPParams ¶
func NewPostFail2banIPParams() PostFail2banIPParams
NewPostFail2banIPParams creates a new PostFail2banIPParams object
There are no default values defined in the spec.
func (*PostFail2banIPParams) BindRequest ¶
func (o *PostFail2banIPParams) 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 NewPostFail2banIPParams() beforehand.
type PostFail2banIPURL ¶
type PostFail2banIPURL struct {
// contains filtered or unexported fields
}
PostFail2banIPURL generates an URL for the post fail2ban Ip operation
func (*PostFail2banIPURL) Build ¶
func (o *PostFail2banIPURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostFail2banIPURL) BuildFull ¶
func (o *PostFail2banIPURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostFail2banIPURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostFail2banIPURL) SetBasePath ¶
func (o *PostFail2banIPURL) 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 (*PostFail2banIPURL) String ¶
func (o *PostFail2banIPURL) String() string
String returns the string representation of the path with query string
func (*PostFail2banIPURL) StringFull ¶
func (o *PostFail2banIPURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostFail2banIPURL) WithBasePath ¶
func (o *PostFail2banIPURL) WithBasePath(bp string) *PostFail2banIPURL
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
Source Files
¶
- delete_fail2ban_ip.go
- delete_fail2ban_ip_parameters.go
- delete_fail2ban_ip_responses.go
- delete_fail2ban_ip_urlbuilder.go
- get_fail2ban_ips.go
- get_fail2ban_ips_parameters.go
- get_fail2ban_ips_responses.go
- get_fail2ban_ips_urlbuilder.go
- post_fail2ban_ip.go
- post_fail2ban_ip_parameters.go
- post_fail2ban_ip_responses.go
- post_fail2ban_ip_urlbuilder.go