filter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateFilterAcceptedCode int = 202

CreateFilterAcceptedCode is the HTTP code returned for type CreateFilterAccepted

View Source
const CreateFilterBadRequestCode int = 400

CreateFilterBadRequestCode is the HTTP code returned for type CreateFilterBadRequest

View Source
const CreateFilterConflictCode int = 409

CreateFilterConflictCode is the HTTP code returned for type CreateFilterConflict

View Source
const CreateFilterCreatedCode int = 201

CreateFilterCreatedCode is the HTTP code returned for type CreateFilterCreated

View Source
const DeleteFilterAcceptedCode int = 202

DeleteFilterAcceptedCode is the HTTP code returned for type DeleteFilterAccepted

View Source
const DeleteFilterNoContentCode int = 204

DeleteFilterNoContentCode is the HTTP code returned for type DeleteFilterNoContent

View Source
const DeleteFilterNotFoundCode int = 404

DeleteFilterNotFoundCode is the HTTP code returned for type DeleteFilterNotFound

View Source
const GetFilterNotFoundCode int = 404

GetFilterNotFoundCode is the HTTP code returned for type GetFilterNotFound

View Source
const GetFilterOKCode int = 200

GetFilterOKCode is the HTTP code returned for type GetFilterOK

View Source
const GetFiltersOKCode int = 200

GetFiltersOKCode is the HTTP code returned for type GetFiltersOK

View Source
const ReplaceFilterAcceptedCode int = 202

ReplaceFilterAcceptedCode is the HTTP code returned for type ReplaceFilterAccepted

View Source
const ReplaceFilterBadRequestCode int = 400

ReplaceFilterBadRequestCode is the HTTP code returned for type ReplaceFilterBadRequest

View Source
const ReplaceFilterNotFoundCode int = 404

ReplaceFilterNotFoundCode is the HTTP code returned for type ReplaceFilterNotFound

View Source
const ReplaceFilterOKCode int = 200

ReplaceFilterOKCode is the HTTP code returned for type ReplaceFilterOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateFilter

type CreateFilter struct {
	Context *middleware.Context
	Handler CreateFilterHandler
}

CreateFilter swagger:route POST /services/haproxy/configuration/filters Filter createFilter

Add a new Filter

Adds a new Filter of the specified type in the specified parent.

func NewCreateFilter

func NewCreateFilter(ctx *middleware.Context, handler CreateFilterHandler) *CreateFilter

NewCreateFilter creates a new http.Handler for the create filter operation

func (*CreateFilter) ServeHTTP

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

type CreateFilterAccepted

type CreateFilterAccepted struct {
	/*ID of the requested reload

	 */
	ReloadID string `json:"Reload-ID"`

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

CreateFilterAccepted Configuration change accepted and reload requested

swagger:response createFilterAccepted

func NewCreateFilterAccepted

func NewCreateFilterAccepted() *CreateFilterAccepted

NewCreateFilterAccepted creates CreateFilterAccepted with default headers values

func (*CreateFilterAccepted) SetPayload

func (o *CreateFilterAccepted) SetPayload(payload *models.Filter)

SetPayload sets the payload to the create filter accepted response

func (*CreateFilterAccepted) SetReloadID

func (o *CreateFilterAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the create filter accepted response

func (*CreateFilterAccepted) WithPayload

func (o *CreateFilterAccepted) WithPayload(payload *models.Filter) *CreateFilterAccepted

WithPayload adds the payload to the create filter accepted response

func (*CreateFilterAccepted) WithReloadID

func (o *CreateFilterAccepted) WithReloadID(reloadID string) *CreateFilterAccepted

WithReloadID adds the reloadId to the create filter accepted response

func (*CreateFilterAccepted) WriteResponse

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

WriteResponse to the client

type CreateFilterBadRequest

type CreateFilterBadRequest struct {

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

CreateFilterBadRequest Bad request

swagger:response createFilterBadRequest

func NewCreateFilterBadRequest

func NewCreateFilterBadRequest() *CreateFilterBadRequest

NewCreateFilterBadRequest creates CreateFilterBadRequest with default headers values

func (*CreateFilterBadRequest) SetPayload

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

SetPayload sets the payload to the create filter bad request response

func (*CreateFilterBadRequest) WithPayload

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

WithPayload adds the payload to the create filter bad request response

func (*CreateFilterBadRequest) WriteResponse

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

WriteResponse to the client

type CreateFilterConflict

type CreateFilterConflict struct {

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

CreateFilterConflict The specified resource already exists

swagger:response createFilterConflict

func NewCreateFilterConflict

func NewCreateFilterConflict() *CreateFilterConflict

NewCreateFilterConflict creates CreateFilterConflict with default headers values

func (*CreateFilterConflict) SetPayload

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

SetPayload sets the payload to the create filter conflict response

func (*CreateFilterConflict) WithPayload

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

WithPayload adds the payload to the create filter conflict response

func (*CreateFilterConflict) WriteResponse

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

WriteResponse to the client

type CreateFilterCreated

type CreateFilterCreated struct {

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

CreateFilterCreated Filter created

swagger:response createFilterCreated

func NewCreateFilterCreated

func NewCreateFilterCreated() *CreateFilterCreated

NewCreateFilterCreated creates CreateFilterCreated with default headers values

func (*CreateFilterCreated) SetPayload

func (o *CreateFilterCreated) SetPayload(payload *models.Filter)

SetPayload sets the payload to the create filter created response

func (*CreateFilterCreated) WithPayload

func (o *CreateFilterCreated) WithPayload(payload *models.Filter) *CreateFilterCreated

WithPayload adds the payload to the create filter created response

func (*CreateFilterCreated) WriteResponse

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

WriteResponse to the client

type CreateFilterDefault

type CreateFilterDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateFilterDefault General Error

swagger:response createFilterDefault

func NewCreateFilterDefault

func NewCreateFilterDefault(code int) *CreateFilterDefault

NewCreateFilterDefault creates CreateFilterDefault with default headers values

func (*CreateFilterDefault) SetPayload

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

SetPayload sets the payload to the create filter default response

func (*CreateFilterDefault) SetStatusCode

func (o *CreateFilterDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create filter default response

func (*CreateFilterDefault) WithPayload

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

WithPayload adds the payload to the create filter default response

func (*CreateFilterDefault) WithStatusCode

func (o *CreateFilterDefault) WithStatusCode(code int) *CreateFilterDefault

WithStatusCode adds the status to the create filter default response

func (*CreateFilterDefault) WriteResponse

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

WriteResponse to the client

type CreateFilterHandler

type CreateFilterHandler interface {
	Handle(CreateFilterParams, interface{}) middleware.Responder
}

CreateFilterHandler interface for that can handle valid create filter params

type CreateFilterHandlerFunc

type CreateFilterHandlerFunc func(CreateFilterParams, interface{}) middleware.Responder

CreateFilterHandlerFunc turns a function with the right signature into a create filter handler

func (CreateFilterHandlerFunc) Handle

func (fn CreateFilterHandlerFunc) Handle(params CreateFilterParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateFilterParams

type CreateFilterParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.Filter
	/*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

CreateFilterParams contains all the bound params for the create filter operation typically these are obtained from a http.Request

swagger:parameters createFilter

func NewCreateFilterParams

func NewCreateFilterParams() CreateFilterParams

NewCreateFilterParams creates a new CreateFilterParams object with the default values initialized.

func (*CreateFilterParams) BindRequest

func (o *CreateFilterParams) 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 NewCreateFilterParams() beforehand.

type CreateFilterURL

type CreateFilterURL struct {
	ForceReload   *bool
	ParentName    string
	ParentType    string
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

CreateFilterURL generates an URL for the create filter operation

func (*CreateFilterURL) Build

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

Build a url path and query string

func (*CreateFilterURL) BuildFull

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

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

func (*CreateFilterURL) Must

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

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

func (*CreateFilterURL) SetBasePath

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

func (o *CreateFilterURL) String() string

String returns the string representation of the path with query string

func (*CreateFilterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateFilterURL) WithBasePath

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

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 DeleteFilter

type DeleteFilter struct {
	Context *middleware.Context
	Handler DeleteFilterHandler
}

DeleteFilter swagger:route DELETE /services/haproxy/configuration/filters/{id} Filter deleteFilter

Delete a Filter

Deletes a Filter configuration by it's ID from the specified parent.

func NewDeleteFilter

func NewDeleteFilter(ctx *middleware.Context, handler DeleteFilterHandler) *DeleteFilter

NewDeleteFilter creates a new http.Handler for the delete filter operation

func (*DeleteFilter) ServeHTTP

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

type DeleteFilterAccepted

type DeleteFilterAccepted struct {
	/*ID of the requested reload

	 */
	ReloadID string `json:"Reload-ID"`
}

DeleteFilterAccepted Configuration change accepted and reload requested

swagger:response deleteFilterAccepted

func NewDeleteFilterAccepted

func NewDeleteFilterAccepted() *DeleteFilterAccepted

NewDeleteFilterAccepted creates DeleteFilterAccepted with default headers values

func (*DeleteFilterAccepted) SetReloadID

func (o *DeleteFilterAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the delete filter accepted response

func (*DeleteFilterAccepted) WithReloadID

func (o *DeleteFilterAccepted) WithReloadID(reloadID string) *DeleteFilterAccepted

WithReloadID adds the reloadId to the delete filter accepted response

func (*DeleteFilterAccepted) WriteResponse

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

WriteResponse to the client

type DeleteFilterDefault

type DeleteFilterDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteFilterDefault General Error

swagger:response deleteFilterDefault

func NewDeleteFilterDefault

func NewDeleteFilterDefault(code int) *DeleteFilterDefault

NewDeleteFilterDefault creates DeleteFilterDefault with default headers values

func (*DeleteFilterDefault) SetPayload

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

SetPayload sets the payload to the delete filter default response

func (*DeleteFilterDefault) SetStatusCode

func (o *DeleteFilterDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete filter default response

func (*DeleteFilterDefault) WithPayload

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

WithPayload adds the payload to the delete filter default response

func (*DeleteFilterDefault) WithStatusCode

func (o *DeleteFilterDefault) WithStatusCode(code int) *DeleteFilterDefault

WithStatusCode adds the status to the delete filter default response

func (*DeleteFilterDefault) WriteResponse

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

WriteResponse to the client

type DeleteFilterHandler

type DeleteFilterHandler interface {
	Handle(DeleteFilterParams, interface{}) middleware.Responder
}

DeleteFilterHandler interface for that can handle valid delete filter params

type DeleteFilterHandlerFunc

type DeleteFilterHandlerFunc func(DeleteFilterParams, interface{}) middleware.Responder

DeleteFilterHandlerFunc turns a function with the right signature into a delete filter handler

func (DeleteFilterHandlerFunc) Handle

func (fn DeleteFilterHandlerFunc) Handle(params DeleteFilterParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteFilterNoContent

type DeleteFilterNoContent struct {
}

DeleteFilterNoContent Filter deleted

swagger:response deleteFilterNoContent

func NewDeleteFilterNoContent

func NewDeleteFilterNoContent() *DeleteFilterNoContent

NewDeleteFilterNoContent creates DeleteFilterNoContent with default headers values

func (*DeleteFilterNoContent) WriteResponse

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

WriteResponse to the client

type DeleteFilterNotFound

type DeleteFilterNotFound struct {

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

DeleteFilterNotFound The specified resource was not found

swagger:response deleteFilterNotFound

func NewDeleteFilterNotFound

func NewDeleteFilterNotFound() *DeleteFilterNotFound

NewDeleteFilterNotFound creates DeleteFilterNotFound with default headers values

func (*DeleteFilterNotFound) SetPayload

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

SetPayload sets the payload to the delete filter not found response

func (*DeleteFilterNotFound) WithPayload

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

WithPayload adds the payload to the delete filter not found response

func (*DeleteFilterNotFound) WriteResponse

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

WriteResponse to the client

type DeleteFilterParams

type DeleteFilterParams struct {

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

	/*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*Filter ID
	  Required: true
	  In: path
	*/
	ID int64
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

DeleteFilterParams contains all the bound params for the delete filter operation typically these are obtained from a http.Request

swagger:parameters deleteFilter

func NewDeleteFilterParams

func NewDeleteFilterParams() DeleteFilterParams

NewDeleteFilterParams creates a new DeleteFilterParams object with the default values initialized.

func (*DeleteFilterParams) BindRequest

func (o *DeleteFilterParams) 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 NewDeleteFilterParams() beforehand.

type DeleteFilterURL

type DeleteFilterURL struct {
	ID int64

	ForceReload   *bool
	ParentName    string
	ParentType    string
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

DeleteFilterURL generates an URL for the delete filter operation

func (*DeleteFilterURL) Build

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

Build a url path and query string

func (*DeleteFilterURL) BuildFull

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

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

func (*DeleteFilterURL) Must

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

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

func (*DeleteFilterURL) SetBasePath

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

func (o *DeleteFilterURL) String() string

String returns the string representation of the path with query string

func (*DeleteFilterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteFilterURL) WithBasePath

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

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 GetFilter

type GetFilter struct {
	Context *middleware.Context
	Handler GetFilterHandler
}

GetFilter swagger:route GET /services/haproxy/configuration/filters/{id} Filter getFilter

Return one Filter

Returns one Filter configuration by it's ID in the specified parent.

func NewGetFilter

func NewGetFilter(ctx *middleware.Context, handler GetFilterHandler) *GetFilter

NewGetFilter creates a new http.Handler for the get filter operation

func (*GetFilter) ServeHTTP

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

type GetFilterDefault

type GetFilterDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetFilterDefault General Error

swagger:response getFilterDefault

func NewGetFilterDefault

func NewGetFilterDefault(code int) *GetFilterDefault

NewGetFilterDefault creates GetFilterDefault with default headers values

func (*GetFilterDefault) SetPayload

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

SetPayload sets the payload to the get filter default response

func (*GetFilterDefault) SetStatusCode

func (o *GetFilterDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get filter default response

func (*GetFilterDefault) WithPayload

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

WithPayload adds the payload to the get filter default response

func (*GetFilterDefault) WithStatusCode

func (o *GetFilterDefault) WithStatusCode(code int) *GetFilterDefault

WithStatusCode adds the status to the get filter default response

func (*GetFilterDefault) WriteResponse

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

WriteResponse to the client

type GetFilterHandler

type GetFilterHandler interface {
	Handle(GetFilterParams, interface{}) middleware.Responder
}

GetFilterHandler interface for that can handle valid get filter params

type GetFilterHandlerFunc

type GetFilterHandlerFunc func(GetFilterParams, interface{}) middleware.Responder

GetFilterHandlerFunc turns a function with the right signature into a get filter handler

func (GetFilterHandlerFunc) Handle

func (fn GetFilterHandlerFunc) Handle(params GetFilterParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetFilterNotFound

type GetFilterNotFound struct {

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

GetFilterNotFound The specified resource was not found

swagger:response getFilterNotFound

func NewGetFilterNotFound

func NewGetFilterNotFound() *GetFilterNotFound

NewGetFilterNotFound creates GetFilterNotFound with default headers values

func (*GetFilterNotFound) SetPayload

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

SetPayload sets the payload to the get filter not found response

func (*GetFilterNotFound) WithPayload

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

WithPayload adds the payload to the get filter not found response

func (*GetFilterNotFound) WriteResponse

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

WriteResponse to the client

type GetFilterOK

type GetFilterOK struct {

	/*
	  In: Body
	*/
	Payload *GetFilterOKBody `json:"body,omitempty"`
}

GetFilterOK Successful operation

swagger:response getFilterOK

func NewGetFilterOK

func NewGetFilterOK() *GetFilterOK

NewGetFilterOK creates GetFilterOK with default headers values

func (*GetFilterOK) SetPayload

func (o *GetFilterOK) SetPayload(payload *GetFilterOKBody)

SetPayload sets the payload to the get filter o k response

func (*GetFilterOK) WithPayload

func (o *GetFilterOK) WithPayload(payload *GetFilterOKBody) *GetFilterOK

WithPayload adds the payload to the get filter o k response

func (*GetFilterOK) WriteResponse

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

WriteResponse to the client

type GetFilterOKBody

type GetFilterOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.Filter `json:"data,omitempty"`
}

GetFilterOKBody get filter o k body swagger:model GetFilterOKBody

func (*GetFilterOKBody) MarshalBinary

func (o *GetFilterOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetFilterOKBody) UnmarshalBinary

func (o *GetFilterOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetFilterOKBody) Validate

func (o *GetFilterOKBody) Validate(formats strfmt.Registry) error

Validate validates this get filter o k body

type GetFilterParams

type GetFilterParams struct {

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

	/*Filter ID
	  Required: true
	  In: path
	*/
	ID int64
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
}

GetFilterParams contains all the bound params for the get filter operation typically these are obtained from a http.Request

swagger:parameters getFilter

func NewGetFilterParams

func NewGetFilterParams() GetFilterParams

NewGetFilterParams creates a new GetFilterParams object no default values defined in spec.

func (*GetFilterParams) BindRequest

func (o *GetFilterParams) 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 NewGetFilterParams() beforehand.

type GetFilterURL

type GetFilterURL struct {
	ID int64

	ParentName    string
	ParentType    string
	TransactionID *string
	// contains filtered or unexported fields
}

GetFilterURL generates an URL for the get filter operation

func (*GetFilterURL) Build

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

Build a url path and query string

func (*GetFilterURL) BuildFull

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

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

func (*GetFilterURL) Must

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

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

func (*GetFilterURL) SetBasePath

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

func (o *GetFilterURL) String() string

String returns the string representation of the path with query string

func (*GetFilterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFilterURL) WithBasePath

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

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 GetFilters

type GetFilters struct {
	Context *middleware.Context
	Handler GetFiltersHandler
}

GetFilters swagger:route GET /services/haproxy/configuration/filters Filter getFilters

Return an array of all Filters

Returns all Filters that are configured in specified parent.

func NewGetFilters

func NewGetFilters(ctx *middleware.Context, handler GetFiltersHandler) *GetFilters

NewGetFilters creates a new http.Handler for the get filters operation

func (*GetFilters) ServeHTTP

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

type GetFiltersDefault

type GetFiltersDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetFiltersDefault General Error

swagger:response getFiltersDefault

func NewGetFiltersDefault

func NewGetFiltersDefault(code int) *GetFiltersDefault

NewGetFiltersDefault creates GetFiltersDefault with default headers values

func (*GetFiltersDefault) SetPayload

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

SetPayload sets the payload to the get filters default response

func (*GetFiltersDefault) SetStatusCode

func (o *GetFiltersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get filters default response

func (*GetFiltersDefault) WithPayload

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

WithPayload adds the payload to the get filters default response

func (*GetFiltersDefault) WithStatusCode

func (o *GetFiltersDefault) WithStatusCode(code int) *GetFiltersDefault

WithStatusCode adds the status to the get filters default response

func (*GetFiltersDefault) WriteResponse

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

WriteResponse to the client

type GetFiltersHandler

type GetFiltersHandler interface {
	Handle(GetFiltersParams, interface{}) middleware.Responder
}

GetFiltersHandler interface for that can handle valid get filters params

type GetFiltersHandlerFunc

type GetFiltersHandlerFunc func(GetFiltersParams, interface{}) middleware.Responder

GetFiltersHandlerFunc turns a function with the right signature into a get filters handler

func (GetFiltersHandlerFunc) Handle

func (fn GetFiltersHandlerFunc) Handle(params GetFiltersParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetFiltersOK

type GetFiltersOK struct {

	/*
	  In: Body
	*/
	Payload *GetFiltersOKBody `json:"body,omitempty"`
}

GetFiltersOK Successful operation

swagger:response getFiltersOK

func NewGetFiltersOK

func NewGetFiltersOK() *GetFiltersOK

NewGetFiltersOK creates GetFiltersOK with default headers values

func (*GetFiltersOK) SetPayload

func (o *GetFiltersOK) SetPayload(payload *GetFiltersOKBody)

SetPayload sets the payload to the get filters o k response

func (*GetFiltersOK) WithPayload

func (o *GetFiltersOK) WithPayload(payload *GetFiltersOKBody) *GetFiltersOK

WithPayload adds the payload to the get filters o k response

func (*GetFiltersOK) WriteResponse

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

WriteResponse to the client

type GetFiltersOKBody

type GetFiltersOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.Filters `json:"data"`
}

GetFiltersOKBody get filters o k body swagger:model GetFiltersOKBody

func (*GetFiltersOKBody) MarshalBinary

func (o *GetFiltersOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetFiltersOKBody) UnmarshalBinary

func (o *GetFiltersOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetFiltersOKBody) Validate

func (o *GetFiltersOKBody) Validate(formats strfmt.Registry) error

Validate validates this get filters o k body

type GetFiltersParams

type GetFiltersParams struct {

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

	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
}

GetFiltersParams contains all the bound params for the get filters operation typically these are obtained from a http.Request

swagger:parameters getFilters

func NewGetFiltersParams

func NewGetFiltersParams() GetFiltersParams

NewGetFiltersParams creates a new GetFiltersParams object no default values defined in spec.

func (*GetFiltersParams) BindRequest

func (o *GetFiltersParams) 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 NewGetFiltersParams() beforehand.

type GetFiltersURL

type GetFiltersURL struct {
	ParentName    string
	ParentType    string
	TransactionID *string
	// contains filtered or unexported fields
}

GetFiltersURL generates an URL for the get filters operation

func (*GetFiltersURL) Build

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

Build a url path and query string

func (*GetFiltersURL) BuildFull

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

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

func (*GetFiltersURL) Must

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

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

func (*GetFiltersURL) SetBasePath

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

func (o *GetFiltersURL) String() string

String returns the string representation of the path with query string

func (*GetFiltersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFiltersURL) WithBasePath

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

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 ReplaceFilter

type ReplaceFilter struct {
	Context *middleware.Context
	Handler ReplaceFilterHandler
}

ReplaceFilter swagger:route PUT /services/haproxy/configuration/filters/{id} Filter replaceFilter

Replace a Filter

Replaces a Filter configuration by it's ID in the specified parent.

func NewReplaceFilter

func NewReplaceFilter(ctx *middleware.Context, handler ReplaceFilterHandler) *ReplaceFilter

NewReplaceFilter creates a new http.Handler for the replace filter operation

func (*ReplaceFilter) ServeHTTP

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

type ReplaceFilterAccepted

type ReplaceFilterAccepted struct {
	/*ID of the requested reload

	 */
	ReloadID string `json:"Reload-ID"`

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

ReplaceFilterAccepted Configuration change accepted and reload requested

swagger:response replaceFilterAccepted

func NewReplaceFilterAccepted

func NewReplaceFilterAccepted() *ReplaceFilterAccepted

NewReplaceFilterAccepted creates ReplaceFilterAccepted with default headers values

func (*ReplaceFilterAccepted) SetPayload

func (o *ReplaceFilterAccepted) SetPayload(payload *models.Filter)

SetPayload sets the payload to the replace filter accepted response

func (*ReplaceFilterAccepted) SetReloadID

func (o *ReplaceFilterAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the replace filter accepted response

func (*ReplaceFilterAccepted) WithPayload

func (o *ReplaceFilterAccepted) WithPayload(payload *models.Filter) *ReplaceFilterAccepted

WithPayload adds the payload to the replace filter accepted response

func (*ReplaceFilterAccepted) WithReloadID

func (o *ReplaceFilterAccepted) WithReloadID(reloadID string) *ReplaceFilterAccepted

WithReloadID adds the reloadId to the replace filter accepted response

func (*ReplaceFilterAccepted) WriteResponse

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

WriteResponse to the client

type ReplaceFilterBadRequest

type ReplaceFilterBadRequest struct {

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

ReplaceFilterBadRequest Bad request

swagger:response replaceFilterBadRequest

func NewReplaceFilterBadRequest

func NewReplaceFilterBadRequest() *ReplaceFilterBadRequest

NewReplaceFilterBadRequest creates ReplaceFilterBadRequest with default headers values

func (*ReplaceFilterBadRequest) SetPayload

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

SetPayload sets the payload to the replace filter bad request response

func (*ReplaceFilterBadRequest) WithPayload

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

WithPayload adds the payload to the replace filter bad request response

func (*ReplaceFilterBadRequest) WriteResponse

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

WriteResponse to the client

type ReplaceFilterDefault

type ReplaceFilterDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ReplaceFilterDefault General Error

swagger:response replaceFilterDefault

func NewReplaceFilterDefault

func NewReplaceFilterDefault(code int) *ReplaceFilterDefault

NewReplaceFilterDefault creates ReplaceFilterDefault with default headers values

func (*ReplaceFilterDefault) SetPayload

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

SetPayload sets the payload to the replace filter default response

func (*ReplaceFilterDefault) SetStatusCode

func (o *ReplaceFilterDefault) SetStatusCode(code int)

SetStatusCode sets the status to the replace filter default response

func (*ReplaceFilterDefault) WithPayload

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

WithPayload adds the payload to the replace filter default response

func (*ReplaceFilterDefault) WithStatusCode

func (o *ReplaceFilterDefault) WithStatusCode(code int) *ReplaceFilterDefault

WithStatusCode adds the status to the replace filter default response

func (*ReplaceFilterDefault) WriteResponse

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

WriteResponse to the client

type ReplaceFilterHandler

type ReplaceFilterHandler interface {
	Handle(ReplaceFilterParams, interface{}) middleware.Responder
}

ReplaceFilterHandler interface for that can handle valid replace filter params

type ReplaceFilterHandlerFunc

type ReplaceFilterHandlerFunc func(ReplaceFilterParams, interface{}) middleware.Responder

ReplaceFilterHandlerFunc turns a function with the right signature into a replace filter handler

func (ReplaceFilterHandlerFunc) Handle

func (fn ReplaceFilterHandlerFunc) Handle(params ReplaceFilterParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ReplaceFilterNotFound

type ReplaceFilterNotFound struct {

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

ReplaceFilterNotFound The specified resource was not found

swagger:response replaceFilterNotFound

func NewReplaceFilterNotFound

func NewReplaceFilterNotFound() *ReplaceFilterNotFound

NewReplaceFilterNotFound creates ReplaceFilterNotFound with default headers values

func (*ReplaceFilterNotFound) SetPayload

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

SetPayload sets the payload to the replace filter not found response

func (*ReplaceFilterNotFound) WithPayload

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

WithPayload adds the payload to the replace filter not found response

func (*ReplaceFilterNotFound) WriteResponse

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

WriteResponse to the client

type ReplaceFilterOK

type ReplaceFilterOK struct {

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

ReplaceFilterOK Filter replaced

swagger:response replaceFilterOK

func NewReplaceFilterOK

func NewReplaceFilterOK() *ReplaceFilterOK

NewReplaceFilterOK creates ReplaceFilterOK with default headers values

func (*ReplaceFilterOK) SetPayload

func (o *ReplaceFilterOK) SetPayload(payload *models.Filter)

SetPayload sets the payload to the replace filter o k response

func (*ReplaceFilterOK) WithPayload

func (o *ReplaceFilterOK) WithPayload(payload *models.Filter) *ReplaceFilterOK

WithPayload adds the payload to the replace filter o k response

func (*ReplaceFilterOK) WriteResponse

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

WriteResponse to the client

type ReplaceFilterParams

type ReplaceFilterParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.Filter
	/*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*Filter ID
	  Required: true
	  In: path
	*/
	ID int64
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

ReplaceFilterParams contains all the bound params for the replace filter operation typically these are obtained from a http.Request

swagger:parameters replaceFilter

func NewReplaceFilterParams

func NewReplaceFilterParams() ReplaceFilterParams

NewReplaceFilterParams creates a new ReplaceFilterParams object with the default values initialized.

func (*ReplaceFilterParams) BindRequest

func (o *ReplaceFilterParams) 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 NewReplaceFilterParams() beforehand.

type ReplaceFilterURL

type ReplaceFilterURL struct {
	ID int64

	ForceReload   *bool
	ParentName    string
	ParentType    string
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

ReplaceFilterURL generates an URL for the replace filter operation

func (*ReplaceFilterURL) Build

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

Build a url path and query string

func (*ReplaceFilterURL) BuildFull

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

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

func (*ReplaceFilterURL) Must

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

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

func (*ReplaceFilterURL) SetBasePath

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

func (o *ReplaceFilterURL) String() string

String returns the string representation of the path with query string

func (*ReplaceFilterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ReplaceFilterURL) WithBasePath

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

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