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