carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build !linux
2
3package host
4
5import "errors"
6
7// errOwnNotLinux is every ownership handoff off Linux: carlos system
8// install-channel runs only on a Linux box.
9var errOwnNotLinux = errors.New("install-channel's ownership handoff requires Linux")
10
11func ownByService(path string) error { return errOwnNotLinux }
12
13func ownDir(path string, uid, gid int) error { return errOwnNotLinux }
14
15func removeCacheEntry(dataDir, version string) error { return errOwnNotLinux }
16
17func slotState(path, want string) (slotKind, error) { return slotAbsent, errOwnNotLinux }
18
19func openChannelPolicy(path string, limit int64) ([]byte, error) { return nil, errOwnNotLinux }
20