Documentation ¶
Index ¶
- Constants
- type Validate
- type ValidateBadRequest
- type ValidateHandler
- type ValidateHandlerFunc
- type ValidateInternalServerError
- type ValidateOK
- type ValidateParams
- type ValidateURL
- func (o *ValidateURL) Build() (*url.URL, error)
- func (o *ValidateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ValidateURL) Must(u *url.URL, err error) *url.URL
- func (o *ValidateURL) SetBasePath(bp string)
- func (o *ValidateURL) String() string
- func (o *ValidateURL) StringFull(scheme, host string) string
- func (o *ValidateURL) WithBasePath(bp string) *ValidateURL
- type ValidateUnauthorized
Constants ¶
const ValidateBadRequestCode int = 400
ValidateBadRequestCode is the HTTP code returned for type ValidateBadRequest
const ValidateInternalServerErrorCode int = 500
ValidateInternalServerErrorCode is the HTTP code returned for type ValidateInternalServerError
const ValidateOKCode int = 200
ValidateOKCode is the HTTP code returned for type ValidateOK
ValidateUnauthorizedCode is the HTTP code returned for type ValidateUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validate ¶
type Validate struct { Context *middleware.Context Handler ValidateHandler }
Validate swagger:route POST /application_parameters application_parameters validate
Searches for an application parameter by name and value, returns nil if not found ¶
Searches for an application parameter by name and value, returns nil if not found
func NewValidate ¶
func NewValidate(ctx *middleware.Context, handler ValidateHandler) *Validate
NewValidate creates a new http.Handler for the validate operation
type ValidateBadRequest ¶
type ValidateBadRequest struct { }
ValidateBadRequest invalid request
swagger:response validateBadRequest
func NewValidateBadRequest ¶
func NewValidateBadRequest() *ValidateBadRequest
NewValidateBadRequest creates ValidateBadRequest with default headers values
func (*ValidateBadRequest) WriteResponse ¶
func (o *ValidateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ValidateHandler ¶
type ValidateHandler interface {
Handle(ValidateParams) middleware.Responder
}
ValidateHandler interface for that can handle valid validate params
type ValidateHandlerFunc ¶
type ValidateHandlerFunc func(ValidateParams) middleware.Responder
ValidateHandlerFunc turns a function with the right signature into a validate handler
func (ValidateHandlerFunc) Handle ¶
func (fn ValidateHandlerFunc) Handle(params ValidateParams) middleware.Responder
Handle executing the request and returning a response
type ValidateInternalServerError ¶
type ValidateInternalServerError struct { }
ValidateInternalServerError server error
swagger:response validateInternalServerError
func NewValidateInternalServerError ¶
func NewValidateInternalServerError() *ValidateInternalServerError
NewValidateInternalServerError creates ValidateInternalServerError with default headers values
func (*ValidateInternalServerError) WriteResponse ¶
func (o *ValidateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ValidateOK ¶
type ValidateOK struct { /* In: Body */ Payload *internalmessages.ApplicationParameters `json:"body,omitempty"` }
ValidateOK Application Parameters
swagger:response validateOK
func NewValidateOK ¶
func NewValidateOK() *ValidateOK
NewValidateOK creates ValidateOK with default headers values
func (*ValidateOK) SetPayload ¶
func (o *ValidateOK) SetPayload(payload *internalmessages.ApplicationParameters)
SetPayload sets the payload to the validate o k response
func (*ValidateOK) WithPayload ¶
func (o *ValidateOK) WithPayload(payload *internalmessages.ApplicationParameters) *ValidateOK
WithPayload adds the payload to the validate o k response
func (*ValidateOK) WriteResponse ¶
func (o *ValidateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ValidateParams ¶
type ValidateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *internalmessages.ApplicationParameters }
ValidateParams contains all the bound params for the validate operation typically these are obtained from a http.Request
swagger:parameters validate
func NewValidateParams ¶
func NewValidateParams() ValidateParams
NewValidateParams creates a new ValidateParams object
There are no default values defined in the spec.
func (*ValidateParams) BindRequest ¶
func (o *ValidateParams) 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 NewValidateParams() beforehand.
type ValidateURL ¶
type ValidateURL struct {
// contains filtered or unexported fields
}
ValidateURL generates an URL for the validate operation
func (*ValidateURL) Build ¶
func (o *ValidateURL) Build() (*url.URL, error)
Build a url path and query string
func (*ValidateURL) BuildFull ¶
func (o *ValidateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ValidateURL) SetBasePath ¶
func (o *ValidateURL) 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 (*ValidateURL) String ¶
func (o *ValidateURL) String() string
String returns the string representation of the path with query string
func (*ValidateURL) StringFull ¶
func (o *ValidateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ValidateURL) WithBasePath ¶
func (o *ValidateURL) WithBasePath(bp string) *ValidateURL
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 ValidateUnauthorized ¶
type ValidateUnauthorized struct { }
ValidateUnauthorized request requires user authentication
swagger:response validateUnauthorized
func NewValidateUnauthorized ¶
func NewValidateUnauthorized() *ValidateUnauthorized
NewValidateUnauthorized creates ValidateUnauthorized with default headers values
func (*ValidateUnauthorized) WriteResponse ¶
func (o *ValidateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client