mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-12 17:59:06 +02:00
10 lines
322 B
Go
10 lines
322 B
Go
package ipcauth
|
|
|
|
// KnownForTest returns a copy of id marked as kernel-attested, so packages
|
|
// outside ipcauth can build identity fixtures. A real Identity is only ever
|
|
// produced by a peer-credential read, nothing outside a test should call this.
|
|
func KnownForTest(id Identity) Identity {
|
|
id.known = true
|
|
return id
|
|
}
|