Documentation ¶
Index ¶
- Variables
- type Cache
- type User
- type Users
- func (v *Users) AppendUserToGroups(ctx context.Context, login string, groups ...int64) error
- func (v *Users) CreateGroup(ctx context.Context, name string) error
- func (v *Users) CreateUser(ctx context.Context, login, passwd string) error
- func (v *Users) DeleteUserFromGroups(ctx context.Context, login string, groups ...int64) error
- func (v *Users) Down() error
- func (v *Users) Get(ctx context.Context, login string) (User, error)
- func (v *Users) HasUserInGroup(ctx context.Context, login string, groups ...int64) bool
- func (v *Users) ListGroup(ctx context.Context) (map[int64]string, error)
- func (v *Users) Up(ctx app.Context) error
- func (v *Users) ValidateUserPasswd(ctx context.Context, login, passwd string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Plugin = plugins.Plugin{ Inject: NewUsers, }
Functions ¶
This section is empty.
Types ¶
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func (*Users) AppendUserToGroups ¶
func (*Users) CreateUser ¶
func (*Users) DeleteUserFromGroups ¶
func (*Users) HasUserInGroup ¶
Click to show internal directories.
Click to hide internal directories.