Documentation
¶
Index ¶
- func CheckIptablesChainAndRulesExists(table, chain string) (bool, error)
- func CheckYurthubStatus() (bool, error)
- func DownloadAndDeployYurthubInSystemd(hostControlPlaneAddr string, serverAddr string, yurthubBinaryURL string, ...) error
- func DownloadAndInstallYurthub(yurthubBinaryURL string) error
- func EnableYurthubService() error
- func SetYurthubService(hostControlPlaneAddr string, serverAddr string, nodeName string) error
- func SetYurthubServiceWithSystemdDir(hostControlPlaneAddr string, serverAddr string, nodeName string, ...) error
- func StartYurthubService() error
- func StopYurthubService() error
- func WaitForIptablesChainReadyWithTimeout(table, chain string, interval, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIptablesChainAndRulesExists ¶
CheckIptablesChainAndRulesExists checks if the iptables chain and rules exist.
func CheckYurthubStatus ¶
CheckYurthubStatus check if yurthub is healthy.
func DownloadAndDeployYurthubInSystemd ¶
func DownloadAndDeployYurthubInSystemd(hostControlPlaneAddr string, serverAddr string, yurthubBinaryURL string, nodeName string) error
DownloadAndDeployYurthubInSystemd downloads yurthub binary and deploys yurthub in systemd
func DownloadAndInstallYurthub ¶
DownloadAndInstallYurthub gets yurthub binary from URL and saves to /usr/bin/yurthub
func EnableYurthubService ¶
func EnableYurthubService() error
EnableYurthubService enable yurthub service
func SetYurthubService ¶
func SetYurthubServiceWithSystemdDir ¶
func SetYurthubServiceWithSystemdDir(hostControlPlaneAddr string, serverAddr string, nodeName string, systemdDir string) error
SetYurthubService configure yurthub service.
func StartYurthubService ¶
func StartYurthubService() error
StartYurthubService start yurthub service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.