-
Notifications
You must be signed in to change notification settings - Fork 16
/
client_others.go
44 lines (34 loc) · 942 Bytes
/
client_others.go
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
33
34
35
36
37
38
39
40
41
42
43
44
//go:build !linux
// +build !linux
package taskstats
import (
"fmt"
"runtime"
)
// errUnimplemented is returned by all functions on platforms that
// cannot make use of taskstats.
var errUnimplemented = fmt.Errorf("taskstats not implemented on %s/%s",
runtime.GOOS, runtime.GOARCH)
var _ osClient = &client{}
// A client is an unimplemented taskstats client.
type client struct{}
// newClient always returns an error.
func newClient() (*client, error) {
return nil, errUnimplemented
}
// Close implements osClient.
func (c *client) Close() error {
return errUnimplemented
}
// CGroupStats implements osClient.
func (c *client) CGroupStats(path string) (*CGroupStats, error) {
return nil, errUnimplemented
}
// PID implements osClient.
func (c *client) PID(pid int) (*Stats, error) {
return nil, errUnimplemented
}
// TGID implements osClient.
func (c *client) TGID(tgid int) (*Stats, error) {
return nil, errUnimplemented
}