mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
tailcfg: add more IsZero methods
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
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
Block a user