cilium: github.com/cilium/cilium/api/v1/server/restapi/prefilter Index | Files

package prefilter

import "github.com/cilium/cilium/api/v1/server/restapi/prefilter"

Index

Package Files

delete_prefilter.go delete_prefilter_parameters.go delete_prefilter_responses.go delete_prefilter_urlbuilder.go get_prefilter.go get_prefilter_parameters.go get_prefilter_responses.go get_prefilter_urlbuilder.go patch_prefilter.go patch_prefilter_parameters.go patch_prefilter_responses.go patch_prefilter_urlbuilder.go

Constants

const DeletePrefilterFailureCode int = 500

DeletePrefilterFailureCode is the HTTP code returned for type DeletePrefilterFailure

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

type DeletePrefilter Uses

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

DeletePrefilter swagger:route DELETE /prefilter prefilter deletePrefilter

Delete list of CIDRs

func NewDeletePrefilter Uses

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

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

func (*DeletePrefilter) ServeHTTP Uses

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

type DeletePrefilterFailure Uses

type DeletePrefilterFailure struct {

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

DeletePrefilterFailure Prefilter delete failed

swagger:response deletePrefilterFailure

func NewDeletePrefilterFailure Uses

func NewDeletePrefilterFailure() *DeletePrefilterFailure

NewDeletePrefilterFailure creates DeletePrefilterFailure with default headers values

func (*DeletePrefilterFailure) SetPayload Uses

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

SetPayload sets the payload to the delete prefilter failure response

func (*DeletePrefilterFailure) WithPayload Uses

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

WithPayload adds the payload to the delete prefilter failure response

func (*DeletePrefilterFailure) WriteResponse Uses

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

WriteResponse to the client

type DeletePrefilterHandler Uses

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

DeletePrefilterHandler interface for that can handle valid delete prefilter params

type DeletePrefilterHandlerFunc Uses

type DeletePrefilterHandlerFunc func(DeletePrefilterParams) middleware.Responder

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

func (DeletePrefilterHandlerFunc) Handle Uses

func (fn DeletePrefilterHandlerFunc) Handle(params DeletePrefilterParams) middleware.Responder

Handle executing the request and returning a response

type DeletePrefilterInvalidCIDR Uses

type DeletePrefilterInvalidCIDR struct {

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

DeletePrefilterInvalidCIDR Invalid CIDR prefix

swagger:response deletePrefilterInvalidCIdR

func NewDeletePrefilterInvalidCIDR Uses

func NewDeletePrefilterInvalidCIDR() *DeletePrefilterInvalidCIDR

NewDeletePrefilterInvalidCIDR creates DeletePrefilterInvalidCIDR with default headers values

func (*DeletePrefilterInvalidCIDR) SetPayload Uses

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

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

func (*DeletePrefilterInvalidCIDR) WithPayload Uses

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

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

func (*DeletePrefilterInvalidCIDR) WriteResponse Uses

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

WriteResponse to the client

type DeletePrefilterOK Uses

type DeletePrefilterOK struct {

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

DeletePrefilterOK Deleted

swagger:response deletePrefilterOK

func NewDeletePrefilterOK Uses

func NewDeletePrefilterOK() *DeletePrefilterOK

NewDeletePrefilterOK creates DeletePrefilterOK with default headers values

func (*DeletePrefilterOK) SetPayload Uses

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

SetPayload sets the payload to the delete prefilter o k response

func (*DeletePrefilterOK) WithPayload Uses

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

WithPayload adds the payload to the delete prefilter o k response

func (*DeletePrefilterOK) WriteResponse Uses

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

WriteResponse to the client

type DeletePrefilterParams Uses

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 Uses

func NewDeletePrefilterParams() DeletePrefilterParams

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

func (*DeletePrefilterParams) BindRequest Uses

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 Uses

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

DeletePrefilterURL generates an URL for the delete prefilter operation

func (*DeletePrefilterURL) Build Uses

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

Build a url path and query string

func (*DeletePrefilterURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *DeletePrefilterURL) String() string

String returns the string representation of the path with query string

func (*DeletePrefilterURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*DeletePrefilterURL) WithBasePath Uses

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 Uses

type GetPrefilter struct {
    Context *middleware.Context
    Handler GetPrefilterHandler
}

GetPrefilter swagger:route GET /prefilter prefilter getPrefilter

Retrieve list of CIDRs

func NewGetPrefilter Uses

func NewGetPrefilter(ctx *middleware.Context, handler GetPrefilterHandler) *GetPrefilter

NewGetPrefilter creates a new http.Handler for the get prefilter operation

func (*GetPrefilter) ServeHTTP Uses

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

type GetPrefilterFailure Uses

type GetPrefilterFailure struct {

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

GetPrefilterFailure Prefilter get failed

swagger:response getPrefilterFailure

func NewGetPrefilterFailure Uses

func NewGetPrefilterFailure() *GetPrefilterFailure

NewGetPrefilterFailure creates GetPrefilterFailure with default headers values

func (*GetPrefilterFailure) SetPayload Uses

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

SetPayload sets the payload to the get prefilter failure response

func (*GetPrefilterFailure) WithPayload Uses

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

WithPayload adds the payload to the get prefilter failure response

func (*GetPrefilterFailure) WriteResponse Uses

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

WriteResponse to the client

type GetPrefilterHandler Uses

type GetPrefilterHandler interface {
    Handle(GetPrefilterParams) middleware.Responder
}

GetPrefilterHandler interface for that can handle valid get prefilter params

type GetPrefilterHandlerFunc Uses

type GetPrefilterHandlerFunc func(GetPrefilterParams) middleware.Responder

GetPrefilterHandlerFunc turns a function with the right signature into a get prefilter handler

func (GetPrefilterHandlerFunc) Handle Uses

func (fn GetPrefilterHandlerFunc) Handle(params GetPrefilterParams) middleware.Responder

Handle executing the request and returning a response

type GetPrefilterOK Uses

type GetPrefilterOK struct {

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

GetPrefilterOK Success

swagger:response getPrefilterOK

func NewGetPrefilterOK Uses

func NewGetPrefilterOK() *GetPrefilterOK

NewGetPrefilterOK creates GetPrefilterOK with default headers values

func (*GetPrefilterOK) SetPayload Uses

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

SetPayload sets the payload to the get prefilter o k response

func (*GetPrefilterOK) WithPayload Uses

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

WithPayload adds the payload to the get prefilter o k response

func (*GetPrefilterOK) WriteResponse Uses

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

WriteResponse to the client

type GetPrefilterParams Uses

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 Uses

func NewGetPrefilterParams() GetPrefilterParams

NewGetPrefilterParams creates a new GetPrefilterParams object no default values defined in spec.

func (*GetPrefilterParams) BindRequest Uses

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 Uses

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

GetPrefilterURL generates an URL for the get prefilter operation

func (*GetPrefilterURL) Build Uses

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

Build a url path and query string

func (*GetPrefilterURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *GetPrefilterURL) String() string

String returns the string representation of the path with query string

func (*GetPrefilterURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*GetPrefilterURL) WithBasePath Uses

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 Uses

type PatchPrefilter struct {
    Context *middleware.Context
    Handler PatchPrefilterHandler
}

PatchPrefilter swagger:route PATCH /prefilter prefilter patchPrefilter

Update list of CIDRs

func NewPatchPrefilter Uses

func NewPatchPrefilter(ctx *middleware.Context, handler PatchPrefilterHandler) *PatchPrefilter

NewPatchPrefilter creates a new http.Handler for the patch prefilter operation

func (*PatchPrefilter) ServeHTTP Uses

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

type PatchPrefilterFailure Uses

type PatchPrefilterFailure struct {

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

PatchPrefilterFailure Prefilter update failed

swagger:response patchPrefilterFailure

func NewPatchPrefilterFailure Uses

func NewPatchPrefilterFailure() *PatchPrefilterFailure

NewPatchPrefilterFailure creates PatchPrefilterFailure with default headers values

func (*PatchPrefilterFailure) SetPayload Uses

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

SetPayload sets the payload to the patch prefilter failure response

func (*PatchPrefilterFailure) WithPayload Uses

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

WithPayload adds the payload to the patch prefilter failure response

func (*PatchPrefilterFailure) WriteResponse Uses

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

WriteResponse to the client

type PatchPrefilterHandler Uses

type PatchPrefilterHandler interface {
    Handle(PatchPrefilterParams) middleware.Responder
}

PatchPrefilterHandler interface for that can handle valid patch prefilter params

type PatchPrefilterHandlerFunc Uses

type PatchPrefilterHandlerFunc func(PatchPrefilterParams) middleware.Responder

PatchPrefilterHandlerFunc turns a function with the right signature into a patch prefilter handler

func (PatchPrefilterHandlerFunc) Handle Uses

func (fn PatchPrefilterHandlerFunc) Handle(params PatchPrefilterParams) middleware.Responder

Handle executing the request and returning a response

type PatchPrefilterInvalidCIDR Uses

type PatchPrefilterInvalidCIDR struct {

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

PatchPrefilterInvalidCIDR Invalid CIDR prefix

swagger:response patchPrefilterInvalidCIdR

func NewPatchPrefilterInvalidCIDR Uses

func NewPatchPrefilterInvalidCIDR() *PatchPrefilterInvalidCIDR

NewPatchPrefilterInvalidCIDR creates PatchPrefilterInvalidCIDR with default headers values

func (*PatchPrefilterInvalidCIDR) SetPayload Uses

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

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

func (*PatchPrefilterInvalidCIDR) WithPayload Uses

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

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

func (*PatchPrefilterInvalidCIDR) WriteResponse Uses

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

WriteResponse to the client

type PatchPrefilterOK Uses

type PatchPrefilterOK struct {

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

PatchPrefilterOK Updated

swagger:response patchPrefilterOK

func NewPatchPrefilterOK Uses

func NewPatchPrefilterOK() *PatchPrefilterOK

NewPatchPrefilterOK creates PatchPrefilterOK with default headers values

func (*PatchPrefilterOK) SetPayload Uses

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

SetPayload sets the payload to the patch prefilter o k response

func (*PatchPrefilterOK) WithPayload Uses

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

WithPayload adds the payload to the patch prefilter o k response

func (*PatchPrefilterOK) WriteResponse Uses

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

WriteResponse to the client

type PatchPrefilterParams Uses

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 Uses

func NewPatchPrefilterParams() PatchPrefilterParams

NewPatchPrefilterParams creates a new PatchPrefilterParams object no default values defined in spec.

func (*PatchPrefilterParams) BindRequest Uses

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 Uses

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

PatchPrefilterURL generates an URL for the patch prefilter operation

func (*PatchPrefilterURL) Build Uses

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

Build a url path and query string

func (*PatchPrefilterURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *PatchPrefilterURL) String() string

String returns the string representation of the path with query string

func (*PatchPrefilterURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*PatchPrefilterURL) WithBasePath Uses

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

Package prefilter imports 9 packages (graph) and is imported by 12 packages. Updated 2019-10-12. Refresh now. Tools for package owners.