Documentation ¶
Index ¶
- type UserDatabase
- func (db *UserDatabase) Close()
- func (db *UserDatabase) GetChanges(ctx context.Context, uwg types.UsersWithGroups) ([]types.User, []types.User, error)
- func (db *UserDatabase) GetGroupByGID(ctx context.Context, gid uint) (types.Group, error)
- func (db *UserDatabase) GetGroupByName(ctx context.Context, name string) (types.Group, error)
- func (db *UserDatabase) GetGroups(ctx context.Context) ([]types.Group, error)
- func (db *UserDatabase) GetUserByName(ctx context.Context, name string) (types.User, error)
- func (db *UserDatabase) GetUserByUID(ctx context.Context, uid uint) (types.User, error)
- func (db *UserDatabase) GetUsers(ctx context.Context) ([]types.User, error)
- func (db *UserDatabase) Migrate() error
- func (db *UserDatabase) Sync(ctx context.Context, uwg types.UsersWithGroups) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserDatabase ¶
type UserDatabase struct {
// contains filtered or unexported fields
}
func NewUserDatabase ¶
func NewUserDatabase(path string, ro ...bool) (*UserDatabase, error)
func (*UserDatabase) Close ¶
func (db *UserDatabase) Close()
func (*UserDatabase) GetChanges ¶
func (db *UserDatabase) GetChanges(ctx context.Context, uwg types.UsersWithGroups) ([]types.User, []types.User, error)
func (*UserDatabase) GetGroupByGID ¶
func (*UserDatabase) GetGroupByName ¶
func (*UserDatabase) GetUserByName ¶
func (*UserDatabase) GetUserByUID ¶
func (*UserDatabase) Migrate ¶
func (db *UserDatabase) Migrate() error
func (*UserDatabase) Sync ¶
func (db *UserDatabase) Sync(ctx context.Context, uwg types.UsersWithGroups) error
Click to show internal directories.
Click to hide internal directories.