mod_auth_basic

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModAuthBasic = "mod_auth_basic"
)

Variables

This section is empty.

Functions

func AuthBasicConfCheck

func AuthBasicConfCheck(conf AuthBasicConfFile) error

func AuthBasicRuleCheck

func AuthBasicRuleCheck(conf AuthBasicRuleFile) error

func ProductRulesCheck

func ProductRulesCheck(conf *ProductRulesFile) error

func RuleListCheck

func RuleListCheck(conf *RuleFileList) error

Types

type AuthBasicConf

type AuthBasicConf struct {
	Version string
	Config  ProductRules
}

func AuthBasicConfLoad

func AuthBasicConfLoad(filename string) (AuthBasicConf, error)

type AuthBasicConfFile

type AuthBasicConfFile struct {
	Version *string
	Config  *ProductRulesFile
}

type AuthBasicRule

type AuthBasicRule struct {
	Cond       condition.Condition
	UserPasswd map[string]string
	Realm      string
}

type AuthBasicRuleFile

type AuthBasicRuleFile struct {
	Cond     string
	UserFile string
	Realm    string
}

type AuthBasicRuleTable

type AuthBasicRuleTable struct {
	// contains filtered or unexported fields
}

func NewAuthBasicRuleTable

func NewAuthBasicRuleTable() *AuthBasicRuleTable

func (*AuthBasicRuleTable) Search

func (t *AuthBasicRuleTable) Search(product string) (*RuleList, bool)

func (*AuthBasicRuleTable) Update

func (t *AuthBasicRuleTable) Update(conf AuthBasicConf)

type ConfModAuthBasic

type ConfModAuthBasic struct {
	Basic struct {
		DataPath string
	}

	Log struct {
		OpenDebug bool
	}
}

func ConfLoad

func ConfLoad(filePath string, confRoot string) (*ConfModAuthBasic, error)

func (*ConfModAuthBasic) Check

func (cfg *ConfModAuthBasic) Check(confRoot string) error

type ModuleAuthBasic

type ModuleAuthBasic struct {
	// contains filtered or unexported fields
}

func NewModuleAuthBasic

func NewModuleAuthBasic() *ModuleAuthBasic

func (*ModuleAuthBasic) Init

func (*ModuleAuthBasic) Name

func (m *ModuleAuthBasic) Name() string

type ModuleAuthBasicState

type ModuleAuthBasicState struct {
	ReqAuthRuleHit   *metrics.Counter
	ReqAuthChallenge *metrics.Counter
	ReqAuthSuccess   *metrics.Counter
	ReqAuthFailure   *metrics.Counter
}

type ProductRules

type ProductRules map[string]*RuleList

type ProductRulesFile

type ProductRulesFile map[string]*RuleFileList

type RuleFileList

type RuleFileList []AuthBasicRuleFile

type RuleList

type RuleList []AuthBasicRule

Jump to

Keyboard shortcuts

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