()
| 178 | } |
| 179 | |
| 180 | func (c *Config) flatten() { |
| 181 | // Add all user public keys to the config. |
| 182 | for username, user := range c.Users { |
| 183 | for _, key := range user.Keys { |
| 184 | c.publicKeys[key.RawMarshalAuthorizedKey()] = username |
| 185 | } |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | // SetHash will set the hash of the admin repo to use when loading. |
| 190 | func (c *Config) SetHash(hash string) error { |