Documentation ¶
Index ¶
- Variables
- func CheckBackplaneAPIConnectivity(client HTTPClient, proxyURL string) error
- func CheckProxyConnectivity(client HTTPClient) (string, error)
- func CheckVPNConnectivity(netInterfaces NetworkInterface, client HTTPClient) error
- func GetProxyTestEndpoint() (string, error)
- func GetVPNCheckEndpoint() (string, error)
- func RunHealthCheck(checkVPN, checkProxy bool) func(cmd *cobra.Command, args []string)
- type DefaultHTTPClientImpl
- type DefaultNetworkInterfaceImpl
- type HTTPClient
- type NetworkInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NetInterfaces NetworkInterface = DefaultNetworkInterfaceImpl{} HTTPClients HTTPClient = DefaultHTTPClientImpl{Client: &http.Client{}} GetVPNCheckEndpointFunc = GetVPNCheckEndpoint GetProxyTestEndpointFunc = GetProxyTestEndpoint GetConfigFunc = config.GetBackplaneConfiguration )
Functions ¶
func CheckBackplaneAPIConnectivity ¶
func CheckBackplaneAPIConnectivity(client HTTPClient, proxyURL string) error
func CheckProxyConnectivity ¶
func CheckProxyConnectivity(client HTTPClient) (string, error)
CheckProxyConnectivity checks the proxy connectivity
func CheckVPNConnectivity ¶
func CheckVPNConnectivity(netInterfaces NetworkInterface, client HTTPClient) error
CheckVPNConnectivity checks the VPN connectivity
func GetProxyTestEndpoint ¶
func GetVPNCheckEndpoint ¶
Types ¶
type DefaultHTTPClientImpl ¶
type DefaultNetworkInterfaceImpl ¶
type DefaultNetworkInterfaceImpl struct{}
Default implementations
func (DefaultNetworkInterfaceImpl) Interfaces ¶
func (d DefaultNetworkInterfaceImpl) Interfaces() ([]net.Interface, error)
type NetworkInterface ¶
Interfaces for dependencies
Click to show internal directories.
Click to hide internal directories.