tailcfg: add more IsZero methods
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>reviewable/pr802/r1
parent
efb08e4fee
commit
070dfa0c3d
|
@ -41,8 +41,16 @@ func (u NodeID) IsZero() bool {
|
||||||
|
|
||||||
type GroupID ID
|
type GroupID ID
|
||||||
|
|
||||||
|
func (u GroupID) IsZero() bool {
|
||||||
|
return u == 0
|
||||||
|
}
|
||||||
|
|
||||||
type RoleID ID
|
type RoleID ID
|
||||||
|
|
||||||
|
func (u RoleID) IsZero() bool {
|
||||||
|
return u == 0
|
||||||
|
}
|
||||||
|
|
||||||
type CapabilityID ID
|
type CapabilityID ID
|
||||||
|
|
||||||
// MachineKey is the curve25519 public key for a machine.
|
// MachineKey is the curve25519 public key for a machine.
|
||||||
|
|
Loading…
Reference in New Issue