-
Notifications
You must be signed in to change notification settings - Fork 51
/
constants.go
37 lines (28 loc) · 1.21 KB
/
constants.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
package constants
const (
// DefaultDockerSocket is the default socket to use to communicate with docker
// it is canonicalized with utils.GetPathOnHostViaProcRoot() at point of use
DefaultDockerSocket = "/var/run/docker.sock"
// DefaultDockerSocketType is unix
DefaultDockerSocketType = "unix"
// K8sPodName is pod name of K8s pod.
K8sPodName = "io.kubernetes.pod.name"
// K8sPodNamespace is the namespace of K8s pod.
K8sPodNamespace = "io.kubernetes.pod.namespace"
)
const (
// DockerHostMode is the string of the network mode that indicates a host namespace
DockerHostMode = "host"
// DockerLinkedMode is the string of the network mode that indicates shared network namespace
DockerLinkedMode = "container:"
// DockerHostPUID represents the PUID of the host network container.
DockerHostPUID = "HostPUID"
// UserLabelPrefix is the label prefix for all user defined labels
UserLabelPrefix = "@usr:"
)
const (
// K8sMonitorRegistrationName is used as the registration constant with the external sender (gRPC server)
K8sMonitorRegistrationName = "k8sMonitor"
// MonitorExtSenderName is the name of the monitor that registers with the trireme monitors to send events
MonitorExtSenderName = "grpcMonitorServer"
)