Documentation
¶
Index ¶
- Constants
- type CFeature
- func (f *CFeature) AddUserToGroup(id string, groups ...string) (err error)
- func (f *CFeature) AuthUserPresent(id string) (present bool)
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) GetAuthUser(id string) (user *userbase.AuthUser, err error)
- func (f *CFeature) GetUserGroups(id string) (groups userbase.Groups)
- func (f *CFeature) GetUserSecret(id string) (secret string)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) IsUserInGroup(id string, group userbase.Group) (present bool)
- func (f *CFeature) Make() Feature
- func (f *CFeature) SetUser(user userbase.AuthUser) (err error)
- func (f *CFeature) Setup(enjin feature.Internals)
- func (f *CFeature) Shutdown()
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "user-base-htenv"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFeature ¶
func (*CFeature) AddUserToGroup ¶
func (*CFeature) AuthUserPresent ¶ added in v0.2.0
func (*CFeature) GetAuthUser ¶ added in v0.2.0
func (*CFeature) GetUserGroups ¶
func (*CFeature) GetUserSecret ¶
func (*CFeature) IsUserInGroup ¶
type Feature ¶
type Feature interface { feature.Feature userbase.SecretsProvider userbase.AuthUserProvider userbase.GroupsProvider }
type MakeFeature ¶
type MakeFeature interface {
Make() Feature
}
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.