netconfig

package
v0.0.0-...-69e95d2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNetInterfaceName

func DefaultNetInterfaceName(netlinkClient netlinkwrapper.NetLink) (string, error)

DefaultNetInterfaceName returns the device name of the first default network interface available on the instance. If none exist, an empty string and nil will be returned.

Types

type NetworkConfigClient

type NetworkConfigClient struct {
	NetlinkClient netlinkwrapper.NetLink
}

func NewNetworkConfigClient

func NewNetworkConfigClient() *NetworkConfigClient

Jump to

Keyboard shortcuts

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