tailcfg: add more IsZero methods

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder 2020-09-30 17:47:07 -07:00
parent efb08e4fee
commit 070dfa0c3d
1 changed files with 8 additions and 0 deletions

View File

@ -41,8 +41,16 @@ func (u NodeID) IsZero() bool {
type GroupID ID
func (u GroupID) IsZero() bool {
return u == 0
}
type RoleID ID
func (u RoleID) IsZero() bool {
return u == 0
}
type CapabilityID ID
// MachineKey is the curve25519 public key for a machine.