Documentation ¶
Index ¶
- Constants
- func AuthBasicConfCheck(conf AuthBasicConfFile) error
- func AuthBasicRuleCheck(conf AuthBasicRuleFile) error
- func ProductRulesCheck(conf *ProductRulesFile) error
- func RuleListCheck(conf *RuleFileList) error
- type AuthBasicConf
- type AuthBasicConfFile
- type AuthBasicRule
- type AuthBasicRuleFile
- type AuthBasicRuleTable
- type ConfModAuthBasic
- type ModuleAuthBasic
- type ModuleAuthBasicState
- type ProductRules
- type ProductRulesFile
- type RuleFileList
- type RuleList
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 AuthBasicRuleFile ¶
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 ¶
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 (m *ModuleAuthBasic) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
func (*ModuleAuthBasic) Name ¶
func (m *ModuleAuthBasic) Name() string
type ModuleAuthBasicState ¶
type ProductRules ¶
type ProductRulesFile ¶
type ProductRulesFile map[string]*RuleFileList
type RuleFileList ¶
type RuleFileList []AuthBasicRuleFile
type RuleList ¶
type RuleList []AuthBasicRule
Click to show internal directories.
Click to hide internal directories.