(principal string, policies []*schema.Policy)
| 364 | } |
| 365 | |
| 366 | func filterPolicies(principal string, policies []*schema.Policy) []*schema.Policy { |
| 367 | var matchedPolicies []*schema.Policy |
| 368 | for _, policy := range policies { |
| 369 | if policy.Principal == principal { |
| 370 | matchedPolicies = append(matchedPolicies, policy) |
| 371 | } |
| 372 | } |
| 373 | return matchedPolicies |
| 374 | } |
| 375 | |
| 376 | func getTemplateCommand() cli.Command { |
| 377 | return cli.Command{ |
no outgoing calls
no test coverage detected