Documentation ¶
Index ¶
- Constants
- type AccountChangePassword
- type AccountChangePasswordDefault
- func (o *AccountChangePasswordDefault) SetPayload(payload *models.Error)
- func (o *AccountChangePasswordDefault) SetStatusCode(code int)
- func (o *AccountChangePasswordDefault) WithPayload(payload *models.Error) *AccountChangePasswordDefault
- func (o *AccountChangePasswordDefault) WithStatusCode(code int) *AccountChangePasswordDefault
- func (o *AccountChangePasswordDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AccountChangePasswordHandler
- type AccountChangePasswordHandlerFunc
- type AccountChangePasswordNoContent
- type AccountChangePasswordParams
- type AccountChangePasswordURL
- func (o *AccountChangePasswordURL) Build() (*url.URL, error)
- func (o *AccountChangePasswordURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AccountChangePasswordURL) Must(u *url.URL, err error) *url.URL
- func (o *AccountChangePasswordURL) SetBasePath(bp string)
- func (o *AccountChangePasswordURL) String() string
- func (o *AccountChangePasswordURL) StringFull(scheme, host string) string
- func (o *AccountChangePasswordURL) WithBasePath(bp string) *AccountChangePasswordURL
- type ChangeUserPassword
- type ChangeUserPasswordCreated
- type ChangeUserPasswordDefault
- func (o *ChangeUserPasswordDefault) SetPayload(payload *models.Error)
- func (o *ChangeUserPasswordDefault) SetStatusCode(code int)
- func (o *ChangeUserPasswordDefault) WithPayload(payload *models.Error) *ChangeUserPasswordDefault
- func (o *ChangeUserPasswordDefault) WithStatusCode(code int) *ChangeUserPasswordDefault
- func (o *ChangeUserPasswordDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ChangeUserPasswordHandler
- type ChangeUserPasswordHandlerFunc
- 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
Constants ¶
const AccountChangePasswordNoContentCode int = 204
AccountChangePasswordNoContentCode is the HTTP code returned for type AccountChangePasswordNoContent
const ChangeUserPasswordCreatedCode int = 201
ChangeUserPasswordCreatedCode is the HTTP code returned for type ChangeUserPasswordCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountChangePassword ¶
type AccountChangePassword struct { Context *middleware.Context Handler AccountChangePasswordHandler }
AccountChangePassword swagger:route POST /account/change-password Account accountChangePassword
Change password of currently logged in user.
func NewAccountChangePassword ¶
func NewAccountChangePassword(ctx *middleware.Context, handler AccountChangePasswordHandler) *AccountChangePassword
NewAccountChangePassword creates a new http.Handler for the account change password operation
func (*AccountChangePassword) ServeHTTP ¶
func (o *AccountChangePassword) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AccountChangePasswordDefault ¶
type AccountChangePasswordDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AccountChangePasswordDefault Generic error response.
swagger:response accountChangePasswordDefault
func NewAccountChangePasswordDefault ¶
func NewAccountChangePasswordDefault(code int) *AccountChangePasswordDefault
NewAccountChangePasswordDefault creates AccountChangePasswordDefault with default headers values
func (*AccountChangePasswordDefault) SetPayload ¶
func (o *AccountChangePasswordDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the account change password default response
func (*AccountChangePasswordDefault) SetStatusCode ¶
func (o *AccountChangePasswordDefault) SetStatusCode(code int)
SetStatusCode sets the status to the account change password default response
func (*AccountChangePasswordDefault) WithPayload ¶
func (o *AccountChangePasswordDefault) WithPayload(payload *models.Error) *AccountChangePasswordDefault
WithPayload adds the payload to the account change password default response
func (*AccountChangePasswordDefault) WithStatusCode ¶
func (o *AccountChangePasswordDefault) WithStatusCode(code int) *AccountChangePasswordDefault
WithStatusCode adds the status to the account change password default response
func (*AccountChangePasswordDefault) WriteResponse ¶
func (o *AccountChangePasswordDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AccountChangePasswordHandler ¶
type AccountChangePasswordHandler interface {
Handle(AccountChangePasswordParams, *models.Principal) middleware.Responder
}
AccountChangePasswordHandler interface for that can handle valid account change password params
type AccountChangePasswordHandlerFunc ¶
type AccountChangePasswordHandlerFunc func(AccountChangePasswordParams, *models.Principal) middleware.Responder
AccountChangePasswordHandlerFunc turns a function with the right signature into a account change password handler
func (AccountChangePasswordHandlerFunc) Handle ¶
func (fn AccountChangePasswordHandlerFunc) Handle(params AccountChangePasswordParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AccountChangePasswordNoContent ¶
type AccountChangePasswordNoContent struct { }
AccountChangePasswordNoContent A successful login.
swagger:response accountChangePasswordNoContent
func NewAccountChangePasswordNoContent ¶
func NewAccountChangePasswordNoContent() *AccountChangePasswordNoContent
NewAccountChangePasswordNoContent creates AccountChangePasswordNoContent with default headers values
func (*AccountChangePasswordNoContent) WriteResponse ¶
func (o *AccountChangePasswordNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AccountChangePasswordParams ¶
type AccountChangePasswordParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.AccountChangePasswordRequest }
AccountChangePasswordParams contains all the bound params for the account change password operation typically these are obtained from a http.Request
swagger:parameters AccountChangePassword
func NewAccountChangePasswordParams ¶
func NewAccountChangePasswordParams() AccountChangePasswordParams
NewAccountChangePasswordParams creates a new AccountChangePasswordParams object
There are no default values defined in the spec.
func (*AccountChangePasswordParams) BindRequest ¶
func (o *AccountChangePasswordParams) 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 NewAccountChangePasswordParams() beforehand.
type AccountChangePasswordURL ¶
type AccountChangePasswordURL struct {
// contains filtered or unexported fields
}
AccountChangePasswordURL generates an URL for the account change password operation
func (*AccountChangePasswordURL) Build ¶
func (o *AccountChangePasswordURL) Build() (*url.URL, error)
Build a url path and query string
func (*AccountChangePasswordURL) BuildFull ¶
func (o *AccountChangePasswordURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AccountChangePasswordURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AccountChangePasswordURL) SetBasePath ¶
func (o *AccountChangePasswordURL) 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 (*AccountChangePasswordURL) String ¶
func (o *AccountChangePasswordURL) String() string
String returns the string representation of the path with query string
func (*AccountChangePasswordURL) StringFull ¶
func (o *AccountChangePasswordURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AccountChangePasswordURL) WithBasePath ¶
func (o *AccountChangePasswordURL) WithBasePath(bp string) *AccountChangePasswordURL
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 POST /account/change-user-password Account changeUserPassword
Change password of currently 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 ChangeUserPasswordCreated ¶
type ChangeUserPasswordCreated struct { }
ChangeUserPasswordCreated Password successfully changed.
swagger:response changeUserPasswordCreated
func NewChangeUserPasswordCreated ¶
func NewChangeUserPasswordCreated() *ChangeUserPasswordCreated
NewChangeUserPasswordCreated creates ChangeUserPasswordCreated with default headers values
func (*ChangeUserPasswordCreated) WriteResponse ¶
func (o *ChangeUserPasswordCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangeUserPasswordDefault ¶
type ChangeUserPasswordDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ChangeUserPasswordDefault Generic error response.
swagger:response changeUserPasswordDefault
func NewChangeUserPasswordDefault ¶
func NewChangeUserPasswordDefault(code int) *ChangeUserPasswordDefault
NewChangeUserPasswordDefault creates ChangeUserPasswordDefault with default headers values
func (*ChangeUserPasswordDefault) SetPayload ¶
func (o *ChangeUserPasswordDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the change user password default response
func (*ChangeUserPasswordDefault) SetStatusCode ¶
func (o *ChangeUserPasswordDefault) SetStatusCode(code int)
SetStatusCode sets the status to the change user password default response
func (*ChangeUserPasswordDefault) WithPayload ¶
func (o *ChangeUserPasswordDefault) WithPayload(payload *models.Error) *ChangeUserPasswordDefault
WithPayload adds the payload to the change user password default response
func (*ChangeUserPasswordDefault) WithStatusCode ¶
func (o *ChangeUserPasswordDefault) WithStatusCode(code int) *ChangeUserPasswordDefault
WithStatusCode adds the status to the change user password default response
func (*ChangeUserPasswordDefault) WriteResponse ¶
func (o *ChangeUserPasswordDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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 ChangeUserPasswordParams ¶
type ChangeUserPasswordParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.ChangeUserPasswordRequest }
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
There are no default values defined in the 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 {
// 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