htpasswd

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Tag feature.Tag = "user-base-htpasswd"

Variables

This section is empty.

Functions

This section is empty.

Types

type CFeature

type CFeature struct {
	feature.CFeature
	// contains filtered or unexported fields
}

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 (f *CFeature) AuthUserPresent(id string) (present bool)

func (*CFeature) Build

func (f *CFeature) Build(b feature.Buildable) (err error)

func (*CFeature) GetAuthUser added in v0.2.0

func (f *CFeature) GetAuthUser(id string) (user *userbase.AuthUser, err error)

func (*CFeature) GetUserGroups

func (f *CFeature) GetUserGroups(id string) (groups userbase.Groups)

func (*CFeature) GetUserSecret

func (f *CFeature) GetUserSecret(id string) (hash string)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) IsUserInGroup

func (f *CFeature) IsUserInGroup(id string, group userbase.Group) (present bool)

func (*CFeature) Make

func (f *CFeature) Make() Feature

func (*CFeature) Shutdown

func (f *CFeature) Shutdown()

func (*CFeature) Startup

func (f *CFeature) Startup(ctx *cli.Context) (err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL