prefilter

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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