Documentation ¶
Index ¶
- Constants
- type Authentication
- func (m *Authentication) Authenticate(usr, pw string) bool
- func (m *Authentication) ChangeUserDbAccess(usr, db string, grant bool) error
- func (m *Authentication) ChangeUserPassword(usr, pw string) error
- func (m *Authentication) ChangeUserStatus(usr string, isactive bool) error
- func (m *Authentication) ClearAll() error
- func (m *Authentication) HasDbAccess(usr, db string) bool
- func (m *Authentication) ListUser(rgx string) ([]string, error)
- func (m *Authentication) NewUser(usr, pw string, root bool) error
- func (m *Authentication) RemoveUser(usr string) error
- func (m *Authentication) Start(config string) error
- func (m *Authentication) UserInfo(u string) (*bytengine.User, error)
- type Config
Constants ¶
View Source
const (
AuthenticationCollection = "bfs_auth"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func NewAuthentication ¶
func NewAuthentication() *Authentication
func (*Authentication) Authenticate ¶
func (m *Authentication) Authenticate(usr, pw string) bool
func (*Authentication) ChangeUserDbAccess ¶
func (m *Authentication) ChangeUserDbAccess(usr, db string, grant bool) error
func (*Authentication) ChangeUserPassword ¶
func (m *Authentication) ChangeUserPassword(usr, pw string) error
func (*Authentication) ChangeUserStatus ¶
func (m *Authentication) ChangeUserStatus(usr string, isactive bool) error
func (*Authentication) ClearAll ¶
func (m *Authentication) ClearAll() error
func (*Authentication) HasDbAccess ¶
func (m *Authentication) HasDbAccess(usr, db string) bool
func (*Authentication) RemoveUser ¶
func (m *Authentication) RemoveUser(usr string) error
func (*Authentication) Start ¶
func (m *Authentication) Start(config string) error
Click to show internal directories.
Click to hide internal directories.