forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tracer_unsupported.go
39 lines (30 loc) · 1.08 KB
/
tracer_unsupported.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
// +build !linux_bpf
package ebpf
// CurrentKernelVersion is not implemented on non-linux systems
func CurrentKernelVersion() (uint32, error) {
return 0, ErrNotImplemented
}
// Tracer is not implemented on non-linux systems
type Tracer struct{}
// NewTracer is not implemented on non-linux systems
func NewTracer(_ *Config) (*Tracer, error) {
return nil, ErrNotImplemented
}
// Stop is not implemented on non-linux systems
func (t *Tracer) Stop() {}
// GetActiveConnections is not implemented on non-linux systems
func (t *Tracer) GetActiveConnections(_ string) (*Connections, error) {
return nil, ErrNotImplemented
}
// GetStats is not implemented on non-linux systems
func (t *Tracer) GetStats() (map[string]interface{}, error) {
return nil, ErrNotImplemented
}
// DebugNetworkState is not implemented on non-linux systems
func (t *Tracer) DebugNetworkState(clientID string) (map[string]interface{}, error) {
return nil, ErrNotImplemented
}
// DebugNetworkMaps is not implemented on non-linux systems
func (t *Tracer) DebugNetworkMaps() (*Connections, error) {
return nil, ErrNotImplemented
}