1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//go:build !linux && !darwin
package hostsvc
import (
"context"
"fmt"
"runtime"
)
func Open(ctx context.Context, cfg Config) (Manager, error) {
if err := cfg.Validate(); err != nil {
return nil, err
}
return nil, fmt.Errorf("%w: the %s backend is unsupported on %s; see plan 0011/0012", ErrUnsupported, cfg.Backend, runtime.GOOS)
}
func ListenPort(pid int) (int, error) {
return 0, fmt.Errorf("%w: reading a bound port from /proc on %s; see plan 0011/0012", ErrUnsupported, runtime.GOOS)
}
func ListenPorts(pid int) ([]int, error) {
return nil, fmt.Errorf("%w: reading bound ports from /proc on %s; see plan 0011/0012", ErrUnsupported, runtime.GOOS)
}
func OpenProcClient(ctx context.Context, cfg Config) (ProcClient, error) {
return nil, fmt.Errorf("%w: the proc backend is unsupported on %s; see plan 0011/0012", ErrUnsupported, runtime.GOOS)
}
func (Processes) Wait(ctx context.Context, pid int, startTicks uint64) error {
return fmt.Errorf("%w: waiting for pid %d on %s; see plan 0011/0012", ErrUnsupported, pid, runtime.GOOS)
}