Versions in this module Expand all Collapse all v0 v0.2.0 Nov 19, 2022 v0.1.0 Aug 20, 2021 Changes in this version + func NewModel(fsys fs.FS, filePath string) (model.Model, error) + type Adapter struct + func NewAdapter(fsys fs.FS, filePath string) *Adapter + func (a *Adapter) AddPolicy(sec string, ptype string, rule []string) error + func (a *Adapter) LoadPolicy(model model.Model) error + func (a *Adapter) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error + func (a *Adapter) RemovePolicy(sec string, ptype string, rule []string) error + func (a *Adapter) SavePolicy(model model.Model) error