Documentation
¶
Index ¶
- Constants
- type AddUserPermission
- type AddUserPermissionDefault
- func (o *AddUserPermissionDefault) SetPayload(payload *models.Error)
- func (o *AddUserPermissionDefault) SetStatusCode(code int)
- func (o *AddUserPermissionDefault) WithPayload(payload *models.Error) *AddUserPermissionDefault
- func (o *AddUserPermissionDefault) WithStatusCode(code int) *AddUserPermissionDefault
- func (o *AddUserPermissionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddUserPermissionHandler
- type AddUserPermissionHandlerFunc
- type AddUserPermissionOK
- type AddUserPermissionParams
- type AddUserPermissionURL
- func (o *AddUserPermissionURL) Build() (*url.URL, error)
- func (o *AddUserPermissionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddUserPermissionURL) Must(u *url.URL, err error) *url.URL
- func (o *AddUserPermissionURL) SetBasePath(bp string)
- func (o *AddUserPermissionURL) String() string
- func (o *AddUserPermissionURL) StringFull(scheme, host string) string
- func (o *AddUserPermissionURL) WithBasePath(bp string) *AddUserPermissionURL
- type AddUserPermissionUnauthorized
- func (o *AddUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
- func (o *AddUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *AddUserPermissionUnauthorized
- func (o *AddUserPermissionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteUserPermission
- type DeleteUserPermissionDefault
- func (o *DeleteUserPermissionDefault) SetPayload(payload *models.Error)
- func (o *DeleteUserPermissionDefault) SetStatusCode(code int)
- func (o *DeleteUserPermissionDefault) WithPayload(payload *models.Error) *DeleteUserPermissionDefault
- func (o *DeleteUserPermissionDefault) WithStatusCode(code int) *DeleteUserPermissionDefault
- func (o *DeleteUserPermissionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteUserPermissionHandler
- type DeleteUserPermissionHandlerFunc
- type DeleteUserPermissionOK
- type DeleteUserPermissionParams
- type DeleteUserPermissionURL
- func (o *DeleteUserPermissionURL) Build() (*url.URL, error)
- func (o *DeleteUserPermissionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteUserPermissionURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteUserPermissionURL) SetBasePath(bp string)
- func (o *DeleteUserPermissionURL) String() string
- func (o *DeleteUserPermissionURL) StringFull(scheme, host string) string
- func (o *DeleteUserPermissionURL) WithBasePath(bp string) *DeleteUserPermissionURL
- type DeleteUserPermissionUnauthorized
- func (o *DeleteUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
- func (o *DeleteUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *DeleteUserPermissionUnauthorized
- func (o *DeleteUserPermissionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUserPermission
- type GetUserPermissionDefault
- func (o *GetUserPermissionDefault) SetPayload(payload *models.Error)
- func (o *GetUserPermissionDefault) SetStatusCode(code int)
- func (o *GetUserPermissionDefault) WithPayload(payload *models.Error) *GetUserPermissionDefault
- func (o *GetUserPermissionDefault) WithStatusCode(code int) *GetUserPermissionDefault
- func (o *GetUserPermissionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUserPermissionHandler
- type GetUserPermissionHandlerFunc
- type GetUserPermissionOK
- type GetUserPermissionParams
- type GetUserPermissionURL
- func (o *GetUserPermissionURL) Build() (*url.URL, error)
- func (o *GetUserPermissionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserPermissionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserPermissionURL) SetBasePath(bp string)
- func (o *GetUserPermissionURL) String() string
- func (o *GetUserPermissionURL) StringFull(scheme, host string) string
- func (o *GetUserPermissionURL) WithBasePath(bp string) *GetUserPermissionURL
- type GetUserPermissionUnauthorized
- func (o *GetUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
- func (o *GetUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *GetUserPermissionUnauthorized
- func (o *GetUserPermissionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type TokenValidatPayload
- type TokenValidatPayloadDefault
- func (o *TokenValidatPayloadDefault) SetPayload(payload *models.Error)
- func (o *TokenValidatPayloadDefault) SetStatusCode(code int)
- func (o *TokenValidatPayloadDefault) WithPayload(payload *models.Error) *TokenValidatPayloadDefault
- func (o *TokenValidatPayloadDefault) WithStatusCode(code int) *TokenValidatPayloadDefault
- func (o *TokenValidatPayloadDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type TokenValidatPayloadHandler
- type TokenValidatPayloadHandlerFunc
- type TokenValidatPayloadOK
- type TokenValidatPayloadParams
- type TokenValidatPayloadURL
- func (o *TokenValidatPayloadURL) Build() (*url.URL, error)
- func (o *TokenValidatPayloadURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *TokenValidatPayloadURL) Must(u *url.URL, err error) *url.URL
- func (o *TokenValidatPayloadURL) SetBasePath(bp string)
- func (o *TokenValidatPayloadURL) String() string
- func (o *TokenValidatPayloadURL) StringFull(scheme, host string) string
- func (o *TokenValidatPayloadURL) WithBasePath(bp string) *TokenValidatPayloadURL
- type TokenValidatPayloadUnauthorized
- func (o *TokenValidatPayloadUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
- func (o *TokenValidatPayloadUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *TokenValidatPayloadUnauthorized
- func (o *TokenValidatPayloadUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type TokenValidate
- type TokenValidateDefault
- func (o *TokenValidateDefault) SetPayload(payload *models.Error)
- func (o *TokenValidateDefault) SetStatusCode(code int)
- func (o *TokenValidateDefault) WithPayload(payload *models.Error) *TokenValidateDefault
- func (o *TokenValidateDefault) WithStatusCode(code int) *TokenValidateDefault
- func (o *TokenValidateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type TokenValidateHandler
- type TokenValidateHandlerFunc
- type TokenValidateOK
- type TokenValidateParams
- type TokenValidateURL
- func (o *TokenValidateURL) Build() (*url.URL, error)
- func (o *TokenValidateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *TokenValidateURL) Must(u *url.URL, err error) *url.URL
- func (o *TokenValidateURL) SetBasePath(bp string)
- func (o *TokenValidateURL) String() string
- func (o *TokenValidateURL) StringFull(scheme, host string) string
- func (o *TokenValidateURL) WithBasePath(bp string) *TokenValidateURL
- type TokenValidateUnauthorized
- type UpdateUserPermission
- type UpdateUserPermissionDefault
- func (o *UpdateUserPermissionDefault) SetPayload(payload *models.Error)
- func (o *UpdateUserPermissionDefault) SetStatusCode(code int)
- func (o *UpdateUserPermissionDefault) WithPayload(payload *models.Error) *UpdateUserPermissionDefault
- func (o *UpdateUserPermissionDefault) WithStatusCode(code int) *UpdateUserPermissionDefault
- func (o *UpdateUserPermissionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateUserPermissionHandler
- type UpdateUserPermissionHandlerFunc
- type UpdateUserPermissionOK
- type UpdateUserPermissionParams
- type UpdateUserPermissionURL
- func (o *UpdateUserPermissionURL) Build() (*url.URL, error)
- func (o *UpdateUserPermissionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateUserPermissionURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateUserPermissionURL) SetBasePath(bp string)
- func (o *UpdateUserPermissionURL) String() string
- func (o *UpdateUserPermissionURL) StringFull(scheme, host string) string
- func (o *UpdateUserPermissionURL) WithBasePath(bp string) *UpdateUserPermissionURL
- type UpdateUserPermissionUnauthorized
- func (o *UpdateUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
- func (o *UpdateUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *UpdateUserPermissionUnauthorized
- func (o *UpdateUserPermissionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const AddUserPermissionOKCode int = 200
AddUserPermissionOKCode is the HTTP code returned for type AddUserPermissionOK
AddUserPermissionUnauthorizedCode is the HTTP code returned for type AddUserPermissionUnauthorized
const DeleteUserPermissionOKCode int = 200
DeleteUserPermissionOKCode is the HTTP code returned for type DeleteUserPermissionOK
DeleteUserPermissionUnauthorizedCode is the HTTP code returned for type DeleteUserPermissionUnauthorized
const GetUserPermissionOKCode int = 200
GetUserPermissionOKCode is the HTTP code returned for type GetUserPermissionOK
GetUserPermissionUnauthorizedCode is the HTTP code returned for type GetUserPermissionUnauthorized
const TokenValidatPayloadOKCode int = 200
TokenValidatPayloadOKCode is the HTTP code returned for type TokenValidatPayloadOK
TokenValidatPayloadUnauthorizedCode is the HTTP code returned for type TokenValidatPayloadUnauthorized
const TokenValidateOKCode int = 200
TokenValidateOKCode is the HTTP code returned for type TokenValidateOK
TokenValidateUnauthorizedCode is the HTTP code returned for type TokenValidateUnauthorized
const UpdateUserPermissionOKCode int = 200
UpdateUserPermissionOKCode is the HTTP code returned for type UpdateUserPermissionOK
UpdateUserPermissionUnauthorizedCode is the HTTP code returned for type UpdateUserPermissionUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserPermission ¶
type AddUserPermission struct { Context *middleware.Context Handler AddUserPermissionHandler }
AddUserPermission swagger:route POST /token/authorization/ token addUserPermission
Get all Permissions for a particular token .
Add a permission.
func NewAddUserPermission ¶
func NewAddUserPermission(ctx *middleware.Context, handler AddUserPermissionHandler) *AddUserPermission
NewAddUserPermission creates a new http.Handler for the add user permission operation
func (*AddUserPermission) ServeHTTP ¶
func (o *AddUserPermission) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddUserPermissionDefault ¶
type AddUserPermissionDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AddUserPermissionDefault Unexpected error
swagger:response addUserPermissionDefault
func NewAddUserPermissionDefault ¶
func NewAddUserPermissionDefault(code int) *AddUserPermissionDefault
NewAddUserPermissionDefault creates AddUserPermissionDefault with default headers values
func (*AddUserPermissionDefault) SetPayload ¶
func (o *AddUserPermissionDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the add user permission default response
func (*AddUserPermissionDefault) SetStatusCode ¶
func (o *AddUserPermissionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add user permission default response
func (*AddUserPermissionDefault) WithPayload ¶
func (o *AddUserPermissionDefault) WithPayload(payload *models.Error) *AddUserPermissionDefault
WithPayload adds the payload to the add user permission default response
func (*AddUserPermissionDefault) WithStatusCode ¶
func (o *AddUserPermissionDefault) WithStatusCode(code int) *AddUserPermissionDefault
WithStatusCode adds the status to the add user permission default response
func (*AddUserPermissionDefault) WriteResponse ¶
func (o *AddUserPermissionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddUserPermissionHandler ¶
type AddUserPermissionHandler interface {
Handle(AddUserPermissionParams, interface{}) middleware.Responder
}
AddUserPermissionHandler interface for that can handle valid add user permission params
type AddUserPermissionHandlerFunc ¶
type AddUserPermissionHandlerFunc func(AddUserPermissionParams, interface{}) middleware.Responder
AddUserPermissionHandlerFunc turns a function with the right signature into a add user permission handler
func (AddUserPermissionHandlerFunc) Handle ¶
func (fn AddUserPermissionHandlerFunc) Handle(params AddUserPermissionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AddUserPermissionOK ¶
type AddUserPermissionOK struct { }
AddUserPermissionOK successful operation
swagger:response addUserPermissionOK
func NewAddUserPermissionOK ¶
func NewAddUserPermissionOK() *AddUserPermissionOK
NewAddUserPermissionOK creates AddUserPermissionOK with default headers values
func (*AddUserPermissionOK) WriteResponse ¶
func (o *AddUserPermissionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddUserPermissionParams ¶
type AddUserPermissionParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: header */ Authorization string /* Required: true In: body */ Permission *models.Permission }
AddUserPermissionParams contains all the bound params for the add user permission operation typically these are obtained from a http.Request
swagger:parameters addUserPermission
func NewAddUserPermissionParams ¶
func NewAddUserPermissionParams() AddUserPermissionParams
NewAddUserPermissionParams creates a new AddUserPermissionParams object with the default values initialized.
func (*AddUserPermissionParams) BindRequest ¶
func (o *AddUserPermissionParams) 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
type AddUserPermissionURL ¶
type AddUserPermissionURL struct {
// contains filtered or unexported fields
}
AddUserPermissionURL generates an URL for the add user permission operation
func (*AddUserPermissionURL) Build ¶
func (o *AddUserPermissionURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddUserPermissionURL) BuildFull ¶
func (o *AddUserPermissionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddUserPermissionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddUserPermissionURL) SetBasePath ¶
func (o *AddUserPermissionURL) 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 (*AddUserPermissionURL) String ¶
func (o *AddUserPermissionURL) String() string
String returns the string representation of the path with query string
func (*AddUserPermissionURL) StringFull ¶
func (o *AddUserPermissionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddUserPermissionURL) WithBasePath ¶
func (o *AddUserPermissionURL) WithBasePath(bp string) *AddUserPermissionURL
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 AddUserPermissionUnauthorized ¶
type AddUserPermissionUnauthorized struct { string `json:"WWW_Authenticate"` }WWWAuthenticate
AddUserPermissionUnauthorized Authentication information is missing or invalid
swagger:response addUserPermissionUnauthorized
func NewAddUserPermissionUnauthorized ¶
func NewAddUserPermissionUnauthorized() *AddUserPermissionUnauthorized
NewAddUserPermissionUnauthorized creates AddUserPermissionUnauthorized with default headers values
func (*AddUserPermissionUnauthorized) SetWWWAuthenticate ¶
func (o *AddUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
SetWWWAuthenticate sets the wWWAuthenticate to the add user permission unauthorized response
func (*AddUserPermissionUnauthorized) WithWWWAuthenticate ¶
func (o *AddUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *AddUserPermissionUnauthorized
WithWWWAuthenticate adds the wWWAuthenticate to the add user permission unauthorized response
func (*AddUserPermissionUnauthorized) WriteResponse ¶
func (o *AddUserPermissionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserPermission ¶
type DeleteUserPermission struct { Context *middleware.Context Handler DeleteUserPermissionHandler }
DeleteUserPermission swagger:route DELETE /token/authorization/ token deleteUserPermission
Get all Permissions for a particular token .
Delete a permission.
func NewDeleteUserPermission ¶
func NewDeleteUserPermission(ctx *middleware.Context, handler DeleteUserPermissionHandler) *DeleteUserPermission
NewDeleteUserPermission creates a new http.Handler for the delete user permission operation
func (*DeleteUserPermission) ServeHTTP ¶
func (o *DeleteUserPermission) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteUserPermissionDefault ¶
type DeleteUserPermissionDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteUserPermissionDefault Unexpected error
swagger:response deleteUserPermissionDefault
func NewDeleteUserPermissionDefault ¶
func NewDeleteUserPermissionDefault(code int) *DeleteUserPermissionDefault
NewDeleteUserPermissionDefault creates DeleteUserPermissionDefault with default headers values
func (*DeleteUserPermissionDefault) SetPayload ¶
func (o *DeleteUserPermissionDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete user permission default response
func (*DeleteUserPermissionDefault) SetStatusCode ¶
func (o *DeleteUserPermissionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete user permission default response
func (*DeleteUserPermissionDefault) WithPayload ¶
func (o *DeleteUserPermissionDefault) WithPayload(payload *models.Error) *DeleteUserPermissionDefault
WithPayload adds the payload to the delete user permission default response
func (*DeleteUserPermissionDefault) WithStatusCode ¶
func (o *DeleteUserPermissionDefault) WithStatusCode(code int) *DeleteUserPermissionDefault
WithStatusCode adds the status to the delete user permission default response
func (*DeleteUserPermissionDefault) WriteResponse ¶
func (o *DeleteUserPermissionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserPermissionHandler ¶
type DeleteUserPermissionHandler interface {
Handle(DeleteUserPermissionParams, interface{}) middleware.Responder
}
DeleteUserPermissionHandler interface for that can handle valid delete user permission params
type DeleteUserPermissionHandlerFunc ¶
type DeleteUserPermissionHandlerFunc func(DeleteUserPermissionParams, interface{}) middleware.Responder
DeleteUserPermissionHandlerFunc turns a function with the right signature into a delete user permission handler
func (DeleteUserPermissionHandlerFunc) Handle ¶
func (fn DeleteUserPermissionHandlerFunc) Handle(params DeleteUserPermissionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteUserPermissionOK ¶
type DeleteUserPermissionOK struct { }
DeleteUserPermissionOK successful operation
swagger:response deleteUserPermissionOK
func NewDeleteUserPermissionOK ¶
func NewDeleteUserPermissionOK() *DeleteUserPermissionOK
NewDeleteUserPermissionOK creates DeleteUserPermissionOK with default headers values
func (*DeleteUserPermissionOK) WriteResponse ¶
func (o *DeleteUserPermissionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserPermissionParams ¶
type DeleteUserPermissionParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: header */ Authorization string /* Required: true In: body */ Permission *models.Permission }
DeleteUserPermissionParams contains all the bound params for the delete user permission operation typically these are obtained from a http.Request
swagger:parameters deleteUserPermission
func NewDeleteUserPermissionParams ¶
func NewDeleteUserPermissionParams() DeleteUserPermissionParams
NewDeleteUserPermissionParams creates a new DeleteUserPermissionParams object with the default values initialized.
func (*DeleteUserPermissionParams) BindRequest ¶
func (o *DeleteUserPermissionParams) 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
type DeleteUserPermissionURL ¶
type DeleteUserPermissionURL struct {
// contains filtered or unexported fields
}
DeleteUserPermissionURL generates an URL for the delete user permission operation
func (*DeleteUserPermissionURL) Build ¶
func (o *DeleteUserPermissionURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteUserPermissionURL) BuildFull ¶
func (o *DeleteUserPermissionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteUserPermissionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteUserPermissionURL) SetBasePath ¶
func (o *DeleteUserPermissionURL) 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 (*DeleteUserPermissionURL) String ¶
func (o *DeleteUserPermissionURL) String() string
String returns the string representation of the path with query string
func (*DeleteUserPermissionURL) StringFull ¶
func (o *DeleteUserPermissionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteUserPermissionURL) WithBasePath ¶
func (o *DeleteUserPermissionURL) WithBasePath(bp string) *DeleteUserPermissionURL
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 DeleteUserPermissionUnauthorized ¶
type DeleteUserPermissionUnauthorized struct { string `json:"WWW_Authenticate"` }WWWAuthenticate
DeleteUserPermissionUnauthorized Authentication information is missing or invalid
swagger:response deleteUserPermissionUnauthorized
func NewDeleteUserPermissionUnauthorized ¶
func NewDeleteUserPermissionUnauthorized() *DeleteUserPermissionUnauthorized
NewDeleteUserPermissionUnauthorized creates DeleteUserPermissionUnauthorized with default headers values
func (*DeleteUserPermissionUnauthorized) SetWWWAuthenticate ¶
func (o *DeleteUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
SetWWWAuthenticate sets the wWWAuthenticate to the delete user permission unauthorized response
func (*DeleteUserPermissionUnauthorized) WithWWWAuthenticate ¶
func (o *DeleteUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *DeleteUserPermissionUnauthorized
WithWWWAuthenticate adds the wWWAuthenticate to the delete user permission unauthorized response
func (*DeleteUserPermissionUnauthorized) WriteResponse ¶
func (o *DeleteUserPermissionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserPermission ¶
type GetUserPermission struct { Context *middleware.Context Handler GetUserPermissionHandler }
GetUserPermission swagger:route GET /token/authorization/ token getUserPermission
Get all Permissions for a particular token .
This API is responsible to get the Authorization for a particular Token. This API trys to answer the question What Do i have access to? First it will validate it is a valid Authenticated Token and then will get from the repository what are the available actions for the user and on which resources , this authenticate {subject, resource, action}
func NewGetUserPermission ¶
func NewGetUserPermission(ctx *middleware.Context, handler GetUserPermissionHandler) *GetUserPermission
NewGetUserPermission creates a new http.Handler for the get user permission operation
func (*GetUserPermission) ServeHTTP ¶
func (o *GetUserPermission) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUserPermissionDefault ¶
type GetUserPermissionDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetUserPermissionDefault Unexpected error
swagger:response getUserPermissionDefault
func NewGetUserPermissionDefault ¶
func NewGetUserPermissionDefault(code int) *GetUserPermissionDefault
NewGetUserPermissionDefault creates GetUserPermissionDefault with default headers values
func (*GetUserPermissionDefault) SetPayload ¶
func (o *GetUserPermissionDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get user permission default response
func (*GetUserPermissionDefault) SetStatusCode ¶
func (o *GetUserPermissionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get user permission default response
func (*GetUserPermissionDefault) WithPayload ¶
func (o *GetUserPermissionDefault) WithPayload(payload *models.Error) *GetUserPermissionDefault
WithPayload adds the payload to the get user permission default response
func (*GetUserPermissionDefault) WithStatusCode ¶
func (o *GetUserPermissionDefault) WithStatusCode(code int) *GetUserPermissionDefault
WithStatusCode adds the status to the get user permission default response
func (*GetUserPermissionDefault) WriteResponse ¶
func (o *GetUserPermissionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserPermissionHandler ¶
type GetUserPermissionHandler interface {
Handle(GetUserPermissionParams, interface{}) middleware.Responder
}
GetUserPermissionHandler interface for that can handle valid get user permission params
type GetUserPermissionHandlerFunc ¶
type GetUserPermissionHandlerFunc func(GetUserPermissionParams, interface{}) middleware.Responder
GetUserPermissionHandlerFunc turns a function with the right signature into a get user permission handler
func (GetUserPermissionHandlerFunc) Handle ¶
func (fn GetUserPermissionHandlerFunc) Handle(params GetUserPermissionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetUserPermissionOK ¶
type GetUserPermissionOK struct { /* In: Body */ Payload models.GetUserPermissionOKBody `json:"body,omitempty"` }
GetUserPermissionOK successful operation
swagger:response getUserPermissionOK
func NewGetUserPermissionOK ¶
func NewGetUserPermissionOK() *GetUserPermissionOK
NewGetUserPermissionOK creates GetUserPermissionOK with default headers values
func (*GetUserPermissionOK) SetPayload ¶
func (o *GetUserPermissionOK) SetPayload(payload models.GetUserPermissionOKBody)
SetPayload sets the payload to the get user permission o k response
func (*GetUserPermissionOK) WithPayload ¶
func (o *GetUserPermissionOK) WithPayload(payload models.GetUserPermissionOKBody) *GetUserPermissionOK
WithPayload adds the payload to the get user permission o k response
func (*GetUserPermissionOK) WriteResponse ¶
func (o *GetUserPermissionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserPermissionParams ¶
type GetUserPermissionParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: header */ Authorization string }
GetUserPermissionParams contains all the bound params for the get user permission operation typically these are obtained from a http.Request
swagger:parameters getUserPermission
func NewGetUserPermissionParams ¶
func NewGetUserPermissionParams() GetUserPermissionParams
NewGetUserPermissionParams creates a new GetUserPermissionParams object with the default values initialized.
func (*GetUserPermissionParams) BindRequest ¶
func (o *GetUserPermissionParams) 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
type GetUserPermissionURL ¶
type GetUserPermissionURL struct {
// contains filtered or unexported fields
}
GetUserPermissionURL generates an URL for the get user permission operation
func (*GetUserPermissionURL) Build ¶
func (o *GetUserPermissionURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserPermissionURL) BuildFull ¶
func (o *GetUserPermissionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserPermissionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUserPermissionURL) SetBasePath ¶
func (o *GetUserPermissionURL) 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 (*GetUserPermissionURL) String ¶
func (o *GetUserPermissionURL) String() string
String returns the string representation of the path with query string
func (*GetUserPermissionURL) StringFull ¶
func (o *GetUserPermissionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserPermissionURL) WithBasePath ¶
func (o *GetUserPermissionURL) WithBasePath(bp string) *GetUserPermissionURL
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 GetUserPermissionUnauthorized ¶
type GetUserPermissionUnauthorized struct { string `json:"WWW_Authenticate"` }WWWAuthenticate
GetUserPermissionUnauthorized Authentication information is missing or invalid
swagger:response getUserPermissionUnauthorized
func NewGetUserPermissionUnauthorized ¶
func NewGetUserPermissionUnauthorized() *GetUserPermissionUnauthorized
NewGetUserPermissionUnauthorized creates GetUserPermissionUnauthorized with default headers values
func (*GetUserPermissionUnauthorized) SetWWWAuthenticate ¶
func (o *GetUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
SetWWWAuthenticate sets the wWWAuthenticate to the get user permission unauthorized response
func (*GetUserPermissionUnauthorized) WithWWWAuthenticate ¶
func (o *GetUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *GetUserPermissionUnauthorized
WithWWWAuthenticate adds the wWWAuthenticate to the get user permission unauthorized response
func (*GetUserPermissionUnauthorized) WriteResponse ¶
func (o *GetUserPermissionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenValidatPayload ¶
type TokenValidatPayload struct { Context *middleware.Context Handler TokenValidatPayloadHandler }
TokenValidatPayload swagger:route POST /token/authentication token tokenValidatPayload
Validate token in header no need for authentication ¶
Validate token
func NewTokenValidatPayload ¶
func NewTokenValidatPayload(ctx *middleware.Context, handler TokenValidatPayloadHandler) *TokenValidatPayload
NewTokenValidatPayload creates a new http.Handler for the token validat payload operation
func (*TokenValidatPayload) ServeHTTP ¶
func (o *TokenValidatPayload) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type TokenValidatPayloadDefault ¶
type TokenValidatPayloadDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
TokenValidatPayloadDefault Unexpected error
swagger:response tokenValidatPayloadDefault
func NewTokenValidatPayloadDefault ¶
func NewTokenValidatPayloadDefault(code int) *TokenValidatPayloadDefault
NewTokenValidatPayloadDefault creates TokenValidatPayloadDefault with default headers values
func (*TokenValidatPayloadDefault) SetPayload ¶
func (o *TokenValidatPayloadDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the token validat payload default response
func (*TokenValidatPayloadDefault) SetStatusCode ¶
func (o *TokenValidatPayloadDefault) SetStatusCode(code int)
SetStatusCode sets the status to the token validat payload default response
func (*TokenValidatPayloadDefault) WithPayload ¶
func (o *TokenValidatPayloadDefault) WithPayload(payload *models.Error) *TokenValidatPayloadDefault
WithPayload adds the payload to the token validat payload default response
func (*TokenValidatPayloadDefault) WithStatusCode ¶
func (o *TokenValidatPayloadDefault) WithStatusCode(code int) *TokenValidatPayloadDefault
WithStatusCode adds the status to the token validat payload default response
func (*TokenValidatPayloadDefault) WriteResponse ¶
func (o *TokenValidatPayloadDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenValidatPayloadHandler ¶
type TokenValidatPayloadHandler interface {
Handle(TokenValidatPayloadParams) middleware.Responder
}
TokenValidatPayloadHandler interface for that can handle valid token validat payload params
type TokenValidatPayloadHandlerFunc ¶
type TokenValidatPayloadHandlerFunc func(TokenValidatPayloadParams) middleware.Responder
TokenValidatPayloadHandlerFunc turns a function with the right signature into a token validat payload handler
func (TokenValidatPayloadHandlerFunc) Handle ¶
func (fn TokenValidatPayloadHandlerFunc) Handle(params TokenValidatPayloadParams) middleware.Responder
Handle executing the request and returning a response
type TokenValidatPayloadOK ¶
type TokenValidatPayloadOK struct { }
TokenValidatPayloadOK Valid Token
swagger:response tokenValidatPayloadOK
func NewTokenValidatPayloadOK ¶
func NewTokenValidatPayloadOK() *TokenValidatPayloadOK
NewTokenValidatPayloadOK creates TokenValidatPayloadOK with default headers values
func (*TokenValidatPayloadOK) WriteResponse ¶
func (o *TokenValidatPayloadOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenValidatPayloadParams ¶
type TokenValidatPayloadParams struct { // HTTP Request Object HTTPRequest *http.Request /*Login mode to create Required: true In: body */ Login *string }
TokenValidatPayloadParams contains all the bound params for the token validat payload operation typically these are obtained from a http.Request
swagger:parameters tokenValidatPayload
func NewTokenValidatPayloadParams ¶
func NewTokenValidatPayloadParams() TokenValidatPayloadParams
NewTokenValidatPayloadParams creates a new TokenValidatPayloadParams object with the default values initialized.
func (*TokenValidatPayloadParams) BindRequest ¶
func (o *TokenValidatPayloadParams) 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
type TokenValidatPayloadURL ¶
type TokenValidatPayloadURL struct {
// contains filtered or unexported fields
}
TokenValidatPayloadURL generates an URL for the token validat payload operation
func (*TokenValidatPayloadURL) Build ¶
func (o *TokenValidatPayloadURL) Build() (*url.URL, error)
Build a url path and query string
func (*TokenValidatPayloadURL) BuildFull ¶
func (o *TokenValidatPayloadURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*TokenValidatPayloadURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*TokenValidatPayloadURL) SetBasePath ¶
func (o *TokenValidatPayloadURL) 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 (*TokenValidatPayloadURL) String ¶
func (o *TokenValidatPayloadURL) String() string
String returns the string representation of the path with query string
func (*TokenValidatPayloadURL) StringFull ¶
func (o *TokenValidatPayloadURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*TokenValidatPayloadURL) WithBasePath ¶
func (o *TokenValidatPayloadURL) WithBasePath(bp string) *TokenValidatPayloadURL
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 TokenValidatPayloadUnauthorized ¶
type TokenValidatPayloadUnauthorized struct { string `json:"WWW_Authenticate"` }WWWAuthenticate
TokenValidatPayloadUnauthorized Authentication information is missing or invalid
swagger:response tokenValidatPayloadUnauthorized
func NewTokenValidatPayloadUnauthorized ¶
func NewTokenValidatPayloadUnauthorized() *TokenValidatPayloadUnauthorized
NewTokenValidatPayloadUnauthorized creates TokenValidatPayloadUnauthorized with default headers values
func (*TokenValidatPayloadUnauthorized) SetWWWAuthenticate ¶
func (o *TokenValidatPayloadUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
SetWWWAuthenticate sets the wWWAuthenticate to the token validat payload unauthorized response
func (*TokenValidatPayloadUnauthorized) WithWWWAuthenticate ¶
func (o *TokenValidatPayloadUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *TokenValidatPayloadUnauthorized
WithWWWAuthenticate adds the wWWAuthenticate to the token validat payload unauthorized response
func (*TokenValidatPayloadUnauthorized) WriteResponse ¶
func (o *TokenValidatPayloadUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenValidate ¶
type TokenValidate struct { Context *middleware.Context Handler TokenValidateHandler }
TokenValidate swagger:route GET /token/authentication token tokenValidate
Validate token in header.
Get Loging screen
func NewTokenValidate ¶
func NewTokenValidate(ctx *middleware.Context, handler TokenValidateHandler) *TokenValidate
NewTokenValidate creates a new http.Handler for the token validate operation
func (*TokenValidate) ServeHTTP ¶
func (o *TokenValidate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type TokenValidateDefault ¶
type TokenValidateDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
TokenValidateDefault Unexpected error
swagger:response tokenValidateDefault
func NewTokenValidateDefault ¶
func NewTokenValidateDefault(code int) *TokenValidateDefault
NewTokenValidateDefault creates TokenValidateDefault with default headers values
func (*TokenValidateDefault) SetPayload ¶
func (o *TokenValidateDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the token validate default response
func (*TokenValidateDefault) SetStatusCode ¶
func (o *TokenValidateDefault) SetStatusCode(code int)
SetStatusCode sets the status to the token validate default response
func (*TokenValidateDefault) WithPayload ¶
func (o *TokenValidateDefault) WithPayload(payload *models.Error) *TokenValidateDefault
WithPayload adds the payload to the token validate default response
func (*TokenValidateDefault) WithStatusCode ¶
func (o *TokenValidateDefault) WithStatusCode(code int) *TokenValidateDefault
WithStatusCode adds the status to the token validate default response
func (*TokenValidateDefault) WriteResponse ¶
func (o *TokenValidateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenValidateHandler ¶
type TokenValidateHandler interface {
Handle(TokenValidateParams) middleware.Responder
}
TokenValidateHandler interface for that can handle valid token validate params
type TokenValidateHandlerFunc ¶
type TokenValidateHandlerFunc func(TokenValidateParams) middleware.Responder
TokenValidateHandlerFunc turns a function with the right signature into a token validate handler
func (TokenValidateHandlerFunc) Handle ¶
func (fn TokenValidateHandlerFunc) Handle(params TokenValidateParams) middleware.Responder
Handle executing the request and returning a response
type TokenValidateOK ¶
type TokenValidateOK struct { }
TokenValidateOK Successful operation
swagger:response tokenValidateOK
func NewTokenValidateOK ¶
func NewTokenValidateOK() *TokenValidateOK
NewTokenValidateOK creates TokenValidateOK with default headers values
func (*TokenValidateOK) WriteResponse ¶
func (o *TokenValidateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenValidateParams ¶
type TokenValidateParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: header */ Authorization string }
TokenValidateParams contains all the bound params for the token validate operation typically these are obtained from a http.Request
swagger:parameters tokenValidate
func NewTokenValidateParams ¶
func NewTokenValidateParams() TokenValidateParams
NewTokenValidateParams creates a new TokenValidateParams object with the default values initialized.
func (*TokenValidateParams) BindRequest ¶
func (o *TokenValidateParams) 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
type TokenValidateURL ¶
type TokenValidateURL struct {
// contains filtered or unexported fields
}
TokenValidateURL generates an URL for the token validate operation
func (*TokenValidateURL) Build ¶
func (o *TokenValidateURL) Build() (*url.URL, error)
Build a url path and query string
func (*TokenValidateURL) BuildFull ¶
func (o *TokenValidateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*TokenValidateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*TokenValidateURL) SetBasePath ¶
func (o *TokenValidateURL) 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 (*TokenValidateURL) String ¶
func (o *TokenValidateURL) String() string
String returns the string representation of the path with query string
func (*TokenValidateURL) StringFull ¶
func (o *TokenValidateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*TokenValidateURL) WithBasePath ¶
func (o *TokenValidateURL) WithBasePath(bp string) *TokenValidateURL
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 TokenValidateUnauthorized ¶
type TokenValidateUnauthorized struct { string `json:"WWW_Authenticate"` }WWWAuthenticate
TokenValidateUnauthorized Authentication information is missing or invalid
swagger:response tokenValidateUnauthorized
func NewTokenValidateUnauthorized ¶
func NewTokenValidateUnauthorized() *TokenValidateUnauthorized
NewTokenValidateUnauthorized creates TokenValidateUnauthorized with default headers values
func (*TokenValidateUnauthorized) SetWWWAuthenticate ¶
func (o *TokenValidateUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
SetWWWAuthenticate sets the wWWAuthenticate to the token validate unauthorized response
func (*TokenValidateUnauthorized) WithWWWAuthenticate ¶
func (o *TokenValidateUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *TokenValidateUnauthorized
WithWWWAuthenticate adds the wWWAuthenticate to the token validate unauthorized response
func (*TokenValidateUnauthorized) WriteResponse ¶
func (o *TokenValidateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserPermission ¶
type UpdateUserPermission struct { Context *middleware.Context Handler UpdateUserPermissionHandler }
UpdateUserPermission swagger:route PUT /token/authorization/ token updateUserPermission
Get all Permissions for a particular token .
Update a permission.
func NewUpdateUserPermission ¶
func NewUpdateUserPermission(ctx *middleware.Context, handler UpdateUserPermissionHandler) *UpdateUserPermission
NewUpdateUserPermission creates a new http.Handler for the update user permission operation
func (*UpdateUserPermission) ServeHTTP ¶
func (o *UpdateUserPermission) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateUserPermissionDefault ¶
type UpdateUserPermissionDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateUserPermissionDefault Unexpected error
swagger:response updateUserPermissionDefault
func NewUpdateUserPermissionDefault ¶
func NewUpdateUserPermissionDefault(code int) *UpdateUserPermissionDefault
NewUpdateUserPermissionDefault creates UpdateUserPermissionDefault with default headers values
func (*UpdateUserPermissionDefault) SetPayload ¶
func (o *UpdateUserPermissionDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update user permission default response
func (*UpdateUserPermissionDefault) SetStatusCode ¶
func (o *UpdateUserPermissionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update user permission default response
func (*UpdateUserPermissionDefault) WithPayload ¶
func (o *UpdateUserPermissionDefault) WithPayload(payload *models.Error) *UpdateUserPermissionDefault
WithPayload adds the payload to the update user permission default response
func (*UpdateUserPermissionDefault) WithStatusCode ¶
func (o *UpdateUserPermissionDefault) WithStatusCode(code int) *UpdateUserPermissionDefault
WithStatusCode adds the status to the update user permission default response
func (*UpdateUserPermissionDefault) WriteResponse ¶
func (o *UpdateUserPermissionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserPermissionHandler ¶
type UpdateUserPermissionHandler interface {
Handle(UpdateUserPermissionParams, interface{}) middleware.Responder
}
UpdateUserPermissionHandler interface for that can handle valid update user permission params
type UpdateUserPermissionHandlerFunc ¶
type UpdateUserPermissionHandlerFunc func(UpdateUserPermissionParams, interface{}) middleware.Responder
UpdateUserPermissionHandlerFunc turns a function with the right signature into a update user permission handler
func (UpdateUserPermissionHandlerFunc) Handle ¶
func (fn UpdateUserPermissionHandlerFunc) Handle(params UpdateUserPermissionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateUserPermissionOK ¶
type UpdateUserPermissionOK struct { }
UpdateUserPermissionOK successful operation
swagger:response updateUserPermissionOK
func NewUpdateUserPermissionOK ¶
func NewUpdateUserPermissionOK() *UpdateUserPermissionOK
NewUpdateUserPermissionOK creates UpdateUserPermissionOK with default headers values
func (*UpdateUserPermissionOK) WriteResponse ¶
func (o *UpdateUserPermissionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserPermissionParams ¶
type UpdateUserPermissionParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: header */ Authorization string /* Required: true In: body */ Permission *models.Permission }
UpdateUserPermissionParams contains all the bound params for the update user permission operation typically these are obtained from a http.Request
swagger:parameters updateUserPermission
func NewUpdateUserPermissionParams ¶
func NewUpdateUserPermissionParams() UpdateUserPermissionParams
NewUpdateUserPermissionParams creates a new UpdateUserPermissionParams object with the default values initialized.
func (*UpdateUserPermissionParams) BindRequest ¶
func (o *UpdateUserPermissionParams) 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
type UpdateUserPermissionURL ¶
type UpdateUserPermissionURL struct {
// contains filtered or unexported fields
}
UpdateUserPermissionURL generates an URL for the update user permission operation
func (*UpdateUserPermissionURL) Build ¶
func (o *UpdateUserPermissionURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateUserPermissionURL) BuildFull ¶
func (o *UpdateUserPermissionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateUserPermissionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateUserPermissionURL) SetBasePath ¶
func (o *UpdateUserPermissionURL) 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 (*UpdateUserPermissionURL) String ¶
func (o *UpdateUserPermissionURL) String() string
String returns the string representation of the path with query string
func (*UpdateUserPermissionURL) StringFull ¶
func (o *UpdateUserPermissionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateUserPermissionURL) WithBasePath ¶
func (o *UpdateUserPermissionURL) WithBasePath(bp string) *UpdateUserPermissionURL
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 UpdateUserPermissionUnauthorized ¶
type UpdateUserPermissionUnauthorized struct { string `json:"WWW_Authenticate"` }WWWAuthenticate
UpdateUserPermissionUnauthorized Authentication information is missing or invalid
swagger:response updateUserPermissionUnauthorized
func NewUpdateUserPermissionUnauthorized ¶
func NewUpdateUserPermissionUnauthorized() *UpdateUserPermissionUnauthorized
NewUpdateUserPermissionUnauthorized creates UpdateUserPermissionUnauthorized with default headers values
func (*UpdateUserPermissionUnauthorized) SetWWWAuthenticate ¶
func (o *UpdateUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)
SetWWWAuthenticate sets the wWWAuthenticate to the update user permission unauthorized response
func (*UpdateUserPermissionUnauthorized) WithWWWAuthenticate ¶
func (o *UpdateUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *UpdateUserPermissionUnauthorized
WithWWWAuthenticate adds the wWWAuthenticate to the update user permission unauthorized response
func (*UpdateUserPermissionUnauthorized) WriteResponse ¶
func (o *UpdateUserPermissionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files
¶
- add_user_permission.go
- add_user_permission_parameters.go
- add_user_permission_responses.go
- add_user_permission_urlbuilder.go
- delete_user_permission.go
- delete_user_permission_parameters.go
- delete_user_permission_responses.go
- delete_user_permission_urlbuilder.go
- get_user_permission.go
- get_user_permission_parameters.go
- get_user_permission_responses.go
- get_user_permission_urlbuilder.go
- token_validat_payload.go
- token_validat_payload_parameters.go
- token_validat_payload_responses.go
- token_validat_payload_urlbuilder.go
- token_validate.go
- token_validate_parameters.go
- token_validate_responses.go
- token_validate_urlbuilder.go
- update_user_permission.go
- update_user_permission_parameters.go
- update_user_permission_responses.go
- update_user_permission_urlbuilder.go