rulechain

package
v0.0.0-...-6a25cbf Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DeleteRuleChainInternalServerErrorCode int = 500

DeleteRuleChainInternalServerErrorCode is the HTTP code returned for type DeleteRuleChainInternalServerError

View Source
const DeleteRuleChainNotFoundCode int = 404

DeleteRuleChainNotFoundCode is the HTTP code returned for type DeleteRuleChainNotFound

View Source
const DeleteRuleChainOKCode int = 200

DeleteRuleChainOKCode is the HTTP code returned for type DeleteRuleChainOK

View Source
const DownloadRuleChainInternalServerErrorCode int = 500

DownloadRuleChainInternalServerErrorCode is the HTTP code returned for type DownloadRuleChainInternalServerError

View Source
const DownloadRuleChainOKCode int = 200

DownloadRuleChainOKCode is the HTTP code returned for type DownloadRuleChainOK

View Source
const GetRuleChainBadRequestCode int = 400

GetRuleChainBadRequestCode is the HTTP code returned for type GetRuleChainBadRequest

View Source
const GetRuleChainMetadataNotFoundCode int = 404

GetRuleChainMetadataNotFoundCode is the HTTP code returned for type GetRuleChainMetadataNotFound

View Source
const GetRuleChainMetadataOKCode int = 200

GetRuleChainMetadataOKCode is the HTTP code returned for type GetRuleChainMetadataOK

View Source
const GetRuleChainNotFoundCode int = 404

GetRuleChainNotFoundCode is the HTTP code returned for type GetRuleChainNotFound

View Source
const GetRuleChainOKCode int = 200

GetRuleChainOKCode is the HTTP code returned for type GetRuleChainOK

View Source
const GetRuleChainsBadRequestCode int = 400

GetRuleChainsBadRequestCode is the HTTP code returned for type GetRuleChainsBadRequest

View Source
const GetRuleChainsInternalServerErrorCode int = 500

GetRuleChainsInternalServerErrorCode is the HTTP code returned for type GetRuleChainsInternalServerError

View Source
const GetRuleChainsNotFoundCode int = 404

GetRuleChainsNotFoundCode is the HTTP code returned for type GetRuleChainsNotFound

View Source
const GetRuleChainsOKCode int = 200

GetRuleChainsOKCode is the HTTP code returned for type GetRuleChainsOK

View Source
const SaveRuleChainInternalServerErrorCode int = 500

SaveRuleChainInternalServerErrorCode is the HTTP code returned for type SaveRuleChainInternalServerError

View Source
const SaveRuleChainMetadataBadRequestCode int = 400

SaveRuleChainMetadataBadRequestCode is the HTTP code returned for type SaveRuleChainMetadataBadRequest

View Source
const SaveRuleChainMetadataNotFoundCode int = 404

SaveRuleChainMetadataNotFoundCode is the HTTP code returned for type SaveRuleChainMetadataNotFound

View Source
const SaveRuleChainMetadataOKCode int = 200

SaveRuleChainMetadataOKCode is the HTTP code returned for type SaveRuleChainMetadataOK

View Source
const SaveRuleChainNotFoundCode int = 404

SaveRuleChainNotFoundCode is the HTTP code returned for type SaveRuleChainNotFound

View Source
const SaveRuleChainOKCode int = 200

SaveRuleChainOKCode is the HTTP code returned for type SaveRuleChainOK

View Source
const SetRootRuleChainInternalServerErrorCode int = 500

SetRootRuleChainInternalServerErrorCode is the HTTP code returned for type SetRootRuleChainInternalServerError

View Source
const SetRootRuleChainNotFoundCode int = 404

SetRootRuleChainNotFoundCode is the HTTP code returned for type SetRootRuleChainNotFound

View Source
const SetRootRuleChainOKCode int = 200

SetRootRuleChainOKCode is the HTTP code returned for type SetRootRuleChainOK

View Source
const UploadRuleChainInternalServerErrorCode int = 500

UploadRuleChainInternalServerErrorCode is the HTTP code returned for type UploadRuleChainInternalServerError

View Source
const UploadRuleChainOKCode int = 200

UploadRuleChainOKCode is the HTTP code returned for type UploadRuleChainOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRuleChain

type DeleteRuleChain struct {
	Context *middleware.Context
	Handler DeleteRuleChainHandler
}

DeleteRuleChain swagger:route DELETE /rulechains/{ruleChainId} Rulechain deleteRuleChain

delete rule chain

delete rule chain with Id

func NewDeleteRuleChain

func NewDeleteRuleChain(ctx *middleware.Context, handler DeleteRuleChainHandler) *DeleteRuleChain

NewDeleteRuleChain creates a new http.Handler for the delete rule chain operation

func (*DeleteRuleChain) ServeHTTP

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

type DeleteRuleChainHandler

type DeleteRuleChainHandler interface {
	Handle(DeleteRuleChainParams, *models.Principal) middleware.Responder
}

DeleteRuleChainHandler interface for that can handle valid delete rule chain params

type DeleteRuleChainHandlerFunc

type DeleteRuleChainHandlerFunc func(DeleteRuleChainParams, *models.Principal) middleware.Responder

DeleteRuleChainHandlerFunc turns a function with the right signature into a delete rule chain handler

func (DeleteRuleChainHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteRuleChainInternalServerError

type DeleteRuleChainInternalServerError struct {
}

DeleteRuleChainInternalServerError Server internal error

swagger:response deleteRuleChainInternalServerError

func NewDeleteRuleChainInternalServerError

func NewDeleteRuleChainInternalServerError() *DeleteRuleChainInternalServerError

NewDeleteRuleChainInternalServerError creates DeleteRuleChainInternalServerError with default headers values

func (*DeleteRuleChainInternalServerError) WriteResponse

WriteResponse to the client

type DeleteRuleChainNotFound

type DeleteRuleChainNotFound struct {
}

DeleteRuleChainNotFound rule chain not found

swagger:response deleteRuleChainNotFound

func NewDeleteRuleChainNotFound

func NewDeleteRuleChainNotFound() *DeleteRuleChainNotFound

NewDeleteRuleChainNotFound creates DeleteRuleChainNotFound with default headers values

func (*DeleteRuleChainNotFound) WriteResponse

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

WriteResponse to the client

type DeleteRuleChainOK

type DeleteRuleChainOK struct {
}

DeleteRuleChainOK Delete successfully

swagger:response deleteRuleChainOK

func NewDeleteRuleChainOK

func NewDeleteRuleChainOK() *DeleteRuleChainOK

NewDeleteRuleChainOK creates DeleteRuleChainOK with default headers values

func (*DeleteRuleChainOK) WriteResponse

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

WriteResponse to the client

type DeleteRuleChainParams

type DeleteRuleChainParams struct {

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

	/*rule chain id
	  Required: true
	  In: path
	*/
	RuleChainID string
}

DeleteRuleChainParams contains all the bound params for the delete rule chain operation typically these are obtained from a http.Request

swagger:parameters deleteRuleChain

func NewDeleteRuleChainParams

func NewDeleteRuleChainParams() DeleteRuleChainParams

NewDeleteRuleChainParams creates a new DeleteRuleChainParams object no default values defined in spec.

func (*DeleteRuleChainParams) BindRequest

func (o *DeleteRuleChainParams) 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 NewDeleteRuleChainParams() beforehand.

type DeleteRuleChainURL

type DeleteRuleChainURL struct {
	RuleChainID string
	// contains filtered or unexported fields
}

DeleteRuleChainURL generates an URL for the delete rule chain operation

func (*DeleteRuleChainURL) Build

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

Build a url path and query string

func (*DeleteRuleChainURL) BuildFull

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

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

func (*DeleteRuleChainURL) Must

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

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

func (*DeleteRuleChainURL) SetBasePath

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

func (o *DeleteRuleChainURL) String() string

String returns the string representation of the path with query string

func (*DeleteRuleChainURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteRuleChainURL) WithBasePath

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

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 DownloadRuleChain

type DownloadRuleChain struct {
	Context *middleware.Context
	Handler DownloadRuleChainHandler
}

DownloadRuleChain swagger:route POST /rulechains/{ruleChainId}/download Rulechain downloadRuleChain

download all infomation of one rule chain to the local pc

download all infomation of one rule chain to the local pc

func NewDownloadRuleChain

func NewDownloadRuleChain(ctx *middleware.Context, handler DownloadRuleChainHandler) *DownloadRuleChain

NewDownloadRuleChain creates a new http.Handler for the download rule chain operation

func (*DownloadRuleChain) ServeHTTP

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

type DownloadRuleChainHandler

type DownloadRuleChainHandler interface {
	Handle(DownloadRuleChainParams, *models.Principal) middleware.Responder
}

DownloadRuleChainHandler interface for that can handle valid download rule chain params

type DownloadRuleChainHandlerFunc

type DownloadRuleChainHandlerFunc func(DownloadRuleChainParams, *models.Principal) middleware.Responder

DownloadRuleChainHandlerFunc turns a function with the right signature into a download rule chain handler

func (DownloadRuleChainHandlerFunc) Handle

Handle executing the request and returning a response

type DownloadRuleChainInternalServerError

type DownloadRuleChainInternalServerError struct {
}

DownloadRuleChainInternalServerError Server internal error

swagger:response downloadRuleChainInternalServerError

func NewDownloadRuleChainInternalServerError

func NewDownloadRuleChainInternalServerError() *DownloadRuleChainInternalServerError

NewDownloadRuleChainInternalServerError creates DownloadRuleChainInternalServerError with default headers values

func (*DownloadRuleChainInternalServerError) WriteResponse

WriteResponse to the client

type DownloadRuleChainOK

type DownloadRuleChainOK struct {

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

DownloadRuleChainOK excute successfully

swagger:response downloadRuleChainOK

func NewDownloadRuleChainOK

func NewDownloadRuleChainOK() *DownloadRuleChainOK

NewDownloadRuleChainOK creates DownloadRuleChainOK with default headers values

func (*DownloadRuleChainOK) SetPayload

func (o *DownloadRuleChainOK) SetPayload(payload *DownloadRuleChainOKBody)

SetPayload sets the payload to the download rule chain o k response

func (*DownloadRuleChainOK) WithPayload

WithPayload adds the payload to the download rule chain o k response

func (*DownloadRuleChainOK) WriteResponse

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

WriteResponse to the client

type DownloadRuleChainOKBody

type DownloadRuleChainOKBody struct {

	// the result of excution
	Status bool `json:"status,omitempty"`
}

DownloadRuleChainOKBody download rule chain o k body swagger:model DownloadRuleChainOKBody

func (*DownloadRuleChainOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DownloadRuleChainOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DownloadRuleChainOKBody) Validate

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

Validate validates this download rule chain o k body

type DownloadRuleChainParams

type DownloadRuleChainParams struct {

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

	/*download rule chain id
	  Required: true
	  In: path
	*/
	RuleChainID string
}

DownloadRuleChainParams contains all the bound params for the download rule chain operation typically these are obtained from a http.Request

swagger:parameters downloadRuleChain

func NewDownloadRuleChainParams

func NewDownloadRuleChainParams() DownloadRuleChainParams

NewDownloadRuleChainParams creates a new DownloadRuleChainParams object no default values defined in spec.

func (*DownloadRuleChainParams) BindRequest

func (o *DownloadRuleChainParams) 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 NewDownloadRuleChainParams() beforehand.

type DownloadRuleChainURL

type DownloadRuleChainURL struct {
	RuleChainID string
	// contains filtered or unexported fields
}

DownloadRuleChainURL generates an URL for the download rule chain operation

func (*DownloadRuleChainURL) Build

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

Build a url path and query string

func (*DownloadRuleChainURL) BuildFull

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

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

func (*DownloadRuleChainURL) Must

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

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

func (*DownloadRuleChainURL) SetBasePath

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

func (o *DownloadRuleChainURL) String() string

String returns the string representation of the path with query string

func (*DownloadRuleChainURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DownloadRuleChainURL) WithBasePath

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

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 GetRuleChain

type GetRuleChain struct {
	Context *middleware.Context
	Handler GetRuleChainHandler
}

GetRuleChain swagger:route GET /rulechains/{ruleChainId} Rulechain getRuleChain

get rule chain by id

get rule chain by id

func NewGetRuleChain

func NewGetRuleChain(ctx *middleware.Context, handler GetRuleChainHandler) *GetRuleChain

NewGetRuleChain creates a new http.Handler for the get rule chain operation

func (*GetRuleChain) ServeHTTP

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

type GetRuleChainBadRequest

type GetRuleChainBadRequest struct {
}

GetRuleChainBadRequest Bad request

swagger:response getRuleChainBadRequest

func NewGetRuleChainBadRequest

func NewGetRuleChainBadRequest() *GetRuleChainBadRequest

NewGetRuleChainBadRequest creates GetRuleChainBadRequest with default headers values

func (*GetRuleChainBadRequest) WriteResponse

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

WriteResponse to the client

type GetRuleChainHandler

type GetRuleChainHandler interface {
	Handle(GetRuleChainParams, *models.Principal) middleware.Responder
}

GetRuleChainHandler interface for that can handle valid get rule chain params

type GetRuleChainHandlerFunc

type GetRuleChainHandlerFunc func(GetRuleChainParams, *models.Principal) middleware.Responder

GetRuleChainHandlerFunc turns a function with the right signature into a get rule chain handler

func (GetRuleChainHandlerFunc) Handle

Handle executing the request and returning a response

type GetRuleChainMetadata

type GetRuleChainMetadata struct {
	Context *middleware.Context
	Handler GetRuleChainMetadataHandler
}

GetRuleChainMetadata swagger:route GET /rulechains/{ruleChainId}/metadata Rulechain getRuleChainMetadata

get meta data of perticular rule chain

get meta data of perticular rule chain

func NewGetRuleChainMetadata

func NewGetRuleChainMetadata(ctx *middleware.Context, handler GetRuleChainMetadataHandler) *GetRuleChainMetadata

NewGetRuleChainMetadata creates a new http.Handler for the get rule chain metadata operation

func (*GetRuleChainMetadata) ServeHTTP

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

type GetRuleChainMetadataHandler

type GetRuleChainMetadataHandler interface {
	Handle(GetRuleChainMetadataParams, *models.Principal) middleware.Responder
}

GetRuleChainMetadataHandler interface for that can handle valid get rule chain metadata params

type GetRuleChainMetadataHandlerFunc

type GetRuleChainMetadataHandlerFunc func(GetRuleChainMetadataParams, *models.Principal) middleware.Responder

GetRuleChainMetadataHandlerFunc turns a function with the right signature into a get rule chain metadata handler

func (GetRuleChainMetadataHandlerFunc) Handle

Handle executing the request and returning a response

type GetRuleChainMetadataNotFound

type GetRuleChainMetadataNotFound struct {
}

GetRuleChainMetadataNotFound rule chain metadata not found

swagger:response getRuleChainMetadataNotFound

func NewGetRuleChainMetadataNotFound

func NewGetRuleChainMetadataNotFound() *GetRuleChainMetadataNotFound

NewGetRuleChainMetadataNotFound creates GetRuleChainMetadataNotFound with default headers values

func (*GetRuleChainMetadataNotFound) WriteResponse

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

WriteResponse to the client

type GetRuleChainMetadataOK

type GetRuleChainMetadataOK struct {

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

GetRuleChainMetadataOK execute successfully

swagger:response getRuleChainMetadataOK

func NewGetRuleChainMetadataOK

func NewGetRuleChainMetadataOK() *GetRuleChainMetadataOK

NewGetRuleChainMetadataOK creates GetRuleChainMetadataOK with default headers values

func (*GetRuleChainMetadataOK) SetPayload

func (o *GetRuleChainMetadataOK) SetPayload(payload string)

SetPayload sets the payload to the get rule chain metadata o k response

func (*GetRuleChainMetadataOK) WithPayload

func (o *GetRuleChainMetadataOK) WithPayload(payload string) *GetRuleChainMetadataOK

WithPayload adds the payload to the get rule chain metadata o k response

func (*GetRuleChainMetadataOK) WriteResponse

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

WriteResponse to the client

type GetRuleChainMetadataParams

type GetRuleChainMetadataParams struct {

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

	/*rule chain id
	  Required: true
	  In: path
	*/
	RuleChainID string
}

GetRuleChainMetadataParams contains all the bound params for the get rule chain metadata operation typically these are obtained from a http.Request

swagger:parameters getRuleChainMetadata

func NewGetRuleChainMetadataParams

func NewGetRuleChainMetadataParams() GetRuleChainMetadataParams

NewGetRuleChainMetadataParams creates a new GetRuleChainMetadataParams object no default values defined in spec.

func (*GetRuleChainMetadataParams) BindRequest

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 NewGetRuleChainMetadataParams() beforehand.

type GetRuleChainMetadataURL

type GetRuleChainMetadataURL struct {
	RuleChainID string
	// contains filtered or unexported fields
}

GetRuleChainMetadataURL generates an URL for the get rule chain metadata operation

func (*GetRuleChainMetadataURL) Build

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

Build a url path and query string

func (*GetRuleChainMetadataURL) BuildFull

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

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

func (*GetRuleChainMetadataURL) Must

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

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

func (*GetRuleChainMetadataURL) SetBasePath

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

func (o *GetRuleChainMetadataURL) String() string

String returns the string representation of the path with query string

func (*GetRuleChainMetadataURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRuleChainMetadataURL) WithBasePath

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 GetRuleChainNotFound

type GetRuleChainNotFound struct {
}

GetRuleChainNotFound rule chain not found

swagger:response getRuleChainNotFound

func NewGetRuleChainNotFound

func NewGetRuleChainNotFound() *GetRuleChainNotFound

NewGetRuleChainNotFound creates GetRuleChainNotFound with default headers values

func (*GetRuleChainNotFound) WriteResponse

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

WriteResponse to the client

type GetRuleChainOK

type GetRuleChainOK struct {

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

GetRuleChainOK successfully operation

swagger:response getRuleChainOK

func NewGetRuleChainOK

func NewGetRuleChainOK() *GetRuleChainOK

NewGetRuleChainOK creates GetRuleChainOK with default headers values

func (*GetRuleChainOK) SetPayload

func (o *GetRuleChainOK) SetPayload(payload *models.RuleChain)

SetPayload sets the payload to the get rule chain o k response

func (*GetRuleChainOK) WithPayload

func (o *GetRuleChainOK) WithPayload(payload *models.RuleChain) *GetRuleChainOK

WithPayload adds the payload to the get rule chain o k response

func (*GetRuleChainOK) WriteResponse

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

WriteResponse to the client

type GetRuleChainParams

type GetRuleChainParams struct {

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

	/*rule chain id
	  Required: true
	  In: path
	*/
	RuleChainID string
}

GetRuleChainParams contains all the bound params for the get rule chain operation typically these are obtained from a http.Request

swagger:parameters getRuleChain

func NewGetRuleChainParams

func NewGetRuleChainParams() GetRuleChainParams

NewGetRuleChainParams creates a new GetRuleChainParams object no default values defined in spec.

func (*GetRuleChainParams) BindRequest

func (o *GetRuleChainParams) 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 NewGetRuleChainParams() beforehand.

type GetRuleChainURL

type GetRuleChainURL struct {
	RuleChainID string
	// contains filtered or unexported fields
}

GetRuleChainURL generates an URL for the get rule chain operation

func (*GetRuleChainURL) Build

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

Build a url path and query string

func (*GetRuleChainURL) BuildFull

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

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

func (*GetRuleChainURL) Must

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

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

func (*GetRuleChainURL) SetBasePath

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

func (o *GetRuleChainURL) String() string

String returns the string representation of the path with query string

func (*GetRuleChainURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRuleChainURL) WithBasePath

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

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 GetRuleChains

type GetRuleChains struct {
	Context *middleware.Context
	Handler GetRuleChainsHandler
}

GetRuleChains swagger:route GET /rulechains Rulechain getRuleChains

get all of rule chains

get all of rule chains

func NewGetRuleChains

func NewGetRuleChains(ctx *middleware.Context, handler GetRuleChainsHandler) *GetRuleChains

NewGetRuleChains creates a new http.Handler for the get rule chains operation

func (*GetRuleChains) ServeHTTP

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

type GetRuleChainsBadRequest

type GetRuleChainsBadRequest struct {
}

GetRuleChainsBadRequest Bad request

swagger:response getRuleChainsBadRequest

func NewGetRuleChainsBadRequest

func NewGetRuleChainsBadRequest() *GetRuleChainsBadRequest

NewGetRuleChainsBadRequest creates GetRuleChainsBadRequest with default headers values

func (*GetRuleChainsBadRequest) WriteResponse

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

WriteResponse to the client

type GetRuleChainsHandler

type GetRuleChainsHandler interface {
	Handle(GetRuleChainsParams, *models.Principal) middleware.Responder
}

GetRuleChainsHandler interface for that can handle valid get rule chains params

type GetRuleChainsHandlerFunc

type GetRuleChainsHandlerFunc func(GetRuleChainsParams, *models.Principal) middleware.Responder

GetRuleChainsHandlerFunc turns a function with the right signature into a get rule chains handler

func (GetRuleChainsHandlerFunc) Handle

Handle executing the request and returning a response

type GetRuleChainsInternalServerError

type GetRuleChainsInternalServerError struct {
}

GetRuleChainsInternalServerError Internal error

swagger:response getRuleChainsInternalServerError

func NewGetRuleChainsInternalServerError

func NewGetRuleChainsInternalServerError() *GetRuleChainsInternalServerError

NewGetRuleChainsInternalServerError creates GetRuleChainsInternalServerError with default headers values

func (*GetRuleChainsInternalServerError) WriteResponse

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

WriteResponse to the client

type GetRuleChainsNotFound

type GetRuleChainsNotFound struct {
}

GetRuleChainsNotFound Not found

swagger:response getRuleChainsNotFound

func NewGetRuleChainsNotFound

func NewGetRuleChainsNotFound() *GetRuleChainsNotFound

NewGetRuleChainsNotFound creates GetRuleChainsNotFound with default headers values

func (*GetRuleChainsNotFound) WriteResponse

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

WriteResponse to the client

type GetRuleChainsOK

type GetRuleChainsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.RuleChain `json:"body,omitempty"`
}

GetRuleChainsOK successfully operation

swagger:response getRuleChainsOK

func NewGetRuleChainsOK

func NewGetRuleChainsOK() *GetRuleChainsOK

NewGetRuleChainsOK creates GetRuleChainsOK with default headers values

func (*GetRuleChainsOK) SetPayload

func (o *GetRuleChainsOK) SetPayload(payload []*models.RuleChain)

SetPayload sets the payload to the get rule chains o k response

func (*GetRuleChainsOK) WithPayload

func (o *GetRuleChainsOK) WithPayload(payload []*models.RuleChain) *GetRuleChainsOK

WithPayload adds the payload to the get rule chains o k response

func (*GetRuleChainsOK) WriteResponse

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

WriteResponse to the client

type GetRuleChainsParams

type GetRuleChainsParams struct {

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

	/*Page number
	  In: query
	*/
	PageNumber *int64
	/*Number of persons returned
	  In: query
	*/
	PageSize *int64
	/*query object for.You can get query key from rulechain object. This is a json string. For example:
	  * 模糊检索name,description,category
	  {"name": "product"}
	  {"description": "abcd"}
	  {"category": "abcd"}
	  * 多条件模糊检索(and)
	  {"name": "product", "description": "abcd"}
	  * (deprecated) 模糊检索created_at,updated_at
	  {"created_at": "2018-10-11T09:13:26Z"}
	  {"updated_at": "2018-10-11T09:13:26Z"}
	  * 精确检索user_id,id,template_id,key,secret,status,data_format
	  {"user_id": "bevh8dkvr53g2n6u9l70"}
	  {"id": "bevh8dkvr53g2n6u9l70"}
	  {"template_id": "bevh8dkvr53g2n6u9l70"}
	  {"key": "bevh8dkvr53g2n6u9l70"}
	  {"secret": "bevh8dkvr53g2n6u9l70"}
	  {"data_format": "JSON"}
	  {"data_format": "XML"}

	  In: query
	*/
	Q *string
}

GetRuleChainsParams contains all the bound params for the get rule chains operation typically these are obtained from a http.Request

swagger:parameters getRuleChains

func NewGetRuleChainsParams

func NewGetRuleChainsParams() GetRuleChainsParams

NewGetRuleChainsParams creates a new GetRuleChainsParams object no default values defined in spec.

func (*GetRuleChainsParams) BindRequest

func (o *GetRuleChainsParams) 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 NewGetRuleChainsParams() beforehand.

type GetRuleChainsURL

type GetRuleChainsURL struct {
	PageNumber *int64
	PageSize   *int64
	Q          *string
	// contains filtered or unexported fields
}

GetRuleChainsURL generates an URL for the get rule chains operation

func (*GetRuleChainsURL) Build

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

Build a url path and query string

func (*GetRuleChainsURL) BuildFull

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

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

func (*GetRuleChainsURL) Must

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

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

func (*GetRuleChainsURL) SetBasePath

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

func (o *GetRuleChainsURL) String() string

String returns the string representation of the path with query string

func (*GetRuleChainsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRuleChainsURL) WithBasePath

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

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 SaveRuleChain

type SaveRuleChain struct {
	Context *middleware.Context
	Handler SaveRuleChainHandler
}

SaveRuleChain swagger:route POST /rulechains/{ruleChainId} Rulechain saveRuleChain

save one rule chain

save one rule chain

func NewSaveRuleChain

func NewSaveRuleChain(ctx *middleware.Context, handler SaveRuleChainHandler) *SaveRuleChain

NewSaveRuleChain creates a new http.Handler for the save rule chain operation

func (*SaveRuleChain) ServeHTTP

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

type SaveRuleChainHandler

type SaveRuleChainHandler interface {
	Handle(SaveRuleChainParams, *models.Principal) middleware.Responder
}

SaveRuleChainHandler interface for that can handle valid save rule chain params

type SaveRuleChainHandlerFunc

type SaveRuleChainHandlerFunc func(SaveRuleChainParams, *models.Principal) middleware.Responder

SaveRuleChainHandlerFunc turns a function with the right signature into a save rule chain handler

func (SaveRuleChainHandlerFunc) Handle

Handle executing the request and returning a response

type SaveRuleChainInternalServerError

type SaveRuleChainInternalServerError struct {
}

SaveRuleChainInternalServerError Server internal error

swagger:response saveRuleChainInternalServerError

func NewSaveRuleChainInternalServerError

func NewSaveRuleChainInternalServerError() *SaveRuleChainInternalServerError

NewSaveRuleChainInternalServerError creates SaveRuleChainInternalServerError with default headers values

func (*SaveRuleChainInternalServerError) WriteResponse

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

WriteResponse to the client

type SaveRuleChainMetadata

type SaveRuleChainMetadata struct {
	Context *middleware.Context
	Handler SaveRuleChainMetadataHandler
}

SaveRuleChainMetadata swagger:route POST /rulechains/{ruleChainId}/metadata Rulechain saveRuleChainMetadata

save meta data

save meta data

func NewSaveRuleChainMetadata

func NewSaveRuleChainMetadata(ctx *middleware.Context, handler SaveRuleChainMetadataHandler) *SaveRuleChainMetadata

NewSaveRuleChainMetadata creates a new http.Handler for the save rule chain metadata operation

func (*SaveRuleChainMetadata) ServeHTTP

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

type SaveRuleChainMetadataBadRequest

type SaveRuleChainMetadataBadRequest struct {
}

SaveRuleChainMetadataBadRequest Invalid metadata

swagger:response saveRuleChainMetadataBadRequest

func NewSaveRuleChainMetadataBadRequest

func NewSaveRuleChainMetadataBadRequest() *SaveRuleChainMetadataBadRequest

NewSaveRuleChainMetadataBadRequest creates SaveRuleChainMetadataBadRequest with default headers values

func (*SaveRuleChainMetadataBadRequest) WriteResponse

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

WriteResponse to the client

type SaveRuleChainMetadataHandler

type SaveRuleChainMetadataHandler interface {
	Handle(SaveRuleChainMetadataParams, *models.Principal) middleware.Responder
}

SaveRuleChainMetadataHandler interface for that can handle valid save rule chain metadata params

type SaveRuleChainMetadataHandlerFunc

type SaveRuleChainMetadataHandlerFunc func(SaveRuleChainMetadataParams, *models.Principal) middleware.Responder

SaveRuleChainMetadataHandlerFunc turns a function with the right signature into a save rule chain metadata handler

func (SaveRuleChainMetadataHandlerFunc) Handle

Handle executing the request and returning a response

type SaveRuleChainMetadataNotFound

type SaveRuleChainMetadataNotFound struct {
}

SaveRuleChainMetadataNotFound rule chain not found

swagger:response saveRuleChainMetadataNotFound

func NewSaveRuleChainMetadataNotFound

func NewSaveRuleChainMetadataNotFound() *SaveRuleChainMetadataNotFound

NewSaveRuleChainMetadataNotFound creates SaveRuleChainMetadataNotFound with default headers values

func (*SaveRuleChainMetadataNotFound) WriteResponse

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

WriteResponse to the client

type SaveRuleChainMetadataOK

type SaveRuleChainMetadataOK struct {
}

SaveRuleChainMetadataOK excute successfully

swagger:response saveRuleChainMetadataOK

func NewSaveRuleChainMetadataOK

func NewSaveRuleChainMetadataOK() *SaveRuleChainMetadataOK

NewSaveRuleChainMetadataOK creates SaveRuleChainMetadataOK with default headers values

func (*SaveRuleChainMetadataOK) WriteResponse

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

WriteResponse to the client

type SaveRuleChainMetadataParams

type SaveRuleChainMetadataParams struct {

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

	/*meta data
	  In: body
	*/
	Metadata string
	/*rule chain identifier
	  Required: true
	  In: path
	*/
	RuleChainID string
}

SaveRuleChainMetadataParams contains all the bound params for the save rule chain metadata operation typically these are obtained from a http.Request

swagger:parameters saveRuleChainMetadata

func NewSaveRuleChainMetadataParams

func NewSaveRuleChainMetadataParams() SaveRuleChainMetadataParams

NewSaveRuleChainMetadataParams creates a new SaveRuleChainMetadataParams object no default values defined in spec.

func (*SaveRuleChainMetadataParams) BindRequest

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 NewSaveRuleChainMetadataParams() beforehand.

type SaveRuleChainMetadataURL

type SaveRuleChainMetadataURL struct {
	RuleChainID string
	// contains filtered or unexported fields
}

SaveRuleChainMetadataURL generates an URL for the save rule chain metadata operation

func (*SaveRuleChainMetadataURL) Build

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

Build a url path and query string

func (*SaveRuleChainMetadataURL) BuildFull

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

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

func (*SaveRuleChainMetadataURL) Must

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

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

func (*SaveRuleChainMetadataURL) SetBasePath

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

func (o *SaveRuleChainMetadataURL) String() string

String returns the string representation of the path with query string

func (*SaveRuleChainMetadataURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SaveRuleChainMetadataURL) WithBasePath

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 SaveRuleChainNotFound

type SaveRuleChainNotFound struct {
}

SaveRuleChainNotFound Rule chain not found

swagger:response saveRuleChainNotFound

func NewSaveRuleChainNotFound

func NewSaveRuleChainNotFound() *SaveRuleChainNotFound

NewSaveRuleChainNotFound creates SaveRuleChainNotFound with default headers values

func (*SaveRuleChainNotFound) WriteResponse

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

WriteResponse to the client

type SaveRuleChainOK

type SaveRuleChainOK struct {
}

SaveRuleChainOK Successfully operation

swagger:response saveRuleChainOK

func NewSaveRuleChainOK

func NewSaveRuleChainOK() *SaveRuleChainOK

NewSaveRuleChainOK creates SaveRuleChainOK with default headers values

func (*SaveRuleChainOK) WriteResponse

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

WriteResponse to the client

type SaveRuleChainParams

type SaveRuleChainParams struct {

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

	/*updated rule chain
	  Required: true
	  In: body
	*/
	RuleChain *models.RuleChain
	/*rule chain
	  Required: true
	  In: path
	*/
	RuleChainID string
}

SaveRuleChainParams contains all the bound params for the save rule chain operation typically these are obtained from a http.Request

swagger:parameters saveRuleChain

func NewSaveRuleChainParams

func NewSaveRuleChainParams() SaveRuleChainParams

NewSaveRuleChainParams creates a new SaveRuleChainParams object no default values defined in spec.

func (*SaveRuleChainParams) BindRequest

func (o *SaveRuleChainParams) 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 NewSaveRuleChainParams() beforehand.

type SaveRuleChainURL

type SaveRuleChainURL struct {
	RuleChainID string
	// contains filtered or unexported fields
}

SaveRuleChainURL generates an URL for the save rule chain operation

func (*SaveRuleChainURL) Build

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

Build a url path and query string

func (*SaveRuleChainURL) BuildFull

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

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

func (*SaveRuleChainURL) Must

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

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

func (*SaveRuleChainURL) SetBasePath

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

func (o *SaveRuleChainURL) String() string

String returns the string representation of the path with query string

func (*SaveRuleChainURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SaveRuleChainURL) WithBasePath

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

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 SetRootRuleChain

type SetRootRuleChain struct {
	Context *middleware.Context
	Handler SetRootRuleChainHandler
}

SetRootRuleChain swagger:route POST /rulechains/{ruleChainId}/root Rulechain setRootRuleChain

set root id

set root id

func NewSetRootRuleChain

func NewSetRootRuleChain(ctx *middleware.Context, handler SetRootRuleChainHandler) *SetRootRuleChain

NewSetRootRuleChain creates a new http.Handler for the set root rule chain operation

func (*SetRootRuleChain) ServeHTTP

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

type SetRootRuleChainHandler

type SetRootRuleChainHandler interface {
	Handle(SetRootRuleChainParams, *models.Principal) middleware.Responder
}

SetRootRuleChainHandler interface for that can handle valid set root rule chain params

type SetRootRuleChainHandlerFunc

type SetRootRuleChainHandlerFunc func(SetRootRuleChainParams, *models.Principal) middleware.Responder

SetRootRuleChainHandlerFunc turns a function with the right signature into a set root rule chain handler

func (SetRootRuleChainHandlerFunc) Handle

Handle executing the request and returning a response

type SetRootRuleChainInternalServerError

type SetRootRuleChainInternalServerError struct {
}

SetRootRuleChainInternalServerError server internal error

swagger:response setRootRuleChainInternalServerError

func NewSetRootRuleChainInternalServerError

func NewSetRootRuleChainInternalServerError() *SetRootRuleChainInternalServerError

NewSetRootRuleChainInternalServerError creates SetRootRuleChainInternalServerError with default headers values

func (*SetRootRuleChainInternalServerError) WriteResponse

WriteResponse to the client

type SetRootRuleChainNotFound

type SetRootRuleChainNotFound struct {
}

SetRootRuleChainNotFound rule chain not found

swagger:response setRootRuleChainNotFound

func NewSetRootRuleChainNotFound

func NewSetRootRuleChainNotFound() *SetRootRuleChainNotFound

NewSetRootRuleChainNotFound creates SetRootRuleChainNotFound with default headers values

func (*SetRootRuleChainNotFound) WriteResponse

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

WriteResponse to the client

type SetRootRuleChainOK

type SetRootRuleChainOK struct {
}

SetRootRuleChainOK set successfully

swagger:response setRootRuleChainOK

func NewSetRootRuleChainOK

func NewSetRootRuleChainOK() *SetRootRuleChainOK

NewSetRootRuleChainOK creates SetRootRuleChainOK with default headers values

func (*SetRootRuleChainOK) WriteResponse

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

WriteResponse to the client

type SetRootRuleChainParams

type SetRootRuleChainParams struct {

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

	/*rule chain id
	  Required: true
	  In: path
	*/
	RuleChainID string
}

SetRootRuleChainParams contains all the bound params for the set root rule chain operation typically these are obtained from a http.Request

swagger:parameters setRootRuleChain

func NewSetRootRuleChainParams

func NewSetRootRuleChainParams() SetRootRuleChainParams

NewSetRootRuleChainParams creates a new SetRootRuleChainParams object no default values defined in spec.

func (*SetRootRuleChainParams) BindRequest

func (o *SetRootRuleChainParams) 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 NewSetRootRuleChainParams() beforehand.

type SetRootRuleChainURL

type SetRootRuleChainURL struct {
	RuleChainID string
	// contains filtered or unexported fields
}

SetRootRuleChainURL generates an URL for the set root rule chain operation

func (*SetRootRuleChainURL) Build

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

Build a url path and query string

func (*SetRootRuleChainURL) BuildFull

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

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

func (*SetRootRuleChainURL) Must

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

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

func (*SetRootRuleChainURL) SetBasePath

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

func (o *SetRootRuleChainURL) String() string

String returns the string representation of the path with query string

func (*SetRootRuleChainURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SetRootRuleChainURL) WithBasePath

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

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 UploadRuleChain

type UploadRuleChain struct {
	Context *middleware.Context
	Handler UploadRuleChainHandler
}

UploadRuleChain swagger:route POST /rulechains/{ruleChainId}/upload Rulechain uploadRuleChain

upload all infomation of one rule chain to the system

upload all infomation of one rule chain to the system

func NewUploadRuleChain

func NewUploadRuleChain(ctx *middleware.Context, handler UploadRuleChainHandler) *UploadRuleChain

NewUploadRuleChain creates a new http.Handler for the upload rule chain operation

func (*UploadRuleChain) ServeHTTP

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

type UploadRuleChainHandler

type UploadRuleChainHandler interface {
	Handle(UploadRuleChainParams, *models.Principal) middleware.Responder
}

UploadRuleChainHandler interface for that can handle valid upload rule chain params

type UploadRuleChainHandlerFunc

type UploadRuleChainHandlerFunc func(UploadRuleChainParams, *models.Principal) middleware.Responder

UploadRuleChainHandlerFunc turns a function with the right signature into a upload rule chain handler

func (UploadRuleChainHandlerFunc) Handle

Handle executing the request and returning a response

type UploadRuleChainInternalServerError

type UploadRuleChainInternalServerError struct {
}

UploadRuleChainInternalServerError Server internal error

swagger:response uploadRuleChainInternalServerError

func NewUploadRuleChainInternalServerError

func NewUploadRuleChainInternalServerError() *UploadRuleChainInternalServerError

NewUploadRuleChainInternalServerError creates UploadRuleChainInternalServerError with default headers values

func (*UploadRuleChainInternalServerError) WriteResponse

WriteResponse to the client

type UploadRuleChainOK

type UploadRuleChainOK struct {

	/*
	  In: Body
	*/
	Payload []*models.RuleChain `json:"body,omitempty"`
}

UploadRuleChainOK excute successfully

swagger:response uploadRuleChainOK

func NewUploadRuleChainOK

func NewUploadRuleChainOK() *UploadRuleChainOK

NewUploadRuleChainOK creates UploadRuleChainOK with default headers values

func (*UploadRuleChainOK) SetPayload

func (o *UploadRuleChainOK) SetPayload(payload []*models.RuleChain)

SetPayload sets the payload to the upload rule chain o k response

func (*UploadRuleChainOK) WithPayload

func (o *UploadRuleChainOK) WithPayload(payload []*models.RuleChain) *UploadRuleChainOK

WithPayload adds the payload to the upload rule chain o k response

func (*UploadRuleChainOK) WriteResponse

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

WriteResponse to the client

type UploadRuleChainParams

type UploadRuleChainParams struct {

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

	/*upload address
	  Required: true
	  In: formData
	*/
	Path string
	/*rule chain identifier
	  Required: true
	  In: path
	*/
	RuleChainID string
}

UploadRuleChainParams contains all the bound params for the upload rule chain operation typically these are obtained from a http.Request

swagger:parameters uploadRuleChain

func NewUploadRuleChainParams

func NewUploadRuleChainParams() UploadRuleChainParams

NewUploadRuleChainParams creates a new UploadRuleChainParams object no default values defined in spec.

func (*UploadRuleChainParams) BindRequest

func (o *UploadRuleChainParams) 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 NewUploadRuleChainParams() beforehand.

type UploadRuleChainURL

type UploadRuleChainURL struct {
	RuleChainID string
	// contains filtered or unexported fields
}

UploadRuleChainURL generates an URL for the upload rule chain operation

func (*UploadRuleChainURL) Build

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

Build a url path and query string

func (*UploadRuleChainURL) BuildFull

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

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

func (*UploadRuleChainURL) Must

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

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

func (*UploadRuleChainURL) SetBasePath

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

func (o *UploadRuleChainURL) String() string

String returns the string representation of the path with query string

func (*UploadRuleChainURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UploadRuleChainURL) WithBasePath

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

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