mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-04 04:29:06 +02:00
[management] Add peer expiration reason to activity meta (#6619)
This commit is contained in:
@@ -34,7 +34,16 @@ import (
|
||||
"github.com/netbirdio/netbird/version"
|
||||
)
|
||||
|
||||
const remoteJobsMinVer = "0.64.0"
|
||||
type peerExpirationReason string
|
||||
|
||||
const (
|
||||
remoteJobsMinVer = "0.64.0"
|
||||
|
||||
peerExpirationSessionExpired peerExpirationReason = "session expiration"
|
||||
peerExpirationInactivity peerExpirationReason = "inactivity timeout"
|
||||
peerExpirationValidationFailed peerExpirationReason = "failed integration validation"
|
||||
peerExpirationUserBlocked peerExpirationReason = "blocked owner account"
|
||||
)
|
||||
|
||||
// GetPeers returns peers visible to the user within an account.
|
||||
// Users with "peers:read" see all peers. Otherwise, users see only their own peers, or none if restricted by account settings.
|
||||
|
||||
Reference in New Issue
Block a user