all: keep UserProfiles a slice instead of a map for longer

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder
2020-09-28 14:59:10 -07:00
committed by Josh Bleecher Snyder
parent 4d4ca2e496
commit e5894aba42
4 changed files with 8 additions and 13 deletions

View File

@ -44,11 +44,9 @@ type NetworkMap struct {
// ACLs
User tailcfg.UserID
Domain string
// TODO(crawshaw): reduce UserProfiles to []tailcfg.UserProfile?
// There are lots of ways to slice this data, leave it up to users.
UserProfiles map[tailcfg.UserID]tailcfg.UserProfile
User tailcfg.UserID
Domain string
UserProfiles []tailcfg.UserProfile
// TODO(crawshaw): Groups []tailcfg.Group
// TODO(crawshaw): Capabilities []tailcfg.Capability
}