Documentation ¶
Index ¶
- type LoginOptions
- type PasswordValidator
- type UserPolicy
- type Users
- func (u *Users) All(ctx context.Context, server *phpx.Server) (users []status.DrupalUser, err error)
- func (u *Users) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
- func (u *Users) GetPasswordValidator(ctx context.Context, username string) (pv PasswordValidator, err error)
- func (u *Users) Login(ctx context.Context, server *phpx.Server, username string) (dest *url.URL, err error)
- func (u *Users) LoginWithOpt(ctx context.Context, server *phpx.Server, username string, opts LoginOptions) (dest *url.URL, err error)
- func (u *Users) SetPassword(ctx context.Context, server *phpx.Server, username, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginOptions ¶
type PasswordValidator ¶
type PasswordValidator struct {
// contains filtered or unexported fields
}
func (PasswordValidator) Check ¶
func (pv PasswordValidator) Check(ctx context.Context, password string) bool
func (PasswordValidator) CheckDictionary ¶
func (PasswordValidator) Close ¶
func (pv PasswordValidator) Close() error
type UserPolicy ¶
type UserPolicy struct {
ingredient.Base
}
func (*UserPolicy) Fetch ¶
func (up *UserPolicy) Fetch(flags ingredient.FetcherFlags, target *status.WissKI) (err error)
type Users ¶
type Users struct { ingredient.Base Dependencies struct { PHP *php.PHP } }
func (*Users) All ¶
func (u *Users) All(ctx context.Context, server *phpx.Server) (users []status.DrupalUser, err error)
All returns all known usernames
func (*Users) Fetch ¶
func (u *Users) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
func (*Users) GetPasswordValidator ¶
func (*Users) Login ¶
func (u *Users) Login(ctx context.Context, server *phpx.Server, username string) (dest *url.URL, err error)
Login generates a login link for the user with the given username
Click to show internal directories.
Click to hide internal directories.