tailcfg: add more IsZero methods
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
@ -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.
|
||||||
|
Reference in New Issue
Block a user