Documentation ¶
Index ¶
- func AddSalt(service services.ApplicationService) error
- func NewError(ctx *gin.Context, status int, err error)
- type ApiTokenResponse
- type CapabilitiesResponse
- type ErrEmptyProjectName
- type ErrInvalidCredentials
- type ErrInvalidEmail
- type ErrInvalidRequest
- type ErrInvalidRole
- type ErrOldPassword
- type ErrProjectNotFound
- type ErrProjectNotFoundstruct
- type ErrServerError
- type ErrStrictPasswordPolicyViolation
- type ErrStrictUsernamePolicyViolation
- type ErrUnauthorized
- type ErrUserDeactivated
- type ErrUserExists
- type ErrUserNotFound
- type HTTPError
- type LoginResponse
- type MessageResponse
- type NewApiToken
- type Response
- type Role
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSalt ¶
func AddSalt(service services.ApplicationService) error
Types ¶
type ApiTokenResponse ¶
type CapabilitiesResponse ¶
type CapabilitiesResponse struct { Dex struct { Enabled bool `json:"enabled"` } `json:"dex"` }
type ErrEmptyProjectName ¶
type ErrInvalidCredentials ¶
type ErrInvalidEmail ¶
type ErrInvalidRequest ¶
type ErrInvalidRole ¶
type ErrOldPassword ¶
type ErrProjectNotFound ¶
type ErrServerError ¶
type ErrUnauthorized ¶
type ErrUnauthorized struct {}
type ErrUserDeactivated ¶
type ErrUserExists ¶
type ErrUserNotFound ¶
type LoginResponse ¶
type LoginResponse struct {
// contains filtered or unexported fields
}
type MessageResponse ¶
type MessageResponse struct {
Message string
}
type NewApiToken ¶
type NewApiToken struct {
// contains filtered or unexported fields
}
type UserResponse ¶
type UserResponse struct { ID string `bson:"_id,omitempty" json:"userID"` Username string `bson:"username,omitempty" json:"username"` Password string `bson:"password,omitempty" json:"password,omitempty"` Email string `bson:"email,omitempty" json:"email,omitempty"` Name string `bson:"name,omitempty" json:"name,omitempty"` Role Role `bson:"role,omitempty" json:"role"` DeactivatedAt *int64 `bson:"deactivated_at,omitempty" json:"deactivatedAt,omitempty"` }
Click to show internal directories.
Click to hide internal directories.