Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OperationalPath is the base path to store the operational details in the kvstore. OperationalPath = "cilium-net/operational" // ServicesKeyPath is the base path where services are stored in the kvstore. ServicesKeyPath = OperationalPath + "/ServicesV2/SHA256SUMServices" // ServicePathV1 is the base path for the services stored in the kvstore. ServicePathV1 = OperationalPath + "/Services/" // NodeConfigFile is the name of the C header which contains the node's // network parameters. NodeConfigFile = "node_config.h" // CHeaderFileName is the name of the C header file for BPF programs for a // particular endpoint. CHeaderFileName = "lxc_config.h" // NetdevHeaderFileName is the name of the header file used for bpf_netdev.c and bpf_overlay.c. NetdevHeaderFileName = "netdev_config.h" // PreFilterHeaderFileName is the name of the header file used for bpf_xdp.c. PreFilterHeaderFileName = "filter_config.h" // CiliumCHeaderPrefix is the prefix using when printing/writing an endpoint in a // base64 form. CiliumCHeaderPrefix = "CILIUM_BASE64_" )
Variables ¶
This section is empty.
Functions ¶
func C2GoArray ¶ added in v1.5.0
C2GoArray transforms an hexadecimal string representation into a byte slice. Example: str := "0x12, 0xff, 0x0, 0x1" fmt.Print(C2GoArray(str)) //`{0x12, 0xFF, 0x0, 0x01}`"
func FindEPConfigCHeader ¶
FindEPConfigCHeader returns the full path of the file that is the CHeaderFileName from the slice of files
func GetCiliumVersionString ¶
GetCiliumVersionString returns the first line containing CiliumCHeaderPrefix.
func MoveNewFilesTo ¶ added in v1.5.0
MoveNewFilesTo copies all files, that do not exist in newDir, from oldDir.
func RequireRootPrivilege ¶ added in v0.9.0
func RequireRootPrivilege(cmd string)
RequireRootPrivilege checks if the user running cmd is root. If not, it exits the program
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.