Versions in this module Expand all Collapse all v2 v2.706.0 Dec 17, 2024 v2.705.0 Dec 17, 2024 Changes in this version + const DefaultAddress + const NicSettingsTemplate + const ResetDNSTemplate + const SetDNSTemplate + const UbuntuNetManagerLogTag + func LockFileExistsForConfiguredInterfaces(dirProvider boshdirs.Provider) bool + func LockFileExistsForDNS(fs boshsys.FileSystem, dirProvider boshdirs.Provider) bool + func LockFileExistsForRandomizedPasswords(fs boshsys.FileSystem, dirProvider boshdirs.Provider) bool + func NewDefaultNetworkResolver(routesSearcher RoutesSearcher, ipResolver boship.Resolver) boshsettings.DefaultNetworkResolver + func SetupIptables(host, port string, addr_array []net.IP) error — linux/amd64 + func SetupNatsFirewall(mbus string) error + func WriteLockFileForDNS(fs boshsys.FileSystem, dirProvider boshdirs.Provider) error + func WriteLockFileForRandomizedPasswords(fs boshsys.FileSystem, dirProvider boshdirs.Provider) error + type DHCPInterfaceConfiguration struct + Address string + Name string + PostUpRoutes boshsettings.Routes + func (c DHCPInterfaceConfiguration) IsVersion6() bool + func (c DHCPInterfaceConfiguration) Version6() string + type DHCPInterfaceConfigurations []DHCPInterfaceConfiguration + func (configs DHCPInterfaceConfigurations) HasVersion6() bool + func (configs DHCPInterfaceConfigurations) Len() int + func (configs DHCPInterfaceConfigurations) Less(i, j int) bool + func (configs DHCPInterfaceConfigurations) Swap(i, j int) + type Interface struct + Gateway string + Name string + type InterfaceConfigurationCreator interface + CreateInterfaceConfigurations func(boshsettings.Networks, map[string]string) ([]StaticInterfaceConfiguration, []DHCPInterfaceConfiguration, error) + func NewInterfaceConfigurationCreator(logger boshlog.Logger) InterfaceConfigurationCreator + type InterfaceManager interface + GetInterfaces func() ([]Interface, error) + func NewInterfaceManager() InterfaceManager + type KernelIPv6 interface + Enable func(stopCh <-chan struct{}) error + type KernelIPv6Impl struct + func NewKernelIPv6Impl(fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, logger boshlog.Logger) KernelIPv6Impl + func (net KernelIPv6Impl) Enable(stopCh <-chan struct{}) error + type MACAddressDetector interface + DetectMacAddresses func() (map[string]string, error) + func NewLinuxMacAddressDetector(fs boshsys.FileSystem) MACAddressDetector + func NewWindowsMacAddressDetector(runner boshsys.CmdRunner, interfacesFunction func() ([]gonet.Interface, error)) MACAddressDetector + type Manager interface + GetConfiguredNetworkInterfaces func() ([]string, error) + SetupIPv6 func(boshsettings.IPv6, <-chan struct{}) error + SetupNetworking func(networks boshsettings.Networks, mbus string, errCh chan error) error + func NewCentosNetManager(fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, ipResolver boship.Resolver, ...) Manager + func NewUbuntuNetManager(fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, ipResolver boship.Resolver, ...) Manager + func NewWindowsNetManager(runner boshsys.CmdRunner, ...) Manager + type Route struct + Destination string + Gateway string + InterfaceName string + Netmask string + func (r Route) IsDefault() bool + type RoutesSearcher interface + SearchRoutes func() ([]Route, error) + func NewRoutesSearcher(_ boshlog.Logger, cmdRunner boshsys.CmdRunner, ...) RoutesSearcher + func NewRoutesSearcher(logger boshlog.Logger, runner boshsys.CmdRunner, _ InterfaceManager) RoutesSearcher + type StaticInterfaceConfiguration struct + Address string + Broadcast string + Gateway string + IsDefaultForGateway bool + Mac string + Name string + Netmask string + Network string + PostUpRoutes boshsettings.Routes + VirtualInterfaces []VirtualInterface + func (c StaticInterfaceConfiguration) CIDR() (string, error) + func (c StaticInterfaceConfiguration) IsVersion6() bool + func (c StaticInterfaceConfiguration) Version6() string + type StaticInterfaceConfigurations []StaticInterfaceConfiguration + func (configs StaticInterfaceConfigurations) HasVersion6() bool + func (configs StaticInterfaceConfigurations) Len() int + func (configs StaticInterfaceConfigurations) Less(i, j int) bool + func (configs StaticInterfaceConfigurations) Swap(i, j int) + type UbuntuNetManager struct + func (net UbuntuNetManager) ComputeNetworkConfig(networks boshsettings.Networks) ([]StaticInterfaceConfiguration, []DHCPInterfaceConfiguration, []string, error) + func (net UbuntuNetManager) GetConfiguredNetworkInterfaces() ([]string, error) + func (net UbuntuNetManager) SetupIPv6(config boshsettings.IPv6, stopCh <-chan struct{}) error + func (net UbuntuNetManager) SetupNetworking(networks boshsettings.Networks, mbus string, errCh chan error) error + type VirtualInterface struct + Address string + Label string + type WindowsNetManager struct + func (net WindowsNetManager) ComputeNetworkConfig(networks boshsettings.Networks) ([]StaticInterfaceConfiguration, []DHCPInterfaceConfiguration, []string, error) + func (net WindowsNetManager) GetConfiguredNetworkInterfaces() ([]string, error) + func (net WindowsNetManager) SetupIPv6(_ boshsettings.IPv6, _ <-chan struct{}) error + func (net WindowsNetManager) SetupNetworking(networks boshsettings.Networks, mbus string, errCh chan error) error Other modules containing this package github.com/cloudfoundry/bosh-agent