prefilter

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Index

Constants

View Source
const DeletePrefilterFailureCode int = 500

DeletePrefilterFailureCode is the HTTP code returned for type DeletePrefilterFailure

View Source
const DeletePrefilterInvalidCIDRCode int = 461

DeletePrefilterInvalidCIDRCode is the HTTP code returned for type DeletePrefilterInvalidCIDR

View Source
const DeletePrefilterOKCode int = 200

DeletePrefilterOKCode is the HTTP code returned for type DeletePrefilterOK

View Source
const GetPrefilterFailureCode int = 500

GetPrefilterFailureCode is the HTTP code returned for type GetPrefilterFailure

View Source
const GetPrefilterOKCode int = 200

GetPrefilterOKCode is the HTTP code returned for type GetPrefilterOK

View Source
const PatchPrefilterFailureCode int = 500

PatchPrefilterFailureCode is the HTTP code returned for type PatchPrefilterFailure

View Source
const PatchPrefilterInvalidCIDRCode int = 461

PatchPrefilterInvalidCIDRCode is the HTTP code returned for type PatchPrefilterInvalidCIDR

View Source
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

type DeletePrefilterFailure struct {

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

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 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

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

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

type DeletePrefilterOK struct {

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

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 no default values defined in 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

type GetPrefilterFailure struct {

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

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

Handle executing the request and returning a response

type GetPrefilterOK

type GetPrefilterOK struct {

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

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

type GetPrefilterParams struct {

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

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 no default values defined in 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

type PatchPrefilterFailure struct {

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

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 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

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

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

type PatchPrefilterOK struct {

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

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 no default values defined in 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL