Documentation
¶
Index ¶
- Constants
- type ChangePassword
- type ChangePasswordBadRequest
- type ChangePasswordBody
- type ChangePasswordHandler
- type ChangePasswordHandlerFunc
- type ChangePasswordInternalServerError
- type ChangePasswordOK
- type ChangePasswordParams
- type ChangePasswordURL
- func (o *ChangePasswordURL) Build() (*url.URL, error)
- func (o *ChangePasswordURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ChangePasswordURL) Must(u *url.URL, err error) *url.URL
- func (o *ChangePasswordURL) SetBasePath(bp string)
- func (o *ChangePasswordURL) String() string
- func (o *ChangePasswordURL) StringFull(scheme, host string) string
- func (o *ChangePasswordURL) WithBasePath(bp string) *ChangePasswordURL
- type ChangePasswordUnauthorized
- type ChangePasswordUnprocessableEntity
- func (o *ChangePasswordUnprocessableEntity) SetPayload(payload rest_model_zrok.ErrorMessage)
- func (o *ChangePasswordUnprocessableEntity) WithPayload(payload rest_model_zrok.ErrorMessage) *ChangePasswordUnprocessableEntity
- func (o *ChangePasswordUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type Invite
- type InviteBadRequest
- type InviteBody
- type InviteCreated
- type InviteHandler
- type InviteHandlerFunc
- type InviteInternalServerError
- type InviteParams
- type InviteURL
- func (o *InviteURL) Build() (*url.URL, error)
- func (o *InviteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *InviteURL) Must(u *url.URL, err error) *url.URL
- func (o *InviteURL) SetBasePath(bp string)
- func (o *InviteURL) String() string
- func (o *InviteURL) StringFull(scheme, host string) string
- func (o *InviteURL) WithBasePath(bp string) *InviteURL
- type InviteUnauthorized
- type Login
- type LoginBody
- type LoginHandler
- type LoginHandlerFunc
- type LoginOK
- type LoginParams
- type LoginURL
- func (o *LoginURL) Build() (*url.URL, error)
- func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginURL) SetBasePath(bp string)
- func (o *LoginURL) String() string
- func (o *LoginURL) StringFull(scheme, host string) string
- func (o *LoginURL) WithBasePath(bp string) *LoginURL
- type LoginUnauthorized
- type RegenerateAccountToken
- type RegenerateAccountTokenBody
- func (o *RegenerateAccountTokenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *RegenerateAccountTokenBody) MarshalBinary() ([]byte, error)
- func (o *RegenerateAccountTokenBody) UnmarshalBinary(b []byte) error
- func (o *RegenerateAccountTokenBody) Validate(formats strfmt.Registry) error
- type RegenerateAccountTokenHandler
- type RegenerateAccountTokenHandlerFunc
- type RegenerateAccountTokenInternalServerError
- type RegenerateAccountTokenNotFound
- type RegenerateAccountTokenOK
- type RegenerateAccountTokenOKBody
- func (o *RegenerateAccountTokenOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *RegenerateAccountTokenOKBody) MarshalBinary() ([]byte, error)
- func (o *RegenerateAccountTokenOKBody) UnmarshalBinary(b []byte) error
- func (o *RegenerateAccountTokenOKBody) Validate(formats strfmt.Registry) error
- type RegenerateAccountTokenParams
- type RegenerateAccountTokenURL
- func (o *RegenerateAccountTokenURL) Build() (*url.URL, error)
- func (o *RegenerateAccountTokenURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RegenerateAccountTokenURL) Must(u *url.URL, err error) *url.URL
- func (o *RegenerateAccountTokenURL) SetBasePath(bp string)
- func (o *RegenerateAccountTokenURL) String() string
- func (o *RegenerateAccountTokenURL) StringFull(scheme, host string) string
- func (o *RegenerateAccountTokenURL) WithBasePath(bp string) *RegenerateAccountTokenURL
- type Register
- type RegisterBody
- type RegisterHandler
- type RegisterHandlerFunc
- type RegisterInternalServerError
- type RegisterNotFound
- type RegisterOK
- type RegisterOKBody
- type RegisterParams
- type RegisterURL
- func (o *RegisterURL) Build() (*url.URL, error)
- func (o *RegisterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RegisterURL) Must(u *url.URL, err error) *url.URL
- func (o *RegisterURL) SetBasePath(bp string)
- func (o *RegisterURL) String() string
- func (o *RegisterURL) StringFull(scheme, host string) string
- func (o *RegisterURL) WithBasePath(bp string) *RegisterURL
- type RegisterUnprocessableEntity
- func (o *RegisterUnprocessableEntity) SetPayload(payload rest_model_zrok.ErrorMessage)
- func (o *RegisterUnprocessableEntity) WithPayload(payload rest_model_zrok.ErrorMessage) *RegisterUnprocessableEntity
- func (o *RegisterUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ResetPassword
- type ResetPasswordBody
- type ResetPasswordHandler
- type ResetPasswordHandlerFunc
- type ResetPasswordInternalServerError
- type ResetPasswordNotFound
- type ResetPasswordOK
- type ResetPasswordParams
- type ResetPasswordRequest
- type ResetPasswordRequestBadRequest
- type ResetPasswordRequestBody
- func (o *ResetPasswordRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ResetPasswordRequestBody) MarshalBinary() ([]byte, error)
- func (o *ResetPasswordRequestBody) UnmarshalBinary(b []byte) error
- func (o *ResetPasswordRequestBody) Validate(formats strfmt.Registry) error
- type ResetPasswordRequestCreated
- type ResetPasswordRequestHandler
- type ResetPasswordRequestHandlerFunc
- type ResetPasswordRequestInternalServerError
- type ResetPasswordRequestParams
- type ResetPasswordRequestURL
- func (o *ResetPasswordRequestURL) Build() (*url.URL, error)
- func (o *ResetPasswordRequestURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ResetPasswordRequestURL) Must(u *url.URL, err error) *url.URL
- func (o *ResetPasswordRequestURL) SetBasePath(bp string)
- func (o *ResetPasswordRequestURL) String() string
- func (o *ResetPasswordRequestURL) StringFull(scheme, host string) string
- func (o *ResetPasswordRequestURL) WithBasePath(bp string) *ResetPasswordRequestURL
- type ResetPasswordURL
- func (o *ResetPasswordURL) Build() (*url.URL, error)
- func (o *ResetPasswordURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ResetPasswordURL) Must(u *url.URL, err error) *url.URL
- func (o *ResetPasswordURL) SetBasePath(bp string)
- func (o *ResetPasswordURL) String() string
- func (o *ResetPasswordURL) StringFull(scheme, host string) string
- func (o *ResetPasswordURL) WithBasePath(bp string) *ResetPasswordURL
- type ResetPasswordUnprocessableEntity
- func (o *ResetPasswordUnprocessableEntity) SetPayload(payload rest_model_zrok.ErrorMessage)
- func (o *ResetPasswordUnprocessableEntity) WithPayload(payload rest_model_zrok.ErrorMessage) *ResetPasswordUnprocessableEntity
- func (o *ResetPasswordUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type Verify
- type VerifyBody
- type VerifyHandler
- type VerifyHandlerFunc
- type VerifyInternalServerError
- type VerifyNotFound
- type VerifyOK
- type VerifyOKBody
- type VerifyParams
- type VerifyURL
- func (o *VerifyURL) Build() (*url.URL, error)
- func (o *VerifyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *VerifyURL) Must(u *url.URL, err error) *url.URL
- func (o *VerifyURL) SetBasePath(bp string)
- func (o *VerifyURL) String() string
- func (o *VerifyURL) StringFull(scheme, host string) string
- func (o *VerifyURL) WithBasePath(bp string) *VerifyURL
Constants ¶
const ChangePasswordBadRequestCode int = 400
ChangePasswordBadRequestCode is the HTTP code returned for type ChangePasswordBadRequest
const ChangePasswordInternalServerErrorCode int = 500
ChangePasswordInternalServerErrorCode is the HTTP code returned for type ChangePasswordInternalServerError
const ChangePasswordOKCode int = 200
ChangePasswordOKCode is the HTTP code returned for type ChangePasswordOK
ChangePasswordUnauthorizedCode is the HTTP code returned for type ChangePasswordUnauthorized
const ChangePasswordUnprocessableEntityCode int = 422
ChangePasswordUnprocessableEntityCode is the HTTP code returned for type ChangePasswordUnprocessableEntity
const InviteBadRequestCode int = 400
InviteBadRequestCode is the HTTP code returned for type InviteBadRequest
const InviteCreatedCode int = 201
InviteCreatedCode is the HTTP code returned for type InviteCreated
const InviteInternalServerErrorCode int = 500
InviteInternalServerErrorCode is the HTTP code returned for type InviteInternalServerError
InviteUnauthorizedCode is the HTTP code returned for type InviteUnauthorized
const LoginOKCode int = 200
LoginOKCode is the HTTP code returned for type LoginOK
LoginUnauthorizedCode is the HTTP code returned for type LoginUnauthorized
const RegenerateAccountTokenInternalServerErrorCode int = 500
RegenerateAccountTokenInternalServerErrorCode is the HTTP code returned for type RegenerateAccountTokenInternalServerError
const RegenerateAccountTokenNotFoundCode int = 404
RegenerateAccountTokenNotFoundCode is the HTTP code returned for type RegenerateAccountTokenNotFound
const RegenerateAccountTokenOKCode int = 200
RegenerateAccountTokenOKCode is the HTTP code returned for type RegenerateAccountTokenOK
const RegisterInternalServerErrorCode int = 500
RegisterInternalServerErrorCode is the HTTP code returned for type RegisterInternalServerError
const RegisterNotFoundCode int = 404
RegisterNotFoundCode is the HTTP code returned for type RegisterNotFound
const RegisterOKCode int = 200
RegisterOKCode is the HTTP code returned for type RegisterOK
const RegisterUnprocessableEntityCode int = 422
RegisterUnprocessableEntityCode is the HTTP code returned for type RegisterUnprocessableEntity
const ResetPasswordInternalServerErrorCode int = 500
ResetPasswordInternalServerErrorCode is the HTTP code returned for type ResetPasswordInternalServerError
const ResetPasswordNotFoundCode int = 404
ResetPasswordNotFoundCode is the HTTP code returned for type ResetPasswordNotFound
const ResetPasswordOKCode int = 200
ResetPasswordOKCode is the HTTP code returned for type ResetPasswordOK
const ResetPasswordRequestBadRequestCode int = 400
ResetPasswordRequestBadRequestCode is the HTTP code returned for type ResetPasswordRequestBadRequest
const ResetPasswordRequestCreatedCode int = 201
ResetPasswordRequestCreatedCode is the HTTP code returned for type ResetPasswordRequestCreated
const ResetPasswordRequestInternalServerErrorCode int = 500
ResetPasswordRequestInternalServerErrorCode is the HTTP code returned for type ResetPasswordRequestInternalServerError
const ResetPasswordUnprocessableEntityCode int = 422
ResetPasswordUnprocessableEntityCode is the HTTP code returned for type ResetPasswordUnprocessableEntity
const VerifyInternalServerErrorCode int = 500
VerifyInternalServerErrorCode is the HTTP code returned for type VerifyInternalServerError
const VerifyNotFoundCode int = 404
VerifyNotFoundCode is the HTTP code returned for type VerifyNotFound
const VerifyOKCode int = 200
VerifyOKCode is the HTTP code returned for type VerifyOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePassword ¶ added in v0.4.25
type ChangePassword struct { Context *middleware.Context Handler ChangePasswordHandler }
ChangePassword swagger:route POST /changePassword account changePassword
ChangePassword change password API
func NewChangePassword ¶ added in v0.4.25
func NewChangePassword(ctx *middleware.Context, handler ChangePasswordHandler) *ChangePassword
NewChangePassword creates a new http.Handler for the change password operation
func (*ChangePassword) ServeHTTP ¶ added in v0.4.25
func (o *ChangePassword) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ChangePasswordBadRequest ¶ added in v0.4.25
type ChangePasswordBadRequest struct { }
ChangePasswordBadRequest password not changed
swagger:response changePasswordBadRequest
func NewChangePasswordBadRequest ¶ added in v0.4.25
func NewChangePasswordBadRequest() *ChangePasswordBadRequest
NewChangePasswordBadRequest creates ChangePasswordBadRequest with default headers values
func (*ChangePasswordBadRequest) WriteResponse ¶ added in v0.4.25
func (o *ChangePasswordBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangePasswordBody ¶
type ChangePasswordBody struct { // email Email string `json:"email,omitempty"` // new password NewPassword string `json:"newPassword,omitempty"` // old password OldPassword string `json:"oldPassword,omitempty"` }
ChangePasswordBody change password body
swagger:model ChangePasswordBody
func (*ChangePasswordBody) ContextValidate ¶
ContextValidate validates this change password body based on context it is used
func (*ChangePasswordBody) MarshalBinary ¶
func (o *ChangePasswordBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangePasswordBody) UnmarshalBinary ¶
func (o *ChangePasswordBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangePasswordHandler ¶ added in v0.4.25
type ChangePasswordHandler interface {
Handle(ChangePasswordParams, *rest_model_zrok.Principal) middleware.Responder
}
ChangePasswordHandler interface for that can handle valid change password params
type ChangePasswordHandlerFunc ¶ added in v0.4.25
type ChangePasswordHandlerFunc func(ChangePasswordParams, *rest_model_zrok.Principal) middleware.Responder
ChangePasswordHandlerFunc turns a function with the right signature into a change password handler
func (ChangePasswordHandlerFunc) Handle ¶ added in v0.4.25
func (fn ChangePasswordHandlerFunc) Handle(params ChangePasswordParams, principal *rest_model_zrok.Principal) middleware.Responder
Handle executing the request and returning a response
type ChangePasswordInternalServerError ¶ added in v0.4.25
type ChangePasswordInternalServerError struct { }
ChangePasswordInternalServerError internal server error
swagger:response changePasswordInternalServerError
func NewChangePasswordInternalServerError ¶ added in v0.4.25
func NewChangePasswordInternalServerError() *ChangePasswordInternalServerError
NewChangePasswordInternalServerError creates ChangePasswordInternalServerError with default headers values
func (*ChangePasswordInternalServerError) WriteResponse ¶ added in v0.4.25
func (o *ChangePasswordInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangePasswordOK ¶ added in v0.4.25
type ChangePasswordOK struct { }
ChangePasswordOK password changed
swagger:response changePasswordOK
func NewChangePasswordOK ¶ added in v0.4.25
func NewChangePasswordOK() *ChangePasswordOK
NewChangePasswordOK creates ChangePasswordOK with default headers values
func (*ChangePasswordOK) WriteResponse ¶ added in v0.4.25
func (o *ChangePasswordOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangePasswordParams ¶ added in v0.4.25
type ChangePasswordParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body ChangePasswordBody }
ChangePasswordParams contains all the bound params for the change password operation typically these are obtained from a http.Request
swagger:parameters changePassword
func NewChangePasswordParams ¶ added in v0.4.25
func NewChangePasswordParams() ChangePasswordParams
NewChangePasswordParams creates a new ChangePasswordParams object
There are no default values defined in the spec.
func (*ChangePasswordParams) BindRequest ¶ added in v0.4.25
func (o *ChangePasswordParams) 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 NewChangePasswordParams() beforehand.
type ChangePasswordURL ¶ added in v0.4.25
type ChangePasswordURL struct {
// contains filtered or unexported fields
}
ChangePasswordURL generates an URL for the change password operation
func (*ChangePasswordURL) Build ¶ added in v0.4.25
func (o *ChangePasswordURL) Build() (*url.URL, error)
Build a url path and query string
func (*ChangePasswordURL) BuildFull ¶ added in v0.4.25
func (o *ChangePasswordURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ChangePasswordURL) Must ¶ added in v0.4.25
Must is a helper function to panic when the url builder returns an error
func (*ChangePasswordURL) SetBasePath ¶ added in v0.4.25
func (o *ChangePasswordURL) 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 (*ChangePasswordURL) String ¶ added in v0.4.25
func (o *ChangePasswordURL) String() string
String returns the string representation of the path with query string
func (*ChangePasswordURL) StringFull ¶ added in v0.4.25
func (o *ChangePasswordURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ChangePasswordURL) WithBasePath ¶ added in v0.4.25
func (o *ChangePasswordURL) WithBasePath(bp string) *ChangePasswordURL
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 ChangePasswordUnauthorized ¶ added in v0.4.25
type ChangePasswordUnauthorized struct { }
ChangePasswordUnauthorized unauthorized
swagger:response changePasswordUnauthorized
func NewChangePasswordUnauthorized ¶ added in v0.4.25
func NewChangePasswordUnauthorized() *ChangePasswordUnauthorized
NewChangePasswordUnauthorized creates ChangePasswordUnauthorized with default headers values
func (*ChangePasswordUnauthorized) WriteResponse ¶ added in v0.4.25
func (o *ChangePasswordUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ChangePasswordUnprocessableEntity ¶ added in v0.4.25
type ChangePasswordUnprocessableEntity struct { /* In: Body */ Payload rest_model_zrok.ErrorMessage `json:"body,omitempty"` }
ChangePasswordUnprocessableEntity password validation failure
swagger:response changePasswordUnprocessableEntity
func NewChangePasswordUnprocessableEntity ¶ added in v0.4.25
func NewChangePasswordUnprocessableEntity() *ChangePasswordUnprocessableEntity
NewChangePasswordUnprocessableEntity creates ChangePasswordUnprocessableEntity with default headers values
func (*ChangePasswordUnprocessableEntity) SetPayload ¶ added in v0.4.25
func (o *ChangePasswordUnprocessableEntity) SetPayload(payload rest_model_zrok.ErrorMessage)
SetPayload sets the payload to the change password unprocessable entity response
func (*ChangePasswordUnprocessableEntity) WithPayload ¶ added in v0.4.25
func (o *ChangePasswordUnprocessableEntity) WithPayload(payload rest_model_zrok.ErrorMessage) *ChangePasswordUnprocessableEntity
WithPayload adds the payload to the change password unprocessable entity response
func (*ChangePasswordUnprocessableEntity) WriteResponse ¶ added in v0.4.25
func (o *ChangePasswordUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Invite ¶
type Invite struct { Context *middleware.Context Handler InviteHandler }
Invite swagger:route POST /invite account invite
Invite invite API
func NewInvite ¶
func NewInvite(ctx *middleware.Context, handler InviteHandler) *Invite
NewInvite creates a new http.Handler for the invite operation
type InviteBadRequest ¶
type InviteBadRequest struct { /* In: Body */ Payload rest_model_zrok.ErrorMessage `json:"body,omitempty"` }
InviteBadRequest invitation not created (already exists)
swagger:response inviteBadRequest
func NewInviteBadRequest ¶
func NewInviteBadRequest() *InviteBadRequest
NewInviteBadRequest creates InviteBadRequest with default headers values
func (*InviteBadRequest) SetPayload ¶ added in v0.3.1
func (o *InviteBadRequest) SetPayload(payload rest_model_zrok.ErrorMessage)
SetPayload sets the payload to the invite bad request response
func (*InviteBadRequest) WithPayload ¶ added in v0.3.1
func (o *InviteBadRequest) WithPayload(payload rest_model_zrok.ErrorMessage) *InviteBadRequest
WithPayload adds the payload to the invite bad request response
func (*InviteBadRequest) WriteResponse ¶
func (o *InviteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type InviteBody ¶
type InviteBody struct { // email Email string `json:"email,omitempty"` // invite token InviteToken string `json:"inviteToken,omitempty"` }
InviteBody invite body
swagger:model InviteBody
func (*InviteBody) ContextValidate ¶
ContextValidate validates this invite body based on context it is used
func (*InviteBody) MarshalBinary ¶
func (o *InviteBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InviteBody) UnmarshalBinary ¶
func (o *InviteBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InviteCreated ¶
type InviteCreated struct { }
InviteCreated invitation created
swagger:response inviteCreated
func NewInviteCreated ¶
func NewInviteCreated() *InviteCreated
NewInviteCreated creates InviteCreated with default headers values
func (*InviteCreated) WriteResponse ¶
func (o *InviteCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type InviteHandler ¶
type InviteHandler interface {
Handle(InviteParams) middleware.Responder
}
InviteHandler interface for that can handle valid invite params
type InviteHandlerFunc ¶
type InviteHandlerFunc func(InviteParams) middleware.Responder
InviteHandlerFunc turns a function with the right signature into a invite handler
func (InviteHandlerFunc) Handle ¶
func (fn InviteHandlerFunc) Handle(params InviteParams) middleware.Responder
Handle executing the request and returning a response
type InviteInternalServerError ¶
type InviteInternalServerError struct { }
InviteInternalServerError internal server error
swagger:response inviteInternalServerError
func NewInviteInternalServerError ¶
func NewInviteInternalServerError() *InviteInternalServerError
NewInviteInternalServerError creates InviteInternalServerError with default headers values
func (*InviteInternalServerError) WriteResponse ¶
func (o *InviteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type InviteParams ¶
type InviteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body InviteBody }
InviteParams contains all the bound params for the invite operation typically these are obtained from a http.Request
swagger:parameters invite
func NewInviteParams ¶
func NewInviteParams() InviteParams
NewInviteParams creates a new InviteParams object
There are no default values defined in the spec.
func (*InviteParams) BindRequest ¶
func (o *InviteParams) 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 NewInviteParams() beforehand.
type InviteURL ¶
type InviteURL struct {
// contains filtered or unexported fields
}
InviteURL generates an URL for the invite operation
func (*InviteURL) SetBasePath ¶
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 (*InviteURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*InviteURL) 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 InviteUnauthorized ¶
type InviteUnauthorized struct { }
InviteUnauthorized unauthorized
swagger:response inviteUnauthorized
func NewInviteUnauthorized ¶
func NewInviteUnauthorized() *InviteUnauthorized
NewInviteUnauthorized creates InviteUnauthorized with default headers values
func (*InviteUnauthorized) WriteResponse ¶
func (o *InviteUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Login ¶
type Login struct { Context *middleware.Context Handler LoginHandler }
Login swagger:route POST /login account login
Login login API
func NewLogin ¶
func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login
NewLogin creates a new http.Handler for the login operation
type LoginBody ¶
type LoginBody struct { // email Email string `json:"email,omitempty"` // password Password string `json:"password,omitempty"` }
LoginBody login body
swagger:model LoginBody
func (*LoginBody) ContextValidate ¶
ContextValidate validates this login body based on context it is used
func (*LoginBody) MarshalBinary ¶
MarshalBinary interface implementation
func (*LoginBody) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LoginHandler ¶
type LoginHandler interface {
Handle(LoginParams) middleware.Responder
}
LoginHandler interface for that can handle valid login params
type LoginHandlerFunc ¶
type LoginHandlerFunc func(LoginParams) middleware.Responder
LoginHandlerFunc turns a function with the right signature into a login handler
func (LoginHandlerFunc) Handle ¶
func (fn LoginHandlerFunc) Handle(params LoginParams) middleware.Responder
Handle executing the request and returning a response
type LoginOK ¶
type LoginOK struct { /* In: Body */ Payload string `json:"body,omitempty"` }
LoginOK login successful
swagger:response loginOK
func (*LoginOK) SetPayload ¶
SetPayload sets the payload to the login o k response
func (*LoginOK) WithPayload ¶
WithPayload adds the payload to the login o k response
func (*LoginOK) WriteResponse ¶
func (o *LoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginParams ¶
type LoginParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body LoginBody }
LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request
swagger:parameters login
func NewLoginParams ¶
func NewLoginParams() LoginParams
NewLoginParams creates a new LoginParams object
There are no default values defined in the spec.
func (*LoginParams) BindRequest ¶
func (o *LoginParams) 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 NewLoginParams() beforehand.
type LoginURL ¶
type LoginURL struct {
// contains filtered or unexported fields
}
LoginURL generates an URL for the login operation
func (*LoginURL) SetBasePath ¶
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 (*LoginURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*LoginURL) 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 LoginUnauthorized ¶
type LoginUnauthorized struct { }
LoginUnauthorized invalid login
swagger:response loginUnauthorized
func NewLoginUnauthorized ¶
func NewLoginUnauthorized() *LoginUnauthorized
NewLoginUnauthorized creates LoginUnauthorized with default headers values
func (*LoginUnauthorized) WriteResponse ¶
func (o *LoginUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegenerateAccountToken ¶
type RegenerateAccountToken struct { Context *middleware.Context Handler RegenerateAccountTokenHandler }
RegenerateAccountToken swagger:route POST /regenerateAccountToken account regenerateAccountToken
RegenerateAccountToken regenerate account token API
func NewRegenerateAccountToken ¶
func NewRegenerateAccountToken(ctx *middleware.Context, handler RegenerateAccountTokenHandler) *RegenerateAccountToken
NewRegenerateAccountToken creates a new http.Handler for the regenerate account token operation
func (*RegenerateAccountToken) ServeHTTP ¶
func (o *RegenerateAccountToken) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RegenerateAccountTokenBody ¶
type RegenerateAccountTokenBody struct { // email address EmailAddress string `json:"emailAddress,omitempty"` }
RegenerateAccountTokenBody regenerate account token body
swagger:model RegenerateAccountTokenBody
func (*RegenerateAccountTokenBody) ContextValidate ¶
func (o *RegenerateAccountTokenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this regenerate account token body based on context it is used
func (*RegenerateAccountTokenBody) MarshalBinary ¶
func (o *RegenerateAccountTokenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegenerateAccountTokenBody) UnmarshalBinary ¶
func (o *RegenerateAccountTokenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RegenerateAccountTokenHandler ¶
type RegenerateAccountTokenHandler interface {
Handle(RegenerateAccountTokenParams, *rest_model_zrok.Principal) middleware.Responder
}
RegenerateAccountTokenHandler interface for that can handle valid regenerate account token params
type RegenerateAccountTokenHandlerFunc ¶
type RegenerateAccountTokenHandlerFunc func(RegenerateAccountTokenParams, *rest_model_zrok.Principal) middleware.Responder
RegenerateAccountTokenHandlerFunc turns a function with the right signature into a regenerate account token handler
func (RegenerateAccountTokenHandlerFunc) Handle ¶
func (fn RegenerateAccountTokenHandlerFunc) Handle(params RegenerateAccountTokenParams, principal *rest_model_zrok.Principal) middleware.Responder
Handle executing the request and returning a response
type RegenerateAccountTokenInternalServerError ¶
type RegenerateAccountTokenInternalServerError struct { }
RegenerateAccountTokenInternalServerError internal server error
swagger:response regenerateAccountTokenInternalServerError
func NewRegenerateAccountTokenInternalServerError ¶
func NewRegenerateAccountTokenInternalServerError() *RegenerateAccountTokenInternalServerError
NewRegenerateAccountTokenInternalServerError creates RegenerateAccountTokenInternalServerError with default headers values
func (*RegenerateAccountTokenInternalServerError) WriteResponse ¶
func (o *RegenerateAccountTokenInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegenerateAccountTokenNotFound ¶
type RegenerateAccountTokenNotFound struct { }
RegenerateAccountTokenNotFound account not found
swagger:response regenerateAccountTokenNotFound
func NewRegenerateAccountTokenNotFound ¶
func NewRegenerateAccountTokenNotFound() *RegenerateAccountTokenNotFound
NewRegenerateAccountTokenNotFound creates RegenerateAccountTokenNotFound with default headers values
func (*RegenerateAccountTokenNotFound) WriteResponse ¶
func (o *RegenerateAccountTokenNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegenerateAccountTokenOK ¶
type RegenerateAccountTokenOK struct { /* In: Body */ Payload *RegenerateAccountTokenOKBody `json:"body,omitempty"` }
RegenerateAccountTokenOK regenerate account token
swagger:response regenerateAccountTokenOK
func NewRegenerateAccountTokenOK ¶
func NewRegenerateAccountTokenOK() *RegenerateAccountTokenOK
NewRegenerateAccountTokenOK creates RegenerateAccountTokenOK with default headers values
func (*RegenerateAccountTokenOK) SetPayload ¶
func (o *RegenerateAccountTokenOK) SetPayload(payload *RegenerateAccountTokenOKBody)
SetPayload sets the payload to the regenerate account token o k response
func (*RegenerateAccountTokenOK) WithPayload ¶
func (o *RegenerateAccountTokenOK) WithPayload(payload *RegenerateAccountTokenOKBody) *RegenerateAccountTokenOK
WithPayload adds the payload to the regenerate account token o k response
func (*RegenerateAccountTokenOK) WriteResponse ¶
func (o *RegenerateAccountTokenOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegenerateAccountTokenOKBody ¶
type RegenerateAccountTokenOKBody struct { // account token AccountToken string `json:"accountToken,omitempty"` }
RegenerateAccountTokenOKBody regenerate account token o k body
swagger:model RegenerateAccountTokenOKBody
func (*RegenerateAccountTokenOKBody) ContextValidate ¶
func (o *RegenerateAccountTokenOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this regenerate account token o k body based on context it is used
func (*RegenerateAccountTokenOKBody) MarshalBinary ¶
func (o *RegenerateAccountTokenOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegenerateAccountTokenOKBody) UnmarshalBinary ¶
func (o *RegenerateAccountTokenOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RegenerateAccountTokenParams ¶
type RegenerateAccountTokenParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body RegenerateAccountTokenBody }
RegenerateAccountTokenParams contains all the bound params for the regenerate account token operation typically these are obtained from a http.Request
swagger:parameters regenerateAccountToken
func NewRegenerateAccountTokenParams ¶
func NewRegenerateAccountTokenParams() RegenerateAccountTokenParams
NewRegenerateAccountTokenParams creates a new RegenerateAccountTokenParams object
There are no default values defined in the spec.
func (*RegenerateAccountTokenParams) BindRequest ¶
func (o *RegenerateAccountTokenParams) 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 NewRegenerateAccountTokenParams() beforehand.
type RegenerateAccountTokenURL ¶
type RegenerateAccountTokenURL struct {
// contains filtered or unexported fields
}
RegenerateAccountTokenURL generates an URL for the regenerate account token operation
func (*RegenerateAccountTokenURL) Build ¶
func (o *RegenerateAccountTokenURL) Build() (*url.URL, error)
Build a url path and query string
func (*RegenerateAccountTokenURL) BuildFull ¶
func (o *RegenerateAccountTokenURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RegenerateAccountTokenURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RegenerateAccountTokenURL) SetBasePath ¶
func (o *RegenerateAccountTokenURL) 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 (*RegenerateAccountTokenURL) String ¶
func (o *RegenerateAccountTokenURL) String() string
String returns the string representation of the path with query string
func (*RegenerateAccountTokenURL) StringFull ¶
func (o *RegenerateAccountTokenURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RegenerateAccountTokenURL) WithBasePath ¶
func (o *RegenerateAccountTokenURL) WithBasePath(bp string) *RegenerateAccountTokenURL
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 Register ¶
type Register struct { Context *middleware.Context Handler RegisterHandler }
Register swagger:route POST /register account register
Register register API
func NewRegister ¶
func NewRegister(ctx *middleware.Context, handler RegisterHandler) *Register
NewRegister creates a new http.Handler for the register operation
type RegisterBody ¶
type RegisterBody struct { // password Password string `json:"password,omitempty"` // register token RegisterToken string `json:"registerToken,omitempty"` }
RegisterBody register body
swagger:model RegisterBody
func (*RegisterBody) ContextValidate ¶
ContextValidate validates this register body based on context it is used
func (*RegisterBody) MarshalBinary ¶
func (o *RegisterBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegisterBody) UnmarshalBinary ¶
func (o *RegisterBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RegisterHandler ¶
type RegisterHandler interface {
Handle(RegisterParams) middleware.Responder
}
RegisterHandler interface for that can handle valid register params
type RegisterHandlerFunc ¶
type RegisterHandlerFunc func(RegisterParams) middleware.Responder
RegisterHandlerFunc turns a function with the right signature into a register handler
func (RegisterHandlerFunc) Handle ¶
func (fn RegisterHandlerFunc) Handle(params RegisterParams) middleware.Responder
Handle executing the request and returning a response
type RegisterInternalServerError ¶
type RegisterInternalServerError struct { }
RegisterInternalServerError internal server error
swagger:response registerInternalServerError
func NewRegisterInternalServerError ¶
func NewRegisterInternalServerError() *RegisterInternalServerError
NewRegisterInternalServerError creates RegisterInternalServerError with default headers values
func (*RegisterInternalServerError) WriteResponse ¶
func (o *RegisterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegisterNotFound ¶
type RegisterNotFound struct { }
RegisterNotFound request not found
swagger:response registerNotFound
func NewRegisterNotFound ¶
func NewRegisterNotFound() *RegisterNotFound
NewRegisterNotFound creates RegisterNotFound with default headers values
func (*RegisterNotFound) WriteResponse ¶
func (o *RegisterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegisterOK ¶
type RegisterOK struct { /* In: Body */ Payload *RegisterOKBody `json:"body,omitempty"` }
RegisterOK account created
swagger:response registerOK
func NewRegisterOK ¶
func NewRegisterOK() *RegisterOK
NewRegisterOK creates RegisterOK with default headers values
func (*RegisterOK) SetPayload ¶
func (o *RegisterOK) SetPayload(payload *RegisterOKBody)
SetPayload sets the payload to the register o k response
func (*RegisterOK) WithPayload ¶
func (o *RegisterOK) WithPayload(payload *RegisterOKBody) *RegisterOK
WithPayload adds the payload to the register o k response
func (*RegisterOK) WriteResponse ¶
func (o *RegisterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegisterOKBody ¶
type RegisterOKBody struct { // account token AccountToken string `json:"accountToken,omitempty"` }
RegisterOKBody register o k body
swagger:model RegisterOKBody
func (*RegisterOKBody) ContextValidate ¶
ContextValidate validates this register o k body based on context it is used
func (*RegisterOKBody) MarshalBinary ¶
func (o *RegisterOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegisterOKBody) UnmarshalBinary ¶
func (o *RegisterOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RegisterParams ¶
type RegisterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body RegisterBody }
RegisterParams contains all the bound params for the register operation typically these are obtained from a http.Request
swagger:parameters register
func NewRegisterParams ¶
func NewRegisterParams() RegisterParams
NewRegisterParams creates a new RegisterParams object
There are no default values defined in the spec.
func (*RegisterParams) BindRequest ¶
func (o *RegisterParams) 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 NewRegisterParams() beforehand.
type RegisterURL ¶
type RegisterURL struct {
// contains filtered or unexported fields
}
RegisterURL generates an URL for the register operation
func (*RegisterURL) Build ¶
func (o *RegisterURL) Build() (*url.URL, error)
Build a url path and query string
func (*RegisterURL) BuildFull ¶
func (o *RegisterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RegisterURL) SetBasePath ¶
func (o *RegisterURL) 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 (*RegisterURL) String ¶
func (o *RegisterURL) String() string
String returns the string representation of the path with query string
func (*RegisterURL) StringFull ¶
func (o *RegisterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RegisterURL) WithBasePath ¶
func (o *RegisterURL) WithBasePath(bp string) *RegisterURL
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 RegisterUnprocessableEntity ¶ added in v0.4.0
type RegisterUnprocessableEntity struct { /* In: Body */ Payload rest_model_zrok.ErrorMessage `json:"body,omitempty"` }
RegisterUnprocessableEntity password validation failure
swagger:response registerUnprocessableEntity
func NewRegisterUnprocessableEntity ¶ added in v0.4.0
func NewRegisterUnprocessableEntity() *RegisterUnprocessableEntity
NewRegisterUnprocessableEntity creates RegisterUnprocessableEntity with default headers values
func (*RegisterUnprocessableEntity) SetPayload ¶ added in v0.4.0
func (o *RegisterUnprocessableEntity) SetPayload(payload rest_model_zrok.ErrorMessage)
SetPayload sets the payload to the register unprocessable entity response
func (*RegisterUnprocessableEntity) WithPayload ¶ added in v0.4.0
func (o *RegisterUnprocessableEntity) WithPayload(payload rest_model_zrok.ErrorMessage) *RegisterUnprocessableEntity
WithPayload adds the payload to the register unprocessable entity response
func (*RegisterUnprocessableEntity) WriteResponse ¶ added in v0.4.0
func (o *RegisterUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ResetPassword ¶
type ResetPassword struct { Context *middleware.Context Handler ResetPasswordHandler }
ResetPassword swagger:route POST /resetPassword account resetPassword
ResetPassword reset password API
func NewResetPassword ¶
func NewResetPassword(ctx *middleware.Context, handler ResetPasswordHandler) *ResetPassword
NewResetPassword creates a new http.Handler for the reset password operation
func (*ResetPassword) ServeHTTP ¶
func (o *ResetPassword) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ResetPasswordBody ¶
type ResetPasswordBody struct { // password Password string `json:"password,omitempty"` // reset token ResetToken string `json:"resetToken,omitempty"` }
ResetPasswordBody reset password body
swagger:model ResetPasswordBody
func (*ResetPasswordBody) ContextValidate ¶
ContextValidate validates this reset password body based on context it is used
func (*ResetPasswordBody) MarshalBinary ¶
func (o *ResetPasswordBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResetPasswordBody) UnmarshalBinary ¶
func (o *ResetPasswordBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResetPasswordHandler ¶
type ResetPasswordHandler interface {
Handle(ResetPasswordParams) middleware.Responder
}
ResetPasswordHandler interface for that can handle valid reset password params
type ResetPasswordHandlerFunc ¶
type ResetPasswordHandlerFunc func(ResetPasswordParams) middleware.Responder
ResetPasswordHandlerFunc turns a function with the right signature into a reset password handler
func (ResetPasswordHandlerFunc) Handle ¶
func (fn ResetPasswordHandlerFunc) Handle(params ResetPasswordParams) middleware.Responder
Handle executing the request and returning a response
type ResetPasswordInternalServerError ¶
type ResetPasswordInternalServerError struct { }
ResetPasswordInternalServerError internal server error
swagger:response resetPasswordInternalServerError
func NewResetPasswordInternalServerError ¶
func NewResetPasswordInternalServerError() *ResetPasswordInternalServerError
NewResetPasswordInternalServerError creates ResetPasswordInternalServerError with default headers values
func (*ResetPasswordInternalServerError) WriteResponse ¶
func (o *ResetPasswordInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ResetPasswordNotFound ¶
type ResetPasswordNotFound struct { }
ResetPasswordNotFound request not found
swagger:response resetPasswordNotFound
func NewResetPasswordNotFound ¶
func NewResetPasswordNotFound() *ResetPasswordNotFound
NewResetPasswordNotFound creates ResetPasswordNotFound with default headers values
func (*ResetPasswordNotFound) WriteResponse ¶
func (o *ResetPasswordNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ResetPasswordOK ¶
type ResetPasswordOK struct { }
ResetPasswordOK password reset
swagger:response resetPasswordOK
func NewResetPasswordOK ¶
func NewResetPasswordOK() *ResetPasswordOK
NewResetPasswordOK creates ResetPasswordOK with default headers values
func (*ResetPasswordOK) WriteResponse ¶
func (o *ResetPasswordOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ResetPasswordParams ¶
type ResetPasswordParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body ResetPasswordBody }
ResetPasswordParams contains all the bound params for the reset password operation typically these are obtained from a http.Request
swagger:parameters resetPassword
func NewResetPasswordParams ¶
func NewResetPasswordParams() ResetPasswordParams
NewResetPasswordParams creates a new ResetPasswordParams object
There are no default values defined in the spec.
func (*ResetPasswordParams) BindRequest ¶
func (o *ResetPasswordParams) 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 NewResetPasswordParams() beforehand.
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { Context *middleware.Context Handler ResetPasswordRequestHandler }
ResetPasswordRequest swagger:route POST /resetPasswordRequest account resetPasswordRequest
ResetPasswordRequest reset password request API
func NewResetPasswordRequest ¶
func NewResetPasswordRequest(ctx *middleware.Context, handler ResetPasswordRequestHandler) *ResetPasswordRequest
NewResetPasswordRequest creates a new http.Handler for the reset password request operation
func (*ResetPasswordRequest) ServeHTTP ¶
func (o *ResetPasswordRequest) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ResetPasswordRequestBadRequest ¶
type ResetPasswordRequestBadRequest struct { }
ResetPasswordRequestBadRequest reset password request not created
swagger:response resetPasswordRequestBadRequest
func NewResetPasswordRequestBadRequest ¶
func NewResetPasswordRequestBadRequest() *ResetPasswordRequestBadRequest
NewResetPasswordRequestBadRequest creates ResetPasswordRequestBadRequest with default headers values
func (*ResetPasswordRequestBadRequest) WriteResponse ¶
func (o *ResetPasswordRequestBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ResetPasswordRequestBody ¶
type ResetPasswordRequestBody struct { // email address EmailAddress string `json:"emailAddress,omitempty"` }
ResetPasswordRequestBody reset password request body
swagger:model ResetPasswordRequestBody
func (*ResetPasswordRequestBody) ContextValidate ¶
func (o *ResetPasswordRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this reset password request body based on context it is used
func (*ResetPasswordRequestBody) MarshalBinary ¶
func (o *ResetPasswordRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResetPasswordRequestBody) UnmarshalBinary ¶
func (o *ResetPasswordRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResetPasswordRequestCreated ¶
type ResetPasswordRequestCreated struct { }
ResetPasswordRequestCreated reset password request created
swagger:response resetPasswordRequestCreated
func NewResetPasswordRequestCreated ¶
func NewResetPasswordRequestCreated() *ResetPasswordRequestCreated
NewResetPasswordRequestCreated creates ResetPasswordRequestCreated with default headers values
func (*ResetPasswordRequestCreated) WriteResponse ¶
func (o *ResetPasswordRequestCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ResetPasswordRequestHandler ¶
type ResetPasswordRequestHandler interface {
Handle(ResetPasswordRequestParams) middleware.Responder
}
ResetPasswordRequestHandler interface for that can handle valid reset password request params
type ResetPasswordRequestHandlerFunc ¶
type ResetPasswordRequestHandlerFunc func(ResetPasswordRequestParams) middleware.Responder
ResetPasswordRequestHandlerFunc turns a function with the right signature into a reset password request handler
func (ResetPasswordRequestHandlerFunc) Handle ¶
func (fn ResetPasswordRequestHandlerFunc) Handle(params ResetPasswordRequestParams) middleware.Responder
Handle executing the request and returning a response
type ResetPasswordRequestInternalServerError ¶
type ResetPasswordRequestInternalServerError struct { }
ResetPasswordRequestInternalServerError internal server error
swagger:response resetPasswordRequestInternalServerError
func NewResetPasswordRequestInternalServerError ¶
func NewResetPasswordRequestInternalServerError() *ResetPasswordRequestInternalServerError
NewResetPasswordRequestInternalServerError creates ResetPasswordRequestInternalServerError with default headers values
func (*ResetPasswordRequestInternalServerError) WriteResponse ¶
func (o *ResetPasswordRequestInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ResetPasswordRequestParams ¶
type ResetPasswordRequestParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body ResetPasswordRequestBody }
ResetPasswordRequestParams contains all the bound params for the reset password request operation typically these are obtained from a http.Request
swagger:parameters resetPasswordRequest
func NewResetPasswordRequestParams ¶
func NewResetPasswordRequestParams() ResetPasswordRequestParams
NewResetPasswordRequestParams creates a new ResetPasswordRequestParams object
There are no default values defined in the spec.
func (*ResetPasswordRequestParams) BindRequest ¶
func (o *ResetPasswordRequestParams) 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 NewResetPasswordRequestParams() beforehand.
type ResetPasswordRequestURL ¶
type ResetPasswordRequestURL struct {
// contains filtered or unexported fields
}
ResetPasswordRequestURL generates an URL for the reset password request operation
func (*ResetPasswordRequestURL) Build ¶
func (o *ResetPasswordRequestURL) Build() (*url.URL, error)
Build a url path and query string
func (*ResetPasswordRequestURL) BuildFull ¶
func (o *ResetPasswordRequestURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ResetPasswordRequestURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ResetPasswordRequestURL) SetBasePath ¶
func (o *ResetPasswordRequestURL) 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 (*ResetPasswordRequestURL) String ¶
func (o *ResetPasswordRequestURL) String() string
String returns the string representation of the path with query string
func (*ResetPasswordRequestURL) StringFull ¶
func (o *ResetPasswordRequestURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ResetPasswordRequestURL) WithBasePath ¶
func (o *ResetPasswordRequestURL) WithBasePath(bp string) *ResetPasswordRequestURL
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 ResetPasswordURL ¶
type ResetPasswordURL struct {
// contains filtered or unexported fields
}
ResetPasswordURL generates an URL for the reset password operation
func (*ResetPasswordURL) Build ¶
func (o *ResetPasswordURL) Build() (*url.URL, error)
Build a url path and query string
func (*ResetPasswordURL) BuildFull ¶
func (o *ResetPasswordURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ResetPasswordURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ResetPasswordURL) SetBasePath ¶
func (o *ResetPasswordURL) 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 (*ResetPasswordURL) String ¶
func (o *ResetPasswordURL) String() string
String returns the string representation of the path with query string
func (*ResetPasswordURL) StringFull ¶
func (o *ResetPasswordURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ResetPasswordURL) WithBasePath ¶
func (o *ResetPasswordURL) WithBasePath(bp string) *ResetPasswordURL
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 ResetPasswordUnprocessableEntity ¶ added in v0.4.0
type ResetPasswordUnprocessableEntity struct { /* In: Body */ Payload rest_model_zrok.ErrorMessage `json:"body,omitempty"` }
ResetPasswordUnprocessableEntity password validation failure
swagger:response resetPasswordUnprocessableEntity
func NewResetPasswordUnprocessableEntity ¶ added in v0.4.0
func NewResetPasswordUnprocessableEntity() *ResetPasswordUnprocessableEntity
NewResetPasswordUnprocessableEntity creates ResetPasswordUnprocessableEntity with default headers values
func (*ResetPasswordUnprocessableEntity) SetPayload ¶ added in v0.4.0
func (o *ResetPasswordUnprocessableEntity) SetPayload(payload rest_model_zrok.ErrorMessage)
SetPayload sets the payload to the reset password unprocessable entity response
func (*ResetPasswordUnprocessableEntity) WithPayload ¶ added in v0.4.0
func (o *ResetPasswordUnprocessableEntity) WithPayload(payload rest_model_zrok.ErrorMessage) *ResetPasswordUnprocessableEntity
WithPayload adds the payload to the reset password unprocessable entity response
func (*ResetPasswordUnprocessableEntity) WriteResponse ¶ added in v0.4.0
func (o *ResetPasswordUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Verify ¶
type Verify struct { Context *middleware.Context Handler VerifyHandler }
Verify swagger:route POST /verify account verify
Verify verify API
func NewVerify ¶
func NewVerify(ctx *middleware.Context, handler VerifyHandler) *Verify
NewVerify creates a new http.Handler for the verify operation
type VerifyBody ¶
type VerifyBody struct { // register token RegisterToken string `json:"registerToken,omitempty"` }
VerifyBody verify body
swagger:model VerifyBody
func (*VerifyBody) ContextValidate ¶
ContextValidate validates this verify body based on context it is used
func (*VerifyBody) MarshalBinary ¶
func (o *VerifyBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VerifyBody) UnmarshalBinary ¶
func (o *VerifyBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VerifyHandler ¶
type VerifyHandler interface {
Handle(VerifyParams) middleware.Responder
}
VerifyHandler interface for that can handle valid verify params
type VerifyHandlerFunc ¶
type VerifyHandlerFunc func(VerifyParams) middleware.Responder
VerifyHandlerFunc turns a function with the right signature into a verify handler
func (VerifyHandlerFunc) Handle ¶
func (fn VerifyHandlerFunc) Handle(params VerifyParams) middleware.Responder
Handle executing the request and returning a response
type VerifyInternalServerError ¶
type VerifyInternalServerError struct { }
VerifyInternalServerError internal server error
swagger:response verifyInternalServerError
func NewVerifyInternalServerError ¶
func NewVerifyInternalServerError() *VerifyInternalServerError
NewVerifyInternalServerError creates VerifyInternalServerError with default headers values
func (*VerifyInternalServerError) WriteResponse ¶
func (o *VerifyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VerifyNotFound ¶
type VerifyNotFound struct { }
VerifyNotFound registration token not found
swagger:response verifyNotFound
func NewVerifyNotFound ¶
func NewVerifyNotFound() *VerifyNotFound
NewVerifyNotFound creates VerifyNotFound with default headers values
func (*VerifyNotFound) WriteResponse ¶
func (o *VerifyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VerifyOK ¶
type VerifyOK struct { /* In: Body */ Payload *VerifyOKBody `json:"body,omitempty"` }
VerifyOK registration token ready
swagger:response verifyOK
func NewVerifyOK ¶
func NewVerifyOK() *VerifyOK
NewVerifyOK creates VerifyOK with default headers values
func (*VerifyOK) SetPayload ¶
func (o *VerifyOK) SetPayload(payload *VerifyOKBody)
SetPayload sets the payload to the verify o k response
func (*VerifyOK) WithPayload ¶
func (o *VerifyOK) WithPayload(payload *VerifyOKBody) *VerifyOK
WithPayload adds the payload to the verify o k response
func (*VerifyOK) WriteResponse ¶
func (o *VerifyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VerifyOKBody ¶
type VerifyOKBody struct { // email Email string `json:"email,omitempty"` }
VerifyOKBody verify o k body
swagger:model VerifyOKBody
func (*VerifyOKBody) ContextValidate ¶
ContextValidate validates this verify o k body based on context it is used
func (*VerifyOKBody) MarshalBinary ¶
func (o *VerifyOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VerifyOKBody) UnmarshalBinary ¶
func (o *VerifyOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VerifyParams ¶
type VerifyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body VerifyBody }
VerifyParams contains all the bound params for the verify operation typically these are obtained from a http.Request
swagger:parameters verify
func NewVerifyParams ¶
func NewVerifyParams() VerifyParams
NewVerifyParams creates a new VerifyParams object
There are no default values defined in the spec.
func (*VerifyParams) BindRequest ¶
func (o *VerifyParams) 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 NewVerifyParams() beforehand.
type VerifyURL ¶
type VerifyURL struct {
// contains filtered or unexported fields
}
VerifyURL generates an URL for the verify operation
func (*VerifyURL) SetBasePath ¶
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 (*VerifyURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*VerifyURL) 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
Source Files
¶
- change_password.go
- change_password_parameters.go
- change_password_responses.go
- change_password_urlbuilder.go
- invite.go
- invite_parameters.go
- invite_responses.go
- invite_urlbuilder.go
- login.go
- login_parameters.go
- login_responses.go
- login_urlbuilder.go
- regenerate_account_token.go
- regenerate_account_token_parameters.go
- regenerate_account_token_responses.go
- regenerate_account_token_urlbuilder.go
- register.go
- register_parameters.go
- register_responses.go
- register_urlbuilder.go
- reset_password.go
- reset_password_parameters.go
- reset_password_request.go
- reset_password_request_parameters.go
- reset_password_request_responses.go
- reset_password_request_urlbuilder.go
- reset_password_responses.go
- reset_password_urlbuilder.go
- verify.go
- verify_parameters.go
- verify_responses.go
- verify_urlbuilder.go