mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +02:00
20 lines
565 B
Go
20 lines
565 B
Go
//go:build !windows && !linux && !darwin
|
|
|
|
package ctrld
|
|
|
|
import "context"
|
|
|
|
// DiscoverMainUser returns "unknown" for unsupported platforms.
|
|
// This is a stub implementation for platforms where username detection
|
|
// is not yet implemented.
|
|
func DiscoverMainUser(ctx context.Context) string {
|
|
LoggerFromCtx(ctx).Debug().Msg("username discovery not implemented for this platform")
|
|
return "unknown"
|
|
}
|
|
|
|
// discoverSessionUser returns "" because no session source is implemented for
|
|
// this platform.
|
|
func discoverSessionUser(ctx context.Context) string {
|
|
return ""
|
|
}
|