Documentation ¶
Index ¶
- Constants
- type ChangeCurrentUserPassword
- type ChangeCurrentUserPasswordBadRequest
- type ChangeCurrentUserPasswordBody
- type ChangeCurrentUserPasswordHandler
- type ChangeCurrentUserPasswordHandlerFunc
- type ChangeCurrentUserPasswordNotFound
- type ChangeCurrentUserPasswordOK
- type ChangeCurrentUserPasswordParams
- type ChangeCurrentUserPasswordURL
- func (o *ChangeCurrentUserPasswordURL) Build() (*url.URL, error)
- func (o *ChangeCurrentUserPasswordURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ChangeCurrentUserPasswordURL) Must(u *url.URL, err error) *url.URL
- func (o *ChangeCurrentUserPasswordURL) SetBasePath(bp string)
- func (o *ChangeCurrentUserPasswordURL) String() string
- func (o *ChangeCurrentUserPasswordURL) StringFull(scheme, host string) string
- func (o *ChangeCurrentUserPasswordURL) WithBasePath(bp string) *ChangeCurrentUserPasswordURL
- type ChangeUserPassword
- type ChangeUserPasswordBadRequest
- type ChangeUserPasswordBody
- type ChangeUserPasswordHandler
- type ChangeUserPasswordHandlerFunc
- type ChangeUserPasswordNotFound
- type ChangeUserPasswordOK
- type ChangeUserPasswordParams
- type ChangeUserPasswordURL
- func (o *ChangeUserPasswordURL) Build() (*url.URL, error)
- func (o *ChangeUserPasswordURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ChangeUserPasswordURL) Must(u *url.URL, err error) *url.URL
- func (o *ChangeUserPasswordURL) SetBasePath(bp string)
- func (o *ChangeUserPasswordURL) String() string
- func (o *ChangeUserPasswordURL) StringFull(scheme, host string) string
- func (o *ChangeUserPasswordURL) WithBasePath(bp string) *ChangeUserPasswordURL
- type DeleteUser
- type DeleteUserBadRequest
- type DeleteUserHandler
- type DeleteUserHandlerFunc
- type DeleteUserNotFound
- type DeleteUserOK
- type DeleteUserParams
- type DeleteUserURL
- func (o *DeleteUserURL) Build() (*url.URL, error)
- func (o *DeleteUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteUserURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteUserURL) SetBasePath(bp string)
- func (o *DeleteUserURL) String() string
- func (o *DeleteUserURL) StringFull(scheme, host string) string
- func (o *DeleteUserURL) WithBasePath(bp string) *DeleteUserURL
- type GetUser
- type GetUserBadRequest
- type GetUserHandler
- type GetUserHandlerFunc
- type GetUserNotFound
- type GetUserOK
- type GetUserParams
- type GetUserURL
- func (o *GetUserURL) Build() (*url.URL, error)
- func (o *GetUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserURL) SetBasePath(bp string)
- func (o *GetUserURL) String() string
- func (o *GetUserURL) StringFull(scheme, host string) string
- func (o *GetUserURL) WithBasePath(bp string) *GetUserURL
- type LoginUser
- type LoginUserBadRequest
- type LoginUserHandler
- type LoginUserHandlerFunc
- type LoginUserOK
- type LoginUserParams
- type LoginUserURL
- func (o *LoginUserURL) Build() (*url.URL, error)
- func (o *LoginUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginUserURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginUserURL) SetBasePath(bp string)
- func (o *LoginUserURL) String() string
- func (o *LoginUserURL) StringFull(scheme, host string) string
- func (o *LoginUserURL) WithBasePath(bp string) *LoginUserURL
- type LogoutUser
- type LogoutUserDefault
- type LogoutUserHandler
- type LogoutUserHandlerFunc
- type LogoutUserParams
- type LogoutUserURL
- func (o *LogoutUserURL) Build() (*url.URL, error)
- func (o *LogoutUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LogoutUserURL) Must(u *url.URL, err error) *url.URL
- func (o *LogoutUserURL) SetBasePath(bp string)
- func (o *LogoutUserURL) String() string
- func (o *LogoutUserURL) StringFull(scheme, host string) string
- func (o *LogoutUserURL) WithBasePath(bp string) *LogoutUserURL
- type UpdateUser
- type UpdateUserBadRequest
- type UpdateUserBody
- type UpdateUserHandler
- type UpdateUserHandlerFunc
- type UpdateUserNotFound
- type UpdateUserOK
- type UpdateUserParams
- type UpdateUserURL
- func (o *UpdateUserURL) Build() (*url.URL, error)
- func (o *UpdateUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateUserURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateUserURL) SetBasePath(bp string)
- func (o *UpdateUserURL) String() string
- func (o *UpdateUserURL) StringFull(scheme, host string) string
- func (o *UpdateUserURL) WithBasePath(bp string) *UpdateUserURL
Constants ¶
const ChangeCurrentUserPasswordBadRequestCode int = 400
ChangeCurrentUserPasswordBadRequestCode is the HTTP code returned for type ChangeCurrentUserPasswordBadRequest
const ChangeCurrentUserPasswordNotFoundCode int = 404
ChangeCurrentUserPasswordNotFoundCode is the HTTP code returned for type ChangeCurrentUserPasswordNotFound
const ChangeCurrentUserPasswordOKCode int = 200
ChangeCurrentUserPasswordOKCode is the HTTP code returned for type ChangeCurrentUserPasswordOK
const ChangeUserPasswordBadRequestCode int = 400
ChangeUserPasswordBadRequestCode is the HTTP code returned for type ChangeUserPasswordBadRequest
const ChangeUserPasswordNotFoundCode int = 404
ChangeUserPasswordNotFoundCode is the HTTP code returned for type ChangeUserPasswordNotFound
const ChangeUserPasswordOKCode int = 200
ChangeUserPasswordOKCode is the HTTP code returned for type ChangeUserPasswordOK
const DeleteUserBadRequestCode int = 400
DeleteUserBadRequestCode is the HTTP code returned for type DeleteUserBadRequest
const DeleteUserNotFoundCode int = 404
DeleteUserNotFoundCode is the HTTP code returned for type DeleteUserNotFound
const DeleteUserOKCode int = 200
DeleteUserOKCode is the HTTP code returned for type DeleteUserOK
const GetUserBadRequestCode int = 400
GetUserBadRequestCode is the HTTP code returned for type GetUserBadRequest
const GetUserNotFoundCode int = 404
GetUserNotFoundCode is the HTTP code returned for type GetUserNotFound
const GetUserOKCode int = 200
GetUserOKCode is the HTTP code returned for type GetUserOK
const LoginUserBadRequestCode int = 400
LoginUserBadRequestCode is the HTTP code returned for type LoginUserBadRequest
const LoginUserOKCode int = 200
LoginUserOKCode is the HTTP code returned for type LoginUserOK
const UpdateUserBadRequestCode int = 400
UpdateUserBadRequestCode is the HTTP code returned for type UpdateUserBadRequest
const UpdateUserNotFoundCode int = 404
UpdateUserNotFoundCode is the HTTP code returned for type UpdateUserNotFound
const UpdateUserOKCode int = 200
UpdateUserOKCode is the HTTP code returned for type UpdateUserOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeCurrentUserPassword ¶
type ChangeCurrentUserPassword struct { Context *middleware.Context Handler ChangeCurrentUserPasswordHandler }
ChangeCurrentUserPassword swagger:route PATCH /users/password User changeCurrentUserPassword
change current user's password
This can only be done by the logged in user.
func NewChangeCurrentUserPassword ¶
func NewChangeCurrentUserPassword(ctx *middleware.Context, handler ChangeCurrentUserPasswordHandler) *ChangeCurrentUserPassword
NewChangeCurrentUserPassword creates a new http.Handler for the change current user password operation
func (*ChangeCurrentUserPassword) ServeHTTP ¶
func (o *ChangeCurrentUserPassword) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ChangeCurrentUserPasswordBadRequest ¶
type ChangeCurrentUserPasswordBadRequest struct { }
ChangeCurrentUserPasswordBadRequest Invalid username supplied
swagger:response changeCurrentUserPasswordBadRequest
func NewChangeCurrentUserPasswordBadRequest ¶
func NewChangeCurrentUserPasswordBadRequest() *ChangeCurrentUserPasswordBadRequest
NewChangeCurrentUserPasswordBadRequest creates ChangeCurrentUserPasswordBadRequest with default headers values
func (*ChangeCurrentUserPasswordBadRequest) WriteResponse ¶
func (o *ChangeCurrentUserPasswordBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangeCurrentUserPasswordBody ¶
type ChangeCurrentUserPasswordBody struct { // new passowrd NewPassowrd string `json:"new_passowrd,omitempty"` // old password OldPassword string `json:"old_password,omitempty"` }
ChangeCurrentUserPasswordBody change current user password body swagger:model ChangeCurrentUserPasswordBody
func (*ChangeCurrentUserPasswordBody) MarshalBinary ¶
func (o *ChangeCurrentUserPasswordBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeCurrentUserPasswordBody) UnmarshalBinary ¶
func (o *ChangeCurrentUserPasswordBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeCurrentUserPasswordHandler ¶
type ChangeCurrentUserPasswordHandler interface {
Handle(ChangeCurrentUserPasswordParams, *models.Principal) middleware.Responder
}
ChangeCurrentUserPasswordHandler interface for that can handle valid change current user password params
type ChangeCurrentUserPasswordHandlerFunc ¶
type ChangeCurrentUserPasswordHandlerFunc func(ChangeCurrentUserPasswordParams, *models.Principal) middleware.Responder
ChangeCurrentUserPasswordHandlerFunc turns a function with the right signature into a change current user password handler
func (ChangeCurrentUserPasswordHandlerFunc) Handle ¶
func (fn ChangeCurrentUserPasswordHandlerFunc) Handle(params ChangeCurrentUserPasswordParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ChangeCurrentUserPasswordNotFound ¶
type ChangeCurrentUserPasswordNotFound struct { }
ChangeCurrentUserPasswordNotFound User not found
swagger:response changeCurrentUserPasswordNotFound
func NewChangeCurrentUserPasswordNotFound ¶
func NewChangeCurrentUserPasswordNotFound() *ChangeCurrentUserPasswordNotFound
NewChangeCurrentUserPasswordNotFound creates ChangeCurrentUserPasswordNotFound with default headers values
func (*ChangeCurrentUserPasswordNotFound) WriteResponse ¶
func (o *ChangeCurrentUserPasswordNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangeCurrentUserPasswordOK ¶
type ChangeCurrentUserPasswordOK struct { }
ChangeCurrentUserPasswordOK successful operation
swagger:response changeCurrentUserPasswordOK
func NewChangeCurrentUserPasswordOK ¶
func NewChangeCurrentUserPasswordOK() *ChangeCurrentUserPasswordOK
NewChangeCurrentUserPasswordOK creates ChangeCurrentUserPasswordOK with default headers values
func (*ChangeCurrentUserPasswordOK) WriteResponse ¶
func (o *ChangeCurrentUserPasswordOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangeCurrentUserPasswordParams ¶
type ChangeCurrentUserPasswordParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Updated user password Required: true In: body */ User ChangeCurrentUserPasswordBody }
ChangeCurrentUserPasswordParams contains all the bound params for the change current user password operation typically these are obtained from a http.Request
swagger:parameters ChangeCurrentUserPassword
func NewChangeCurrentUserPasswordParams ¶
func NewChangeCurrentUserPasswordParams() ChangeCurrentUserPasswordParams
NewChangeCurrentUserPasswordParams creates a new ChangeCurrentUserPasswordParams object no default values defined in spec.
func (*ChangeCurrentUserPasswordParams) BindRequest ¶
func (o *ChangeCurrentUserPasswordParams) 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 NewChangeCurrentUserPasswordParams() beforehand.
type ChangeCurrentUserPasswordURL ¶
type ChangeCurrentUserPasswordURL struct {
// contains filtered or unexported fields
}
ChangeCurrentUserPasswordURL generates an URL for the change current user password operation
func (*ChangeCurrentUserPasswordURL) Build ¶
func (o *ChangeCurrentUserPasswordURL) Build() (*url.URL, error)
Build a url path and query string
func (*ChangeCurrentUserPasswordURL) BuildFull ¶
func (o *ChangeCurrentUserPasswordURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ChangeCurrentUserPasswordURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ChangeCurrentUserPasswordURL) SetBasePath ¶
func (o *ChangeCurrentUserPasswordURL) 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 (*ChangeCurrentUserPasswordURL) String ¶
func (o *ChangeCurrentUserPasswordURL) String() string
String returns the string representation of the path with query string
func (*ChangeCurrentUserPasswordURL) StringFull ¶
func (o *ChangeCurrentUserPasswordURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ChangeCurrentUserPasswordURL) WithBasePath ¶
func (o *ChangeCurrentUserPasswordURL) WithBasePath(bp string) *ChangeCurrentUserPasswordURL
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 ChangeUserPassword ¶
type ChangeUserPassword struct { Context *middleware.Context Handler ChangeUserPasswordHandler }
ChangeUserPassword swagger:route PATCH /users/{userId} User changeUserPassword
change user's password
This can only be done by the logged in user.
func NewChangeUserPassword ¶
func NewChangeUserPassword(ctx *middleware.Context, handler ChangeUserPasswordHandler) *ChangeUserPassword
NewChangeUserPassword creates a new http.Handler for the change user password operation
func (*ChangeUserPassword) ServeHTTP ¶
func (o *ChangeUserPassword) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ChangeUserPasswordBadRequest ¶
type ChangeUserPasswordBadRequest struct { }
ChangeUserPasswordBadRequest Invalid username supplied
swagger:response changeUserPasswordBadRequest
func NewChangeUserPasswordBadRequest ¶
func NewChangeUserPasswordBadRequest() *ChangeUserPasswordBadRequest
NewChangeUserPasswordBadRequest creates ChangeUserPasswordBadRequest with default headers values
func (*ChangeUserPasswordBadRequest) WriteResponse ¶
func (o *ChangeUserPasswordBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangeUserPasswordBody ¶
type ChangeUserPasswordBody struct { // password Password string `json:"password,omitempty"` }
ChangeUserPasswordBody change user password body swagger:model ChangeUserPasswordBody
func (*ChangeUserPasswordBody) MarshalBinary ¶
func (o *ChangeUserPasswordBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeUserPasswordBody) UnmarshalBinary ¶
func (o *ChangeUserPasswordBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeUserPasswordHandler ¶
type ChangeUserPasswordHandler interface {
Handle(ChangeUserPasswordParams, *models.Principal) middleware.Responder
}
ChangeUserPasswordHandler interface for that can handle valid change user password params
type ChangeUserPasswordHandlerFunc ¶
type ChangeUserPasswordHandlerFunc func(ChangeUserPasswordParams, *models.Principal) middleware.Responder
ChangeUserPasswordHandlerFunc turns a function with the right signature into a change user password handler
func (ChangeUserPasswordHandlerFunc) Handle ¶
func (fn ChangeUserPasswordHandlerFunc) Handle(params ChangeUserPasswordParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ChangeUserPasswordNotFound ¶
type ChangeUserPasswordNotFound struct { }
ChangeUserPasswordNotFound User not found
swagger:response changeUserPasswordNotFound
func NewChangeUserPasswordNotFound ¶
func NewChangeUserPasswordNotFound() *ChangeUserPasswordNotFound
NewChangeUserPasswordNotFound creates ChangeUserPasswordNotFound with default headers values
func (*ChangeUserPasswordNotFound) WriteResponse ¶
func (o *ChangeUserPasswordNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangeUserPasswordOK ¶
type ChangeUserPasswordOK struct { }
ChangeUserPasswordOK successful operation
swagger:response changeUserPasswordOK
func NewChangeUserPasswordOK ¶
func NewChangeUserPasswordOK() *ChangeUserPasswordOK
NewChangeUserPasswordOK creates ChangeUserPasswordOK with default headers values
func (*ChangeUserPasswordOK) WriteResponse ¶
func (o *ChangeUserPasswordOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangeUserPasswordParams ¶
type ChangeUserPasswordParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Updated user password Required: true In: body */ User ChangeUserPasswordBody /*name that need to be updated Required: true In: path */ UserID string }
ChangeUserPasswordParams contains all the bound params for the change user password operation typically these are obtained from a http.Request
swagger:parameters ChangeUserPassword
func NewChangeUserPasswordParams ¶
func NewChangeUserPasswordParams() ChangeUserPasswordParams
NewChangeUserPasswordParams creates a new ChangeUserPasswordParams object no default values defined in spec.
func (*ChangeUserPasswordParams) BindRequest ¶
func (o *ChangeUserPasswordParams) 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 NewChangeUserPasswordParams() beforehand.
type ChangeUserPasswordURL ¶
type ChangeUserPasswordURL struct { UserID string // contains filtered or unexported fields }
ChangeUserPasswordURL generates an URL for the change user password operation
func (*ChangeUserPasswordURL) Build ¶
func (o *ChangeUserPasswordURL) Build() (*url.URL, error)
Build a url path and query string
func (*ChangeUserPasswordURL) BuildFull ¶
func (o *ChangeUserPasswordURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ChangeUserPasswordURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ChangeUserPasswordURL) SetBasePath ¶
func (o *ChangeUserPasswordURL) 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 (*ChangeUserPasswordURL) String ¶
func (o *ChangeUserPasswordURL) String() string
String returns the string representation of the path with query string
func (*ChangeUserPasswordURL) StringFull ¶
func (o *ChangeUserPasswordURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ChangeUserPasswordURL) WithBasePath ¶
func (o *ChangeUserPasswordURL) WithBasePath(bp string) *ChangeUserPasswordURL
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 DeleteUser ¶
type DeleteUser struct { Context *middleware.Context Handler DeleteUserHandler }
DeleteUser swagger:route DELETE /users/{userId} User deleteUser
Delete user by id ¶
This can only be done by the logged in user.
func NewDeleteUser ¶
func NewDeleteUser(ctx *middleware.Context, handler DeleteUserHandler) *DeleteUser
NewDeleteUser creates a new http.Handler for the delete user operation
func (*DeleteUser) ServeHTTP ¶
func (o *DeleteUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteUserBadRequest ¶
type DeleteUserBadRequest struct { }
DeleteUserBadRequest Invalid username supplied
swagger:response deleteUserBadRequest
func NewDeleteUserBadRequest ¶
func NewDeleteUserBadRequest() *DeleteUserBadRequest
NewDeleteUserBadRequest creates DeleteUserBadRequest with default headers values
func (*DeleteUserBadRequest) WriteResponse ¶
func (o *DeleteUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserHandler ¶
type DeleteUserHandler interface {
Handle(DeleteUserParams, *models.Principal) middleware.Responder
}
DeleteUserHandler interface for that can handle valid delete user params
type DeleteUserHandlerFunc ¶
type DeleteUserHandlerFunc func(DeleteUserParams, *models.Principal) middleware.Responder
DeleteUserHandlerFunc turns a function with the right signature into a delete user handler
func (DeleteUserHandlerFunc) Handle ¶
func (fn DeleteUserHandlerFunc) Handle(params DeleteUserParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteUserNotFound ¶
type DeleteUserNotFound struct { }
DeleteUserNotFound User not found
swagger:response deleteUserNotFound
func NewDeleteUserNotFound ¶
func NewDeleteUserNotFound() *DeleteUserNotFound
NewDeleteUserNotFound creates DeleteUserNotFound with default headers values
func (*DeleteUserNotFound) WriteResponse ¶
func (o *DeleteUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserOK ¶
type DeleteUserOK struct { }
DeleteUserOK successful operation
swagger:response deleteUserOK
func NewDeleteUserOK ¶
func NewDeleteUserOK() *DeleteUserOK
NewDeleteUserOK creates DeleteUserOK with default headers values
func (*DeleteUserOK) WriteResponse ¶
func (o *DeleteUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserParams ¶
type DeleteUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The user that needs to be deleted Required: true In: path */ UserID string }
DeleteUserParams contains all the bound params for the delete user operation typically these are obtained from a http.Request
swagger:parameters deleteUser
func NewDeleteUserParams ¶
func NewDeleteUserParams() DeleteUserParams
NewDeleteUserParams creates a new DeleteUserParams object no default values defined in spec.
func (*DeleteUserParams) BindRequest ¶
func (o *DeleteUserParams) 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 NewDeleteUserParams() beforehand.
type DeleteUserURL ¶
type DeleteUserURL struct { UserID string // contains filtered or unexported fields }
DeleteUserURL generates an URL for the delete user operation
func (*DeleteUserURL) Build ¶
func (o *DeleteUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteUserURL) BuildFull ¶
func (o *DeleteUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteUserURL) SetBasePath ¶
func (o *DeleteUserURL) 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 (*DeleteUserURL) String ¶
func (o *DeleteUserURL) String() string
String returns the string representation of the path with query string
func (*DeleteUserURL) StringFull ¶
func (o *DeleteUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteUserURL) WithBasePath ¶
func (o *DeleteUserURL) WithBasePath(bp string) *DeleteUserURL
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 GetUser ¶
type GetUser struct { Context *middleware.Context Handler GetUserHandler }
GetUser swagger:route GET /users/{userId} User getUser
Get user by user id ¶
This can only be done by the logged in user.
func NewGetUser ¶
func NewGetUser(ctx *middleware.Context, handler GetUserHandler) *GetUser
NewGetUser creates a new http.Handler for the get user operation
type GetUserBadRequest ¶
type GetUserBadRequest struct { }
GetUserBadRequest Invalid username supplied
swagger:response getUserBadRequest
func NewGetUserBadRequest ¶
func NewGetUserBadRequest() *GetUserBadRequest
NewGetUserBadRequest creates GetUserBadRequest with default headers values
func (*GetUserBadRequest) WriteResponse ¶
func (o *GetUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserHandler ¶
type GetUserHandler interface {
Handle(GetUserParams, *models.Principal) middleware.Responder
}
GetUserHandler interface for that can handle valid get user params
type GetUserHandlerFunc ¶
type GetUserHandlerFunc func(GetUserParams, *models.Principal) middleware.Responder
GetUserHandlerFunc turns a function with the right signature into a get user handler
func (GetUserHandlerFunc) Handle ¶
func (fn GetUserHandlerFunc) Handle(params GetUserParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetUserNotFound ¶
type GetUserNotFound struct { }
GetUserNotFound User not found
swagger:response getUserNotFound
func NewGetUserNotFound ¶
func NewGetUserNotFound() *GetUserNotFound
NewGetUserNotFound creates GetUserNotFound with default headers values
func (*GetUserNotFound) WriteResponse ¶
func (o *GetUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserOK ¶
GetUserOK successful operation
swagger:response getUserOK
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates GetUserOK with default headers values
func (*GetUserOK) SetPayload ¶
SetPayload sets the payload to the get user o k response
func (*GetUserOK) WithPayload ¶
WithPayload adds the payload to the get user o k response
func (*GetUserOK) WriteResponse ¶
func (o *GetUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserParams ¶
type GetUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The name that needs to be fetched. Required: true In: path */ UserID string }
GetUserParams contains all the bound params for the get user operation typically these are obtained from a http.Request
swagger:parameters getUser
func NewGetUserParams ¶
func NewGetUserParams() GetUserParams
NewGetUserParams creates a new GetUserParams object no default values defined in spec.
func (*GetUserParams) BindRequest ¶
func (o *GetUserParams) 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 NewGetUserParams() beforehand.
type GetUserURL ¶
type GetUserURL struct { UserID string // contains filtered or unexported fields }
GetUserURL generates an URL for the get user operation
func (*GetUserURL) Build ¶
func (o *GetUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserURL) BuildFull ¶
func (o *GetUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserURL) SetBasePath ¶
func (o *GetUserURL) 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 (*GetUserURL) String ¶
func (o *GetUserURL) String() string
String returns the string representation of the path with query string
func (*GetUserURL) StringFull ¶
func (o *GetUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserURL) WithBasePath ¶
func (o *GetUserURL) WithBasePath(bp string) *GetUserURL
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 LoginUser ¶
type LoginUser struct { Context *middleware.Context Handler LoginUserHandler }
LoginUser swagger:route POST /users/login User loginUser
Logs user into the system
func NewLoginUser ¶
func NewLoginUser(ctx *middleware.Context, handler LoginUserHandler) *LoginUser
NewLoginUser creates a new http.Handler for the login user operation
type LoginUserBadRequest ¶
type LoginUserBadRequest struct { }
LoginUserBadRequest Invalid username/password supplied
swagger:response loginUserBadRequest
func NewLoginUserBadRequest ¶
func NewLoginUserBadRequest() *LoginUserBadRequest
NewLoginUserBadRequest creates LoginUserBadRequest with default headers values
func (*LoginUserBadRequest) WriteResponse ¶
func (o *LoginUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginUserHandler ¶
type LoginUserHandler interface {
Handle(LoginUserParams) middleware.Responder
}
LoginUserHandler interface for that can handle valid login user params
type LoginUserHandlerFunc ¶
type LoginUserHandlerFunc func(LoginUserParams) middleware.Responder
LoginUserHandlerFunc turns a function with the right signature into a login user handler
func (LoginUserHandlerFunc) Handle ¶
func (fn LoginUserHandlerFunc) Handle(params LoginUserParams) middleware.Responder
Handle executing the request and returning a response
type LoginUserOK ¶
type LoginUserOK struct { /* In: Body */ Payload *models.LoginToken `json:"body,omitempty"` }
LoginUserOK successful operation
swagger:response loginUserOK
func NewLoginUserOK ¶
func NewLoginUserOK() *LoginUserOK
NewLoginUserOK creates LoginUserOK with default headers values
func (*LoginUserOK) SetPayload ¶
func (o *LoginUserOK) SetPayload(payload *models.LoginToken)
SetPayload sets the payload to the login user o k response
func (*LoginUserOK) WithPayload ¶
func (o *LoginUserOK) WithPayload(payload *models.LoginToken) *LoginUserOK
WithPayload adds the payload to the login user o k response
func (*LoginUserOK) WriteResponse ¶
func (o *LoginUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginUserParams ¶
type LoginUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: formData */ GrantType string /*The password for login in clear text Required: true In: formData */ Password string /*The user name for login Required: true In: formData */ Username string }
LoginUserParams contains all the bound params for the login user operation typically these are obtained from a http.Request
swagger:parameters loginUser
func NewLoginUserParams ¶
func NewLoginUserParams() LoginUserParams
NewLoginUserParams creates a new LoginUserParams object no default values defined in spec.
func (*LoginUserParams) BindRequest ¶
func (o *LoginUserParams) 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 NewLoginUserParams() beforehand.
type LoginUserURL ¶
type LoginUserURL struct {
// contains filtered or unexported fields
}
LoginUserURL generates an URL for the login user operation
func (*LoginUserURL) Build ¶
func (o *LoginUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*LoginUserURL) BuildFull ¶
func (o *LoginUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*LoginUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*LoginUserURL) SetBasePath ¶
func (o *LoginUserURL) 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 (*LoginUserURL) String ¶
func (o *LoginUserURL) String() string
String returns the string representation of the path with query string
func (*LoginUserURL) StringFull ¶
func (o *LoginUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*LoginUserURL) WithBasePath ¶
func (o *LoginUserURL) WithBasePath(bp string) *LoginUserURL
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 LogoutUser ¶
type LogoutUser struct { Context *middleware.Context Handler LogoutUserHandler }
LogoutUser swagger:route GET /users/logout User logoutUser
Logs out current logged in user session
func NewLogoutUser ¶
func NewLogoutUser(ctx *middleware.Context, handler LogoutUserHandler) *LogoutUser
NewLogoutUser creates a new http.Handler for the logout user operation
func (*LogoutUser) ServeHTTP ¶
func (o *LogoutUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type LogoutUserDefault ¶
type LogoutUserDefault struct {
// contains filtered or unexported fields
}
LogoutUserDefault successful operation
swagger:response logoutUserDefault
func NewLogoutUserDefault ¶
func NewLogoutUserDefault(code int) *LogoutUserDefault
NewLogoutUserDefault creates LogoutUserDefault with default headers values
func (*LogoutUserDefault) SetStatusCode ¶
func (o *LogoutUserDefault) SetStatusCode(code int)
SetStatusCode sets the status to the logout user default response
func (*LogoutUserDefault) WithStatusCode ¶
func (o *LogoutUserDefault) WithStatusCode(code int) *LogoutUserDefault
WithStatusCode adds the status to the logout user default response
func (*LogoutUserDefault) WriteResponse ¶
func (o *LogoutUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LogoutUserHandler ¶
type LogoutUserHandler interface {
Handle(LogoutUserParams, *models.Principal) middleware.Responder
}
LogoutUserHandler interface for that can handle valid logout user params
type LogoutUserHandlerFunc ¶
type LogoutUserHandlerFunc func(LogoutUserParams, *models.Principal) middleware.Responder
LogoutUserHandlerFunc turns a function with the right signature into a logout user handler
func (LogoutUserHandlerFunc) Handle ¶
func (fn LogoutUserHandlerFunc) Handle(params LogoutUserParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type LogoutUserParams ¶
LogoutUserParams contains all the bound params for the logout user operation typically these are obtained from a http.Request
swagger:parameters logoutUser
func NewLogoutUserParams ¶
func NewLogoutUserParams() LogoutUserParams
NewLogoutUserParams creates a new LogoutUserParams object no default values defined in spec.
func (*LogoutUserParams) BindRequest ¶
func (o *LogoutUserParams) 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 NewLogoutUserParams() beforehand.
type LogoutUserURL ¶
type LogoutUserURL struct {
// contains filtered or unexported fields
}
LogoutUserURL generates an URL for the logout user operation
func (*LogoutUserURL) Build ¶
func (o *LogoutUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*LogoutUserURL) BuildFull ¶
func (o *LogoutUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*LogoutUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*LogoutUserURL) SetBasePath ¶
func (o *LogoutUserURL) 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 (*LogoutUserURL) String ¶
func (o *LogoutUserURL) String() string
String returns the string representation of the path with query string
func (*LogoutUserURL) StringFull ¶
func (o *LogoutUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*LogoutUserURL) WithBasePath ¶
func (o *LogoutUserURL) WithBasePath(bp string) *LogoutUserURL
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 UpdateUser ¶
type UpdateUser struct { Context *middleware.Context Handler UpdateUserHandler }
UpdateUser swagger:route PUT /users/{userId} User updateUser
Updated user by id ¶
This can only be done by the logged in user.
func NewUpdateUser ¶
func NewUpdateUser(ctx *middleware.Context, handler UpdateUserHandler) *UpdateUser
NewUpdateUser creates a new http.Handler for the update user operation
func (*UpdateUser) ServeHTTP ¶
func (o *UpdateUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateUserBadRequest ¶
type UpdateUserBadRequest struct { }
UpdateUserBadRequest Invalid user supplied
swagger:response updateUserBadRequest
func NewUpdateUserBadRequest ¶
func NewUpdateUserBadRequest() *UpdateUserBadRequest
NewUpdateUserBadRequest creates UpdateUserBadRequest with default headers values
func (*UpdateUserBadRequest) WriteResponse ¶
func (o *UpdateUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserBody ¶
type UpdateUserBody struct { // email Email string `json:"email,omitempty"` // phone Phone string `json:"phone,omitempty"` // roles Roles []string `json:"roles"` // username Username string `json:"username,omitempty"` }
UpdateUserBody update user body swagger:model UpdateUserBody
func (*UpdateUserBody) MarshalBinary ¶
func (o *UpdateUserBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserBody) UnmarshalBinary ¶
func (o *UpdateUserBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserHandler ¶
type UpdateUserHandler interface {
Handle(UpdateUserParams, *models.Principal) middleware.Responder
}
UpdateUserHandler interface for that can handle valid update user params
type UpdateUserHandlerFunc ¶
type UpdateUserHandlerFunc func(UpdateUserParams, *models.Principal) middleware.Responder
UpdateUserHandlerFunc turns a function with the right signature into a update user handler
func (UpdateUserHandlerFunc) Handle ¶
func (fn UpdateUserHandlerFunc) Handle(params UpdateUserParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type UpdateUserNotFound ¶
type UpdateUserNotFound struct { }
UpdateUserNotFound User not found
swagger:response updateUserNotFound
func NewUpdateUserNotFound ¶
func NewUpdateUserNotFound() *UpdateUserNotFound
NewUpdateUserNotFound creates UpdateUserNotFound with default headers values
func (*UpdateUserNotFound) WriteResponse ¶
func (o *UpdateUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserOK ¶
UpdateUserOK successful operation
swagger:response updateUserOK
func NewUpdateUserOK ¶
func NewUpdateUserOK() *UpdateUserOK
NewUpdateUserOK creates UpdateUserOK with default headers values
func (*UpdateUserOK) SetPayload ¶
func (o *UpdateUserOK) SetPayload(payload *models.User)
SetPayload sets the payload to the update user o k response
func (*UpdateUserOK) WithPayload ¶
func (o *UpdateUserOK) WithPayload(payload *models.User) *UpdateUserOK
WithPayload adds the payload to the update user o k response
func (*UpdateUserOK) WriteResponse ¶
func (o *UpdateUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserParams ¶
type UpdateUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Updated user object Required: true In: body */ User UpdateUserBody /*name that need to be updated Required: true In: path */ UserID string }
UpdateUserParams contains all the bound params for the update user operation typically these are obtained from a http.Request
swagger:parameters updateUser
func NewUpdateUserParams ¶
func NewUpdateUserParams() UpdateUserParams
NewUpdateUserParams creates a new UpdateUserParams object no default values defined in spec.
func (*UpdateUserParams) BindRequest ¶
func (o *UpdateUserParams) 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 NewUpdateUserParams() beforehand.
type UpdateUserURL ¶
type UpdateUserURL struct { UserID string // contains filtered or unexported fields }
UpdateUserURL generates an URL for the update user operation
func (*UpdateUserURL) Build ¶
func (o *UpdateUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateUserURL) BuildFull ¶
func (o *UpdateUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateUserURL) SetBasePath ¶
func (o *UpdateUserURL) 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 (*UpdateUserURL) String ¶
func (o *UpdateUserURL) String() string
String returns the string representation of the path with query string
func (*UpdateUserURL) StringFull ¶
func (o *UpdateUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateUserURL) WithBasePath ¶
func (o *UpdateUserURL) WithBasePath(bp string) *UpdateUserURL
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
Source Files ¶
- change_current_user_password.go
- change_current_user_password_parameters.go
- change_current_user_password_responses.go
- change_current_user_password_urlbuilder.go
- change_user_password.go
- change_user_password_parameters.go
- change_user_password_responses.go
- change_user_password_urlbuilder.go
- delete_user.go
- delete_user_parameters.go
- delete_user_responses.go
- delete_user_urlbuilder.go
- get_user.go
- get_user_parameters.go
- get_user_responses.go
- get_user_urlbuilder.go
- login_user.go
- login_user_parameters.go
- login_user_responses.go
- login_user_urlbuilder.go
- logout_user.go
- logout_user_parameters.go
- logout_user_responses.go
- logout_user_urlbuilder.go
- update_user.go
- update_user_parameters.go
- update_user_responses.go
- update_user_urlbuilder.go