networkutils

package
v0.0.0-...-b702281 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 10

Documentation

Overview

Package networkutils is a collection of helpers for eni/watcher

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMACAddress

func GetMACAddress(ctx context.Context,
	timeout time.Duration,
	dev string,
	netlinkClient netlinkwrapper.NetLink) (string, error)

GetMACAddress retrieves the MAC address of a device using netlink

func IsValidNetworkDevice

func IsValidNetworkDevice(devicePath string) bool

IsValidNetworkDevice is used to differentiate virtual and physical devices Returns true only for pci or vif interfaces

Types

This section is empty.

Directories

Path Synopsis
Package mock_networkutils is a generated GoMock package.
Package mock_networkutils is a generated GoMock package.

Jump to

Keyboard shortcuts

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