Documentation
¶
Index ¶
- type UserAPI
- func (u *UserAPI) Create(user *userTY.User, plainPassword string) error
- func (u *UserAPI) Delete(IDs []string) (int64, error)
- func (u *UserAPI) Get(filters []storageTY.Filter) (userTY.User, error)
- func (u *UserAPI) GetByEmail(email string) (userTY.User, error)
- func (u *UserAPI) GetByID(ID string) (userTY.User, error)
- func (u *UserAPI) GetByUsername(username string) (userTY.User, error)
- func (u *UserAPI) GetEntityInterface() interface{}
- func (u *UserAPI) Import(data interface{}) error
- func (u *UserAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
- func (u *UserAPI) Save(user *userTY.User) error
- func (u *UserAPI) SaveAdmin(update *userTY.UserAdminUpdate) error
- func (u *UserAPI) UpdateProfile(userData *userTY.UserProfileUpdate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAPI ¶
type UserAPI struct {
// contains filtered or unexported fields
}
func (*UserAPI) Create ¶ added in v2.2.0
Create creates a new user with plain password and optional policies.
func (*UserAPI) GetByEmail ¶
GetByEmail returns a item
func (*UserAPI) GetByUsername ¶
GetByUsername returns a item
func (*UserAPI) GetEntityInterface ¶
func (u *UserAPI) GetEntityInterface() interface{}
func (*UserAPI) List ¶
func (u *UserAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
List by filter and pagination
func (*UserAPI) SaveAdmin ¶ added in v2.2.0
func (u *UserAPI) SaveAdmin(update *userTY.UserAdminUpdate) error
SaveAdmin updates user including disabled flag and policies (admin path).
func (*UserAPI) UpdateProfile ¶
func (u *UserAPI) UpdateProfile(userData *userTY.UserProfileUpdate) error
UpdateProfile updates the user profile