Documentation ¶
Index ¶
- type Permission
- type Protected
- type UserAdmin
- func (u *UserAdmin) CheckEditor(r *http.Request, userConfig UserConfig) (string, api.Error)
- func (u *UserAdmin) ConvertUserConfig(uCfg UserConfig, toNames bool) (UserConfig, api.Error)
- func (u *UserAdmin) GetUserConfig(userID string) UserConfig
- func (u *UserAdmin) ProcessConfig(ctx context.Context, userID string, login string, newConfig UserConfig, ...) api.Error
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permission ¶
type UserAdmin ¶
type UserAdmin struct {
// contains filtered or unexported fields
}
func NewUserAdmin ¶
func (*UserAdmin) CheckEditor ¶
func (*UserAdmin) ConvertUserConfig ¶
func (u *UserAdmin) ConvertUserConfig(uCfg UserConfig, toNames bool) (UserConfig, api.Error)
func (*UserAdmin) GetUserConfig ¶
func (u *UserAdmin) GetUserConfig(userID string) UserConfig
type UserConfig ¶
type UserConfig struct { Permissions map[string]Permission Protected Protected }
Click to show internal directories.
Click to hide internal directories.