Documentation ¶
Index ¶
- func AddHostEntryToInstance(driver drivers.Driver, hostname string, ipAddress string)
- 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 HasNameserverConfiguredLocally(nameserver string) (bool, 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 OverrideInsecureSkipVerifyForLocalConnections(insecureSkipVerify bool) error
- func OverrideProxyForLocalConnections(proxyAddr string) error
- func WriteNetworkSettingsToInstance(driver drivers.Driver, networkSettings NetworkSettings) bool
- type NetworkSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHostEntryToInstance ¶ added in v1.25.0
AddHostEntryToInstance will add an entry to /etc/hosts
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 HasNameserverConfiguredLocally ¶ added in v1.16.0
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 OverrideInsecureSkipVerifyForLocalConnections ¶ added in v1.25.0
AllowInsecureCertificatesOnLocalConnections will not verify certificates for TLS connections
func OverrideProxyForLocalConnections ¶ added in v1.25.0
OverrideProxyForLocalConnections will set a single proxy target for the default connection
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