access.go 615 B

1234567891011121314151617
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. package ipnauth
  4. // ProfileAccess is a bitmask representing the requested, required, or granted
  5. // access rights to an [ipn.LoginProfile].
  6. //
  7. // It is not to be written to disk or transmitted over the network in its integer form,
  8. // but rather serialized to a string or other format if ever needed.
  9. type ProfileAccess uint
  10. // Define access rights that might be granted or denied on a per-profile basis.
  11. const (
  12. // Disconnect is required to disconnect (or switch from) a Tailscale profile.
  13. Disconnect = ProfileAccess(1 << iota)
  14. )