(s string)
| 111 | } |
| 112 | |
| 113 | func readDecodedRole(s string) (*spec.PgUser, error) { |
| 114 | var result spec.PgUser |
| 115 | if err := yaml.Unmarshal([]byte(s), &result); err != nil { |
| 116 | return nil, fmt.Errorf("could not decode yaml role: %v", err) |
| 117 | } |
| 118 | return &result, nil |
| 119 | } |
| 120 | |
| 121 | var emptyName = (spec.NamespacedName{}) |
| 122 |
no outgoing calls
no test coverage detected