MCPcopy Create free account
hub / github.com/belak/gitdir / flatten

Method flatten

config.go:180–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178}
179
180func (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.
190func (c *Config) SetHash(hash string) error {

Callers 2

loadConfigMethod · 0.95
newTestConfigFunction · 0.95

Calls 1

Tested by 1

newTestConfigFunction · 0.76