MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / reset

Function reset

resources/permit/permit.go:21–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20}
21func 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected