Documentation ¶
Index ¶
- Constants
- type CFeature
- func (f *CFeature) AddHTGroupsFile(filepath string) MakeFeature
- func (f *CFeature) AddHTPasswdFile(filepath string) MakeFeature
- 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) (hash 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) Shutdown()
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "user-base-htpasswd"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFeature ¶
func (*CFeature) AddHTGroupsFile ¶
func (f *CFeature) AddHTGroupsFile(filepath string) MakeFeature
func (*CFeature) AddHTPasswdFile ¶
func (f *CFeature) AddHTPasswdFile(filepath string) MakeFeature
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.AuthUserProvider userbase.GroupsProvider userbase.SecretsProvider }
type MakeFeature ¶
type MakeFeature interface { Make() Feature AddHTPasswdFile(filepath string) MakeFeature AddHTGroupsFile(filepath string) MakeFeature }
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.