Files
privatae-bastion/client-go/coders_other.go
T
Privatae e4c9b69b46
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m4s
ci / fuzz (push) Successful in 3m45s
bastion 0.53.2
2026-10-20 04:42:14 +00:00

26 lines
686 B
Go

//go:build !linux
package main
import (
"net"
"os"
"path/filepath"
)
// Coder mode is Linux-only in this cut (coders.go); run-up refuses before
// either of these is reached, and the heartbeat never advertises it.
func coderSocketOwner(p string) (int, bool) { return -1, false }
// coderFileOwner: no owner is known here, so no runs directory passes.
func coderFileOwner(fi os.FileInfo) (int, bool) { return -1, false }
func coderReadMemInfo() (total, avail uint64, ok bool) { return 0, 0, false }
func coderReadPSIMem() (float64, bool) { return 0, false }
func coderListenUnix(dir, name string) (net.Listener, error) {
return net.Listen("unix", filepath.Join(dir, name))
}