Documentation ¶
Index ¶
- Constants
- type DeletePrefilter
- type DeletePrefilterFailure
- type DeletePrefilterForbidden
- type DeletePrefilterHandler
- type DeletePrefilterHandlerFunc
- type DeletePrefilterInvalidCIDR
- type DeletePrefilterOK
- type DeletePrefilterParams
- type GetPrefilter
- type GetPrefilterFailure
- type GetPrefilterHandler
- type GetPrefilterHandlerFunc
- type GetPrefilterOK
- type GetPrefilterParams
- type PatchPrefilter
- type PatchPrefilterFailure
- type PatchPrefilterForbidden
- type PatchPrefilterHandler
- type PatchPrefilterHandlerFunc
- type PatchPrefilterInvalidCIDR
- type PatchPrefilterOK
- type PatchPrefilterParams
Constants ¶
const DeletePrefilterFailureCode int = 500
DeletePrefilterFailureCode is the HTTP code returned for type DeletePrefilterFailure
const DeletePrefilterForbiddenCode int = 403
DeletePrefilterForbiddenCode is the HTTP code returned for type DeletePrefilterForbidden
const DeletePrefilterInvalidCIDRCode int = 461
DeletePrefilterInvalidCIDRCode is the HTTP code returned for type DeletePrefilterInvalidCIDR
const DeletePrefilterOKCode int = 200
DeletePrefilterOKCode is the HTTP code returned for type DeletePrefilterOK
const GetPrefilterFailureCode int = 500
GetPrefilterFailureCode is the HTTP code returned for type GetPrefilterFailure
const GetPrefilterOKCode int = 200
GetPrefilterOKCode is the HTTP code returned for type GetPrefilterOK
const PatchPrefilterFailureCode int = 500
PatchPrefilterFailureCode is the HTTP code returned for type PatchPrefilterFailure
const PatchPrefilterForbiddenCode int = 403
PatchPrefilterForbiddenCode is the HTTP code returned for type PatchPrefilterForbidden
const PatchPrefilterInvalidCIDRCode int = 461
PatchPrefilterInvalidCIDRCode is the HTTP code returned for type PatchPrefilterInvalidCIDR
const PatchPrefilterOKCode int = 200
PatchPrefilterOKCode is the HTTP code returned for type PatchPrefilterOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeletePrefilter ¶
type DeletePrefilter struct { Context *middleware.Context Handler DeletePrefilterHandler }
DeletePrefilter swagger:route DELETE /prefilter prefilter deletePrefilter
Delete list of CIDRs
func NewDeletePrefilter ¶
func NewDeletePrefilter(ctx *middleware.Context, handler DeletePrefilterHandler) *DeletePrefilter
NewDeletePrefilter creates a new http.Handler for the delete prefilter operation
func (*DeletePrefilter) ServeHTTP ¶
func (o *DeletePrefilter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeletePrefilterFailure ¶
DeletePrefilterFailure Prefilter delete failed
swagger:response deletePrefilterFailure
func NewDeletePrefilterFailure ¶
func NewDeletePrefilterFailure() *DeletePrefilterFailure
NewDeletePrefilterFailure creates DeletePrefilterFailure with default headers values
func (*DeletePrefilterFailure) SetPayload ¶
func (o *DeletePrefilterFailure) SetPayload(payload models.Error)
SetPayload sets the payload to the delete prefilter failure response
func (*DeletePrefilterFailure) WithPayload ¶
func (o *DeletePrefilterFailure) WithPayload(payload models.Error) *DeletePrefilterFailure
WithPayload adds the payload to the delete prefilter failure response
func (*DeletePrefilterFailure) WriteResponse ¶
func (o *DeletePrefilterFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePrefilterForbidden ¶
type DeletePrefilterForbidden struct { }
DeletePrefilterForbidden Forbidden
swagger:response deletePrefilterForbidden
func NewDeletePrefilterForbidden ¶
func NewDeletePrefilterForbidden() *DeletePrefilterForbidden
NewDeletePrefilterForbidden creates DeletePrefilterForbidden with default headers values
func (*DeletePrefilterForbidden) WriteResponse ¶
func (o *DeletePrefilterForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePrefilterHandler ¶
type DeletePrefilterHandler interface {
Handle(DeletePrefilterParams) middleware.Responder
}
DeletePrefilterHandler interface for that can handle valid delete prefilter params
type DeletePrefilterHandlerFunc ¶
type DeletePrefilterHandlerFunc func(DeletePrefilterParams) middleware.Responder
DeletePrefilterHandlerFunc turns a function with the right signature into a delete prefilter handler
func (DeletePrefilterHandlerFunc) Handle ¶
func (fn DeletePrefilterHandlerFunc) Handle(params DeletePrefilterParams) middleware.Responder
Handle executing the request and returning a response
type DeletePrefilterInvalidCIDR ¶
type DeletePrefilterInvalidCIDR struct { /* In: Body */ Payload models.Error `json:"body,omitempty"` }
DeletePrefilterInvalidCIDR Invalid CIDR prefix
swagger:response deletePrefilterInvalidCIdR
func NewDeletePrefilterInvalidCIDR ¶
func NewDeletePrefilterInvalidCIDR() *DeletePrefilterInvalidCIDR
NewDeletePrefilterInvalidCIDR creates DeletePrefilterInvalidCIDR with default headers values
func (*DeletePrefilterInvalidCIDR) SetPayload ¶
func (o *DeletePrefilterInvalidCIDR) SetPayload(payload models.Error)
SetPayload sets the payload to the delete prefilter invalid c Id r response
func (*DeletePrefilterInvalidCIDR) WithPayload ¶
func (o *DeletePrefilterInvalidCIDR) WithPayload(payload models.Error) *DeletePrefilterInvalidCIDR
WithPayload adds the payload to the delete prefilter invalid c Id r response
func (*DeletePrefilterInvalidCIDR) WriteResponse ¶
func (o *DeletePrefilterInvalidCIDR) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePrefilterOK ¶
DeletePrefilterOK Deleted
swagger:response deletePrefilterOK
func NewDeletePrefilterOK ¶
func NewDeletePrefilterOK() *DeletePrefilterOK
NewDeletePrefilterOK creates DeletePrefilterOK with default headers values
func (*DeletePrefilterOK) SetPayload ¶
func (o *DeletePrefilterOK) SetPayload(payload *models.Prefilter)
SetPayload sets the payload to the delete prefilter o k response
func (*DeletePrefilterOK) WithPayload ¶
func (o *DeletePrefilterOK) WithPayload(payload *models.Prefilter) *DeletePrefilterOK
WithPayload adds the payload to the delete prefilter o k response
func (*DeletePrefilterOK) WriteResponse ¶
func (o *DeletePrefilterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePrefilterParams ¶
type DeletePrefilterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*List of CIDR ranges for filter table Required: true In: body */ PrefilterSpec *models.PrefilterSpec }
DeletePrefilterParams contains all the bound params for the delete prefilter operation typically these are obtained from a http.Request
swagger:parameters DeletePrefilter
func NewDeletePrefilterParams ¶
func NewDeletePrefilterParams() DeletePrefilterParams
NewDeletePrefilterParams creates a new DeletePrefilterParams object
There are no default values defined in the spec.
func (*DeletePrefilterParams) BindRequest ¶
func (o *DeletePrefilterParams) 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 NewDeletePrefilterParams() beforehand.
type GetPrefilter ¶
type GetPrefilter struct { Context *middleware.Context Handler GetPrefilterHandler }
GetPrefilter swagger:route GET /prefilter prefilter getPrefilter
Retrieve list of CIDRs
func NewGetPrefilter ¶
func NewGetPrefilter(ctx *middleware.Context, handler GetPrefilterHandler) *GetPrefilter
NewGetPrefilter creates a new http.Handler for the get prefilter operation
func (*GetPrefilter) ServeHTTP ¶
func (o *GetPrefilter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetPrefilterFailure ¶
GetPrefilterFailure Prefilter get failed
swagger:response getPrefilterFailure
func NewGetPrefilterFailure ¶
func NewGetPrefilterFailure() *GetPrefilterFailure
NewGetPrefilterFailure creates GetPrefilterFailure with default headers values
func (*GetPrefilterFailure) SetPayload ¶
func (o *GetPrefilterFailure) SetPayload(payload models.Error)
SetPayload sets the payload to the get prefilter failure response
func (*GetPrefilterFailure) WithPayload ¶
func (o *GetPrefilterFailure) WithPayload(payload models.Error) *GetPrefilterFailure
WithPayload adds the payload to the get prefilter failure response
func (*GetPrefilterFailure) WriteResponse ¶
func (o *GetPrefilterFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPrefilterHandler ¶
type GetPrefilterHandler interface {
Handle(GetPrefilterParams) middleware.Responder
}
GetPrefilterHandler interface for that can handle valid get prefilter params
type GetPrefilterHandlerFunc ¶
type GetPrefilterHandlerFunc func(GetPrefilterParams) middleware.Responder
GetPrefilterHandlerFunc turns a function with the right signature into a get prefilter handler
func (GetPrefilterHandlerFunc) Handle ¶
func (fn GetPrefilterHandlerFunc) Handle(params GetPrefilterParams) middleware.Responder
Handle executing the request and returning a response
type GetPrefilterOK ¶
GetPrefilterOK Success
swagger:response getPrefilterOK
func NewGetPrefilterOK ¶
func NewGetPrefilterOK() *GetPrefilterOK
NewGetPrefilterOK creates GetPrefilterOK with default headers values
func (*GetPrefilterOK) SetPayload ¶
func (o *GetPrefilterOK) SetPayload(payload *models.Prefilter)
SetPayload sets the payload to the get prefilter o k response
func (*GetPrefilterOK) WithPayload ¶
func (o *GetPrefilterOK) WithPayload(payload *models.Prefilter) *GetPrefilterOK
WithPayload adds the payload to the get prefilter o k response
func (*GetPrefilterOK) WriteResponse ¶
func (o *GetPrefilterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPrefilterParams ¶
GetPrefilterParams contains all the bound params for the get prefilter operation typically these are obtained from a http.Request
swagger:parameters GetPrefilter
func NewGetPrefilterParams ¶
func NewGetPrefilterParams() GetPrefilterParams
NewGetPrefilterParams creates a new GetPrefilterParams object
There are no default values defined in the spec.
func (*GetPrefilterParams) BindRequest ¶
func (o *GetPrefilterParams) 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 NewGetPrefilterParams() beforehand.
type PatchPrefilter ¶
type PatchPrefilter struct { Context *middleware.Context Handler PatchPrefilterHandler }
PatchPrefilter swagger:route PATCH /prefilter prefilter patchPrefilter
Update list of CIDRs
func NewPatchPrefilter ¶
func NewPatchPrefilter(ctx *middleware.Context, handler PatchPrefilterHandler) *PatchPrefilter
NewPatchPrefilter creates a new http.Handler for the patch prefilter operation
func (*PatchPrefilter) ServeHTTP ¶
func (o *PatchPrefilter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PatchPrefilterFailure ¶
PatchPrefilterFailure Prefilter update failed
swagger:response patchPrefilterFailure
func NewPatchPrefilterFailure ¶
func NewPatchPrefilterFailure() *PatchPrefilterFailure
NewPatchPrefilterFailure creates PatchPrefilterFailure with default headers values
func (*PatchPrefilterFailure) SetPayload ¶
func (o *PatchPrefilterFailure) SetPayload(payload models.Error)
SetPayload sets the payload to the patch prefilter failure response
func (*PatchPrefilterFailure) WithPayload ¶
func (o *PatchPrefilterFailure) WithPayload(payload models.Error) *PatchPrefilterFailure
WithPayload adds the payload to the patch prefilter failure response
func (*PatchPrefilterFailure) WriteResponse ¶
func (o *PatchPrefilterFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchPrefilterForbidden ¶
type PatchPrefilterForbidden struct { }
PatchPrefilterForbidden Forbidden
swagger:response patchPrefilterForbidden
func NewPatchPrefilterForbidden ¶
func NewPatchPrefilterForbidden() *PatchPrefilterForbidden
NewPatchPrefilterForbidden creates PatchPrefilterForbidden with default headers values
func (*PatchPrefilterForbidden) WriteResponse ¶
func (o *PatchPrefilterForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchPrefilterHandler ¶
type PatchPrefilterHandler interface {
Handle(PatchPrefilterParams) middleware.Responder
}
PatchPrefilterHandler interface for that can handle valid patch prefilter params
type PatchPrefilterHandlerFunc ¶
type PatchPrefilterHandlerFunc func(PatchPrefilterParams) middleware.Responder
PatchPrefilterHandlerFunc turns a function with the right signature into a patch prefilter handler
func (PatchPrefilterHandlerFunc) Handle ¶
func (fn PatchPrefilterHandlerFunc) Handle(params PatchPrefilterParams) middleware.Responder
Handle executing the request and returning a response
type PatchPrefilterInvalidCIDR ¶
type PatchPrefilterInvalidCIDR struct { /* In: Body */ Payload models.Error `json:"body,omitempty"` }
PatchPrefilterInvalidCIDR Invalid CIDR prefix
swagger:response patchPrefilterInvalidCIdR
func NewPatchPrefilterInvalidCIDR ¶
func NewPatchPrefilterInvalidCIDR() *PatchPrefilterInvalidCIDR
NewPatchPrefilterInvalidCIDR creates PatchPrefilterInvalidCIDR with default headers values
func (*PatchPrefilterInvalidCIDR) SetPayload ¶
func (o *PatchPrefilterInvalidCIDR) SetPayload(payload models.Error)
SetPayload sets the payload to the patch prefilter invalid c Id r response
func (*PatchPrefilterInvalidCIDR) WithPayload ¶
func (o *PatchPrefilterInvalidCIDR) WithPayload(payload models.Error) *PatchPrefilterInvalidCIDR
WithPayload adds the payload to the patch prefilter invalid c Id r response
func (*PatchPrefilterInvalidCIDR) WriteResponse ¶
func (o *PatchPrefilterInvalidCIDR) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchPrefilterOK ¶
PatchPrefilterOK Updated
swagger:response patchPrefilterOK
func NewPatchPrefilterOK ¶
func NewPatchPrefilterOK() *PatchPrefilterOK
NewPatchPrefilterOK creates PatchPrefilterOK with default headers values
func (*PatchPrefilterOK) SetPayload ¶
func (o *PatchPrefilterOK) SetPayload(payload *models.Prefilter)
SetPayload sets the payload to the patch prefilter o k response
func (*PatchPrefilterOK) WithPayload ¶
func (o *PatchPrefilterOK) WithPayload(payload *models.Prefilter) *PatchPrefilterOK
WithPayload adds the payload to the patch prefilter o k response
func (*PatchPrefilterOK) WriteResponse ¶
func (o *PatchPrefilterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchPrefilterParams ¶
type PatchPrefilterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*List of CIDR ranges for filter table Required: true In: body */ PrefilterSpec *models.PrefilterSpec }
PatchPrefilterParams contains all the bound params for the patch prefilter operation typically these are obtained from a http.Request
swagger:parameters PatchPrefilter
func NewPatchPrefilterParams ¶
func NewPatchPrefilterParams() PatchPrefilterParams
NewPatchPrefilterParams creates a new PatchPrefilterParams object
There are no default values defined in the spec.
func (*PatchPrefilterParams) BindRequest ¶
func (o *PatchPrefilterParams) 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 NewPatchPrefilterParams() beforehand.