NewAdapter is the constructor for Adapter.
(line string)
| 32 | |
| 33 | // NewAdapter is the constructor for Adapter. |
| 34 | func NewAdapter(line string) *Adapter { |
| 35 | return &Adapter{ |
| 36 | Line: line, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // LoadPolicy loads all policy rules from the storage. |
| 41 | func (a *Adapter) LoadPolicy(model model.Model) error { |
no outgoing calls
searching dependent graphs…