()
| 19 | |
| 20 | } |
| 21 | func reset() { |
| 22 | pConfig := make(map[string]map[string][]string) |
| 23 | err := yaml.Unmarshal(data, &pConfig) |
| 24 | if err != nil { |
| 25 | panic(err) |
| 26 | } |
| 27 | for group, rules := range pConfig { |
| 28 | for access, paths := range rules { |
| 29 | av := permit.FormatAccess(group, access) |
| 30 | permit.AddPermitRule(av, paths...) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected