common

package
v1.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 14 Imported by: 6

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

func IsCiliumOnWindowsEnabled() (bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL