Documentation ¶
Index ¶
- func AddNameserversToInstance(driver drivers.Driver, nameservers []string)
- func CheckInternetConnectivity(address string) bool
- func ConfigureDynamicAssignment(driver drivers.Driver)
- func ConfigureNetworking(machineName string, networkSettings NetworkSettings)
- func ConfigureStaticAssignment(driver drivers.Driver)
- func DetermineHostIP(driver drivers.Driver) (string, error)
- func GetIP(driver drivers.Driver) (string, error)
- func HasNameserversConfigured(driver drivers.Driver) bool
- func HostIPs() []string
- func IsIPReachable(driver drivers.Driver, ip string, printOutput bool) bool
- func IsRetrievable(driver drivers.Driver, url string, printOutput bool) bool
- func NetworkContains(network string, ip string) bool
- func WriteNetworkSettingsToInstance(driver drivers.Driver, networkSettings NetworkSettings) bool
- type NetworkSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNameserversToInstance ¶ added in v1.15.0
AddNameserversToInstance will add additional nameservers to the end of the /etc/resolv.conf file inside the instance.
func CheckInternetConnectivity ¶ added in v1.15.0
CheckInternetConnectivity return false if user is not connected to internet
func ConfigureDynamicAssignment ¶ added in v1.15.0
ConfigureDynamicAssignment will write configuration files which will force DHCP assignment, which will be used by minishift-set-ipaddress on start of the instance.
func ConfigureNetworking ¶
func ConfigureNetworking(machineName string, networkSettings NetworkSettings)
func ConfigureStaticAssignment ¶ added in v1.15.0
ConfigureStaticAssignment will collect NetworkSettings from the current running instance and write this the values as configuration files, which will be used by minishift-set-ipaddress on start of the instance.
func HasNameserversConfigured ¶ added in v1.15.0
HasNameserversConfigured returns true if the instance uses nameservers This is related to an issues when LCOW is used on Windows.
func HostIPs ¶ added in v1.15.0
func HostIPs() []string
HostIPs returns the IP addresses assigned to the host
func IsIPReachable ¶ added in v1.15.0
IsIPReachable returns true is IP address is reachable from the virtual instance
func IsRetrievable ¶ added in v1.15.0
func NetworkContains ¶ added in v1.15.0
NetworkContains returns true if the IP address belongs to the network given
func WriteNetworkSettingsToInstance ¶ added in v1.15.0
func WriteNetworkSettingsToInstance(driver drivers.Driver, networkSettings NetworkSettings) bool
WriteNetworkSettingsToInstance takes NetworkSettings and writes the values as a configuration file to be used by minishift-set-ipaddress
Types ¶
type NetworkSettings ¶
type NetworkSettings struct { Device string IPAddress string Netmask string Gateway string DNS1 string DNS2 string UseDHCP bool Disabled bool }
func GetNetworkSettingsFromInstance ¶ added in v1.15.0
func GetNetworkSettingsFromInstance(driver drivers.Driver) NetworkSettings
GetNetworkSettingsFromInstance will collect various network settings from the running instance and will populate a NetworkSettings struct with these values