adapter

package
v1.0.1006 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 (this *Adapter) AddPolicies(sec string, ptype string, rules [][]string) error

func (*Adapter) AddPolicy

func (this *Adapter) AddPolicy(sec string, ptype string, rule []string) error

func (*Adapter) IsFiltered

func (this *Adapter) IsFiltered() bool

func (*Adapter) LoadFilteredPolicy

func (this *Adapter) LoadFilteredPolicy(model model.Model, filter any) error

func (*Adapter) LoadPolicy

func (this *Adapter) LoadPolicy(model model.Model) error

func (*Adapter) RemoveFilteredPolicy

func (this *Adapter) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error

func (*Adapter) RemovePolicies

func (this *Adapter) RemovePolicies(sec string, ptype string, rules [][]string) error

func (*Adapter) RemovePolicy

func (this *Adapter) RemovePolicy(sec string, ptype string, rule []string) error

func (*Adapter) SavePolicy

func (this *Adapter) SavePolicy(model model.Model) error

func (*Adapter) UpdatePolicy

func (this *Adapter) UpdatePolicy(sec string, ptype string, oldRule, newPolicy []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL