Documentation
¶
Index ¶
- Constants
- type User
- func (u User) AsObjects(a *auth.Authorizator) []schema.Object
- func (u User) AsRuleEntity() (string, interface{})
- func (u User) IsDeleted() bool
- func (u User) IsValid() bool
- func (u User) Password() ([]byte, string)
- func (u User) Role() string
- func (u User) Status() types.Status
- func (u User) String() string
- type Users
- func (uu *Users) AsObjects(a *auth.Authorizator) []schema.Object
- func (uu Users) Clone() Users
- func (uu *Users) Create(a *auth.Authorizator, oid schema.OID, value string, dbc db.DBC) ([]schema.Object, error)
- func (uu *Users) Delete(a *auth.Authorizator, oid schema.OID, dbc db.DBC) ([]schema.Object, error)
- func (uu *Users) Load(blob json.RawMessage) error
- func (uu Users) Print()
- func (uu Users) Save() (json.RawMessage, error)
- func (uu *Users) SetPassword(uid, pwd string, dbc db.DBC) ([]schema.Object, error)
- func (uu *Users) Sweep(retention time.Duration)
- func (uu *Users) Update(a *auth.Authorizator, oid schema.OID, value string, dbc db.DBC) ([]schema.Object, error)
- func (uu Users) User(uid string) (auth.IUser, bool)
- func (uu Users) Validate() error
Constants ¶
View Source
const UserCreated = schema.Created
View Source
const UserDeleted = schema.Deleted
View Source
const UserModified = schema.Modified
View Source
const UserName = schema.UserName
View Source
const UserPassword = schema.UserPassword
View Source
const UserRole = schema.UserRole
View Source
const UserStatus = schema.Status
View Source
const UserUID = schema.UserUID
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
catalog.CatalogUser
// contains filtered or unexported fields
}
func (User) AsRuleEntity ¶
Click to show internal directories.
Click to hide internal directories.