Documentation
¶
Index ¶
- func Filter(fields ...interface{}) primitive.Group
- func MustNew(ctx context.Context, table *sqlike.Table) persist.FilteredAdapter
- func New(ctx context.Context, table *sqlike.Table) (persist.FilteredAdapter, error)
- type Adapter
- func (a *Adapter) AddPolicy(sec string, ptype string, rules []string) error
- func (a *Adapter) IsFiltered() bool
- func (a *Adapter) LoadFilteredPolicy(model model.Model, filter interface{}) error
- func (a *Adapter) LoadPolicy(model model.Model) error
- func (a *Adapter) RemoveFilteredPolicy(sec string, ptype string, idx int, values ...string) error
- func (a *Adapter) RemovePolicy(sec string, ptype string, rules []string) error
- func (a *Adapter) SavePolicy(model model.Model) error
- type Policy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter :
func (*Adapter) AddPolicy ¶
AddPolicy : adds a policy policy to the storage. This is part of the Auto-Save feature.
func (*Adapter) LoadFilteredPolicy ¶
LoadFilteredPolicy :
func (*Adapter) RemoveFilteredPolicy ¶
RemoveFilteredPolicy : removes policy rules that match the filter from the storage. This is part of the Auto-Save feature.
func (*Adapter) RemovePolicy ¶
RemovePolicy : removes a policy policy from the storage. This is part of the Auto-Save feature.
Click to show internal directories.
Click to hide internal directories.