Documentation ¶
Index ¶
- type Adapter
- func (this *Adapter) AddPolicies(sec string, ptype string, rules [][]string) error
- func (this *Adapter) AddPolicy(sec string, ptype string, rule []string) error
- func (this *Adapter) IsFiltered() bool
- func (this *Adapter) LoadFilteredPolicy(model model.Model, filter any) error
- func (this *Adapter) LoadPolicy(model model.Model) error
- func (this *Adapter) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error
- func (this *Adapter) RemovePolicies(sec string, ptype string, rules [][]string) error
- func (this *Adapter) RemovePolicy(sec string, ptype string, rule []string) error
- func (this *Adapter) SavePolicy(model model.Model) error
- func (this *Adapter) UpdatePolicy(sec string, ptype string, oldRule, newPolicy []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { }
*
- 适配器 *
- @create 2021-9-9
- @author deatil
func (*Adapter) AddPolicies ¶
func (*Adapter) IsFiltered ¶
func (*Adapter) LoadFilteredPolicy ¶
func (*Adapter) RemoveFilteredPolicy ¶
func (*Adapter) RemovePolicies ¶
func (*Adapter) RemovePolicy ¶
Click to show internal directories.
Click to hide internal directories.