Versions in this module Expand all Collapse all v0 v0.7.0 Oct 19, 2024 Changes in this version + func AnnotationEnabled(annotation string) bool + func AtomicCopy(srcFilepath, targetDir, targetFilename string) error + func AtomicWrite(path string, data []byte, mode os.FileMode) error + func CreateK8sClientSet(kubeconfig string) (kubernetes.Interface, error) + func DelKmeshRedirectAnnotation(client kubernetes.Interface, pod *corev1.Pod) error + func Execute(cmd string, args []string) error + func ExecuteWithRedirect(cmd string, args []string, stdout io.Writer) error + func GetK8sclient() (kubernetes.Interface, error) + func GetKernelVersion() string — linux/amd64 + func GetMapByName(name string) (*ebpf.Map, error) + func GetProgramByName(name string) (*ebpf.Program, error) + func HandleKmeshManage(ns string, enroll bool) error + func Ifname2ifindex(ifname string) (int, error) + func KernelVersionLowerThan5_13() bool — linux/amd64 + func PatchKmeshRedirectAnnotation(client kubernetes.Interface, pod *corev1.Pod) error + func ShouldEnroll(pod *corev1.Pod, ns *corev1.Namespace) bool