Documentation ¶
Index ¶
- func NewCentosNetManager(fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, ...) centosNetManager
- func NewCmdRoutesSearcher(runner boshsys.CmdRunner) cmdRoutesSearcher
- func NewDefaultNetworkResolver(routesSearcher RoutesSearcher, ipResolver boship.Resolver) defaultNetworkResolver
- func NewUbuntuNetManager(fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, ...) ubuntuNetManager
- type DefaultNetworkResolver
- type Manager
- type Route
- type RoutesSearcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCentosNetManager ¶
func NewCentosNetManager( fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, defaultNetworkResolver DefaultNetworkResolver, ipResolver boship.Resolver, addressBroadcaster bosharp.AddressBroadcaster, logger boshlog.Logger, ) centosNetManager
func NewCmdRoutesSearcher ¶
func NewDefaultNetworkResolver ¶
func NewDefaultNetworkResolver( routesSearcher RoutesSearcher, ipResolver boship.Resolver, ) defaultNetworkResolver
func NewUbuntuNetManager ¶
func NewUbuntuNetManager( fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, defaultNetworkResolver DefaultNetworkResolver, ipResolver boship.Resolver, addressBroadcaster bosharp.AddressBroadcaster, logger boshlog.Logger, ) ubuntuNetManager
Types ¶
type DefaultNetworkResolver ¶
type DefaultNetworkResolver interface { // Ideally we would find a network based on a MAC address // but current CPI implementations do not include it GetDefaultNetwork() (boshsettings.Network, error) }
type Manager ¶
type Manager interface { // SetupManualNetworking configures network interfaces with a static ip. // If errCh is provided, nil or an error will be sent // upon completion of background network reconfiguration (e.g. arping). SetupManualNetworking(networks boshsettings.Networks, errCh chan error) error // SetupDhcp configures network interfaces using DHCP. // If errCh is provided, nil or an error will be sent // upon completion of background network reconfiguration (e.g. arping). SetupDhcp(networks boshsettings.Networks, errCh chan error) error DefaultNetworkResolver }
type RoutesSearcher ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.