mod_auth_basic

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

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