control/controlclient: remove Roles fields from client

They are unused.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
pull/797/head
Josh Bleecher Snyder 4 years ago committed by Josh Bleecher Snyder
parent c493e5804f
commit 4d4ca2e496

@ -656,7 +656,6 @@ func (c *Direct) PollNetMap(ctx context.Context, maxPolls int, cb func(*NetworkM
User: resp.Node.User, User: resp.Node.User,
UserProfiles: make(map[tailcfg.UserID]tailcfg.UserProfile), UserProfiles: make(map[tailcfg.UserID]tailcfg.UserProfile),
Domain: resp.Domain, Domain: resp.Domain,
Roles: resp.Roles,
DNS: resp.DNSConfig, DNS: resp.DNSConfig,
Hostinfo: resp.Node.Hostinfo, Hostinfo: resp.Node.Hostinfo,
PacketFilter: c.parsePacketFilter(resp.PacketFilter), PacketFilter: c.parsePacketFilter(resp.PacketFilter),

@ -49,7 +49,6 @@ type NetworkMap struct {
// TODO(crawshaw): reduce UserProfiles to []tailcfg.UserProfile? // TODO(crawshaw): reduce UserProfiles to []tailcfg.UserProfile?
// There are lots of ways to slice this data, leave it up to users. // There are lots of ways to slice this data, leave it up to users.
UserProfiles map[tailcfg.UserID]tailcfg.UserProfile UserProfiles map[tailcfg.UserID]tailcfg.UserProfile
Roles []tailcfg.Role
// TODO(crawshaw): Groups []tailcfg.Group // TODO(crawshaw): Groups []tailcfg.Group
// TODO(crawshaw): Capabilities []tailcfg.Capability // TODO(crawshaw): Capabilities []tailcfg.Capability
} }

@ -114,7 +114,6 @@ type UserProfile struct {
LoginName string // "alice@smith.com"; for display purposes only (provider is not listed) LoginName string // "alice@smith.com"; for display purposes only (provider is not listed)
DisplayName string // "Alice Smith" DisplayName string // "Alice Smith"
ProfilePicURL string ProfilePicURL string
Roles []RoleID
} }
type Node struct { type Node struct {
@ -554,7 +553,6 @@ type MapResponse struct {
Domain string Domain string
PacketFilter []FilterRule PacketFilter []FilterRule
UserProfiles []UserProfile UserProfiles []UserProfile
Roles []Role
// TODO: Groups []Group // TODO: Groups []Group
// TODO: Capabilities []Capability // TODO: Capabilities []Capability

Loading…
Cancel
Save