netconfig

package
v0.0.0-...-41d593c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 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