prefilter

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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 added in v1.6.4

type DeletePrefilter struct {
	Context *middleware.Context
	Handler DeletePrefilterHandler
}

DeletePrefilter swagger:route DELETE /prefilter prefilter deletePrefilter

Delete list of CIDRs

func NewDeletePrefilter added in v1.6.4

func NewDeletePrefilter(ctx *middleware.Context, handler DeletePrefilterHandler) *DeletePrefilter

NewDeletePrefilter creates a new http.Handler for the delete prefilter operation

func (*DeletePrefilter) ServeHTTP added in v1.6.4

func (o *DeletePrefilter) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeletePrefilterFailure added in v1.6.4

type DeletePrefilterFailure struct {

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

DeletePrefilterFailure Prefilter delete failed

swagger:response deletePrefilterFailure

func NewDeletePrefilterFailure added in v1.6.4

func NewDeletePrefilterFailure() *DeletePrefilterFailure

NewDeletePrefilterFailure creates DeletePrefilterFailure with default headers values

func (*DeletePrefilterFailure) SetPayload added in v1.6.4

func (o *DeletePrefilterFailure) SetPayload(payload models.Error)

SetPayload sets the payload to the delete prefilter failure response

func (*DeletePrefilterFailure) WithPayload added in v1.6.4

func (o *DeletePrefilterFailure) WithPayload(payload models.Error) *DeletePrefilterFailure

WithPayload adds the payload to the delete prefilter failure response

func (*DeletePrefilterFailure) WriteResponse added in v1.6.4

func (o *DeletePrefilterFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePrefilterHandler added in v1.6.4

type DeletePrefilterHandler interface {
	Handle(DeletePrefilterParams) middleware.Responder
}

DeletePrefilterHandler interface for that can handle valid delete prefilter params

type DeletePrefilterHandlerFunc added in v1.6.4

type DeletePrefilterHandlerFunc func(DeletePrefilterParams) middleware.Responder

DeletePrefilterHandlerFunc turns a function with the right signature into a delete prefilter handler

func (DeletePrefilterHandlerFunc) Handle added in v1.6.4

Handle executing the request and returning a response

type DeletePrefilterInvalidCIDR added in v1.6.4

type DeletePrefilterInvalidCIDR struct {

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

DeletePrefilterInvalidCIDR Invalid CIDR prefix

swagger:response deletePrefilterInvalidCIdR

func NewDeletePrefilterInvalidCIDR added in v1.6.4

func NewDeletePrefilterInvalidCIDR() *DeletePrefilterInvalidCIDR

NewDeletePrefilterInvalidCIDR creates DeletePrefilterInvalidCIDR with default headers values

func (*DeletePrefilterInvalidCIDR) SetPayload added in v1.6.4

func (o *DeletePrefilterInvalidCIDR) SetPayload(payload models.Error)

SetPayload sets the payload to the delete prefilter invalid c Id r response

func (*DeletePrefilterInvalidCIDR) WithPayload added in v1.6.4

WithPayload adds the payload to the delete prefilter invalid c Id r response

func (*DeletePrefilterInvalidCIDR) WriteResponse added in v1.6.4

func (o *DeletePrefilterInvalidCIDR) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePrefilterOK added in v1.6.4

type DeletePrefilterOK struct {

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

DeletePrefilterOK Deleted

swagger:response deletePrefilterOK

func NewDeletePrefilterOK added in v1.6.4

func NewDeletePrefilterOK() *DeletePrefilterOK

NewDeletePrefilterOK creates DeletePrefilterOK with default headers values

func (*DeletePrefilterOK) SetPayload added in v1.6.4

func (o *DeletePrefilterOK) SetPayload(payload *models.Prefilter)

SetPayload sets the payload to the delete prefilter o k response

func (*DeletePrefilterOK) WithPayload added in v1.6.4

func (o *DeletePrefilterOK) WithPayload(payload *models.Prefilter) *DeletePrefilterOK

WithPayload adds the payload to the delete prefilter o k response

func (*DeletePrefilterOK) WriteResponse added in v1.6.4

func (o *DeletePrefilterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePrefilterParams added in v1.6.4

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 added in v1.6.4

func NewDeletePrefilterParams() DeletePrefilterParams

NewDeletePrefilterParams creates a new DeletePrefilterParams object no default values defined in spec.

func (*DeletePrefilterParams) BindRequest added in v1.6.4

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 DeletePrefilterURL added in v1.6.4

type DeletePrefilterURL struct {
	// contains filtered or unexported fields
}

DeletePrefilterURL generates an URL for the delete prefilter operation

func (*DeletePrefilterURL) Build added in v1.6.4

func (o *DeletePrefilterURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeletePrefilterURL) BuildFull added in v1.6.4

func (o *DeletePrefilterURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeletePrefilterURL) Must added in v1.6.4

func (o *DeletePrefilterURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeletePrefilterURL) SetBasePath added in v1.6.4

func (o *DeletePrefilterURL) 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 (*DeletePrefilterURL) String added in v1.6.4

func (o *DeletePrefilterURL) String() string

String returns the string representation of the path with query string

func (*DeletePrefilterURL) StringFull added in v1.6.4

func (o *DeletePrefilterURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeletePrefilterURL) WithBasePath added in v1.6.4

func (o *DeletePrefilterURL) WithBasePath(bp string) *DeletePrefilterURL

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

type GetPrefilterURL struct {
	// contains filtered or unexported fields
}

GetPrefilterURL generates an URL for the get prefilter operation

func (*GetPrefilterURL) Build

func (o *GetPrefilterURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPrefilterURL) BuildFull

func (o *GetPrefilterURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPrefilterURL) Must

func (o *GetPrefilterURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetPrefilterURL) SetBasePath

func (o *GetPrefilterURL) 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 (*GetPrefilterURL) String

func (o *GetPrefilterURL) String() string

String returns the string representation of the path with query string

func (*GetPrefilterURL) StringFull

func (o *GetPrefilterURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPrefilterURL) WithBasePath

func (o *GetPrefilterURL) WithBasePath(bp string) *GetPrefilterURL

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

type PatchPrefilterURL

type PatchPrefilterURL struct {
	// contains filtered or unexported fields
}

PatchPrefilterURL generates an URL for the patch prefilter operation

func (*PatchPrefilterURL) Build

func (o *PatchPrefilterURL) Build() (*url.URL, error)

Build a url path and query string

func (*PatchPrefilterURL) BuildFull

func (o *PatchPrefilterURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PatchPrefilterURL) Must

func (o *PatchPrefilterURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PatchPrefilterURL) SetBasePath

func (o *PatchPrefilterURL) 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 (*PatchPrefilterURL) String

func (o *PatchPrefilterURL) String() string

String returns the string representation of the path with query string

func (*PatchPrefilterURL) StringFull

func (o *PatchPrefilterURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PatchPrefilterURL) WithBasePath

func (o *PatchPrefilterURL) WithBasePath(bp string) *PatchPrefilterURL

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

Jump to

Keyboard shortcuts

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