localnode

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIptablesChainAndRulesExists

func CheckIptablesChainAndRulesExists(table, chain string) (bool, error)

CheckIptablesChainAndRulesExists checks if the iptables chain and rules exist.

func CheckYurthubStatus

func CheckYurthubStatus() (bool, error)

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

func DownloadAndInstallYurthub(yurthubBinaryURL string) error

DownloadAndInstallYurthub gets yurthub binary from URL and saves to /usr/bin/yurthub

func EnableYurthubService

func EnableYurthubService() error

EnableYurthubService enable yurthub service

func SetYurthubService

func SetYurthubService(hostControlPlaneAddr string, serverAddr string, nodeName string) error

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

func StopYurthubService

func StopYurthubService() error

StopYurthubService stop yurthub service

func WaitForIptablesChainReadyWithTimeout

func WaitForIptablesChainReadyWithTimeout(table, chain string, interval, timeout time.Duration) error

WaitForIptablesChainReadyWithTimeout waits for the iptables chain and its rules to be ready within a specified timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL