github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/monitor/constants/constants.go (about)

     1  package constants
     2  
     3  const (
     4  	// DefaultDockerSocket is the default socket to use to communicate with docker
     5  	// it is canonicalized with utils.GetPathOnHostViaProcRoot() at point of use
     6  	DefaultDockerSocket = "/var/run/docker.sock"
     7  
     8  	// DefaultDockerSocketType is unix
     9  	DefaultDockerSocketType = "unix"
    10  
    11  	// K8sPodName is pod name of K8s pod.
    12  	K8sPodName = "io.kubernetes.pod.name"
    13  
    14  	// K8sPodNamespace is the namespace of K8s pod.
    15  	K8sPodNamespace = "io.kubernetes.pod.namespace"
    16  )
    17  
    18  const (
    19  	// DockerHostMode is the string of the network mode that indicates a host namespace
    20  	DockerHostMode = "host"
    21  	// DockerLinkedMode is the string of the network mode that indicates shared network namespace
    22  	DockerLinkedMode = "container:"
    23  
    24  	// DockerHostPUID represents the PUID of the host network container.
    25  	DockerHostPUID = "HostPUID"
    26  
    27  	// UserLabelPrefix is the label prefix for all user defined labels
    28  	UserLabelPrefix = "@usr:"
    29  )
    30  
    31  const (
    32  	// K8sMonitorRegistrationName is used as the registration constant with the external sender (gRPC server)
    33  	K8sMonitorRegistrationName = "k8sMonitor"
    34  
    35  	// MonitorExtSenderName is the name of the monitor that registers with the trireme monitors to send events
    36  	MonitorExtSenderName = "grpcMonitorServer"
    37  )