account

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AccountChangePasswordNoContentCode int = 204

AccountChangePasswordNoContentCode is the HTTP code returned for type AccountChangePasswordNoContent

View Source
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.APIError `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.APIError)

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

WithPayload adds the payload to the account change password default response

func (*AccountChangePasswordDefault) WithStatusCode

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

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

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

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

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

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.APIError `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.APIError)

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

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

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

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL