- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Sproch (0.23 sec)
-
internal/net/net.go
"github.com/prometheus/procfs" ) // GetInterfaceNetStats - get procfs.NetDevLine by interfaceName func GetInterfaceNetStats(interf string) (procfs.NetDevLine, error) { proc, err := procfs.Self() if err != nil { return procfs.NetDevLine{}, err } netDev, err := proc.NetDev() if err != nil { return procfs.NetDevLine{}, err } ndl, ok := netDev[interf] if !ok {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Jul 17 08:14:01 GMT 2023 - 1.2K bytes - Viewed (0) -
cni/pkg/nodeagent/net.go
// this can happen if the pod was dynamically added to the mesh after it was created. // in that case, try finding the netns using procfs. if err := s.rescanPod(pod); err != nil { log.Errorf("error scanning proc: error was %s", err) return nil, err } // try again. we can still get here if the pod is in the process of being created. // in this case the CNI will be invoked soon and provide us with the netns.
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.2K bytes - Viewed (1)