Documentation
¶
Overview ¶
package common contains common functions and types used by all Retina Windows plugins.
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
Constants ¶
View Source
const ( // KeyPath is the registry key path where the CiliumOnWindows value is stored. // This key is used to determine if Cilium is enabled on Windows. KeyPath = `SYSTEM\CurrentControlSet\Services\hns\State` // CiliumOnWindows is the registry value name that indicates if Cilium is enabled on Windows. // If this value is set to 1, Cilium is enabled on Windows. If this value is not set or set to 0, Cilium is not enabled. ValueName = "CiliumOnWindows" )
View Source
const ( // MapPath is the path to pinned BPF maps MapPath = "/sys/fs/bpf" // FilterMapName is the name of the BPF filter map FilterMapName = "retina_filter" // ConntrackMapName is the name of the BPF conntrack map ConntrackMapName = "retina_conntrack" )
Variables ¶
This section is empty.
Functions ¶
func IsCiliumOnWindowsEnabled ¶ added in v1.2.8
IsCiliumOnWindowsEnabled checks if the CiliumOnWindows registry value is set to 1. Returns (true, nil) if set to 1, (false, nil) if not set or not exist, (false, err) for other errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.