Documentation
¶
Overview ¶
Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- func ComposeSSHSetupWarpRelayer(host *models.Host, relayerVersion string) error
- func PostOverSSH(host *models.Host, path string, requestBody string) ([]byte, error)
- func RunOverSSH(scriptDesc string, host *models.Host, timeout time.Duration, scriptPath string, ...) error
- func RunSSHBuildLoadTestCode(host *models.Host, ...) error
- func RunSSHBuildLoadTestDependencies(host *models.Host) error
- func RunSSHCheckBootstrapped(host *models.Host) ([]byte, error)
- func RunSSHCheckHealthy(host *models.Host) ([]byte, error)
- func RunSSHCheckLuxdVersion(host *models.Host) ([]byte, error)
- func RunSSHCopyMonitoringDashboards(host *models.Host, monitoringDashboardPath string) error
- func RunSSHCopyYAMLFile(host *models.Host, yamlFilePath string) error
- func RunSSHCreatePlugin(host *models.Host, sc models.Sidecar) error
- func RunSSHDownloadFile(host *models.Host, filePath string, localFilePath string) error
- func RunSSHDownloadNodePrometheusConfig(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHGetNewEVMRelease(host *models.Host, evmReleaseURL, evmArchive string) error
- func RunSSHGetNodeID(host *models.Host) ([]byte, error)
- func RunSSHRenderLuxNodeConfig(app *application.Lux, host *models.Host, network models.Network, ...) error
- func RunSSHRenderLuxdAliasConfigFile(host *models.Host, blockchainID string, subnetAliases []string) error
- func RunSSHRestartNode(host *models.Host) error
- func RunSSHRunLoadTest(host *models.Host, loadTestCommand, loadTestName string) error
- func RunSSHSetupDevNet(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHSetupDockerService(host *models.Host) error
- func RunSSHSetupLokiConfig(host *models.Host, port int) error
- func RunSSHSetupMonitoringFolders(host *models.Host) error
- func RunSSHSetupNode(host *models.Host, configPath string) error
- func RunSSHSetupPrometheusConfig(host *models.Host, luxdPorts, machinePorts, loadTestPorts []string) error
- func RunSSHSetupPromtailConfig(host *models.Host, lokiIP string, lokiPort int, cloudID string, nodeID string, ...) error
- func RunSSHStartNode(host *models.Host) error
- func RunSSHStartWarpRelayerService(host *models.Host) error
- func RunSSHStopNode(host *models.Host) error
- func RunSSHStopWarpRelayerService(host *models.Host) error
- func RunSSHSubnetSyncStatus(host *models.Host, blockchainID string) ([]byte, error)
- func RunSSHSyncSubnetData(app *application.Lux, host *models.Host, network models.Network, ...) error
- func RunSSHUpdateMonitoringDashboards(host *models.Host, ...) error
- func RunSSHUpgradeLuxgo(host *models.Host, luxdVersion string) error
- func RunSSHUploadNodeWarpRelayerConfig(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHUploadStakingFiles(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHUpsizeRootDisk(host *models.Host) error
- func RunSSHWhitelistPubKey(host *models.Host, sshPubKey string) error
- func StreamOverSSH(scriptDesc string, host *models.Host, timeout time.Duration, scriptPath string, ...) error
- type HostInstaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeSSHSetupWarpRelayer ¶
ComposeSSHSetupWarpRelayer used docker compose to setup AWM Relayer
func PostOverSSH ¶
func RunOverSSH ¶
func RunOverSSH( scriptDesc string, host *models.Host, timeout time.Duration, scriptPath string, templateVars scriptInputs, ) error
RunOverSSH runs provided script path over ssh. This script can be template as it will be rendered using scriptInputs vars
func RunSSHBuildLoadTestCode ¶
func RunSSHCheckBootstrapped ¶
RunSSHCheckBootstrapped checks if node is bootstrapped to primary network
func RunSSHCheckHealthy ¶
RunSSHCheckHealthy checks if node is healthy
func RunSSHCheckLuxdVersion ¶
RunSSHCheckLuxdVersion checks node luxd version
func RunSSHCreatePlugin ¶
RunSSHCreatePlugin runs script to create plugin
func RunSSHDownloadFile ¶
RunSSHDownloadFile downloads specified file from the specified host
func RunSSHGetNewEVMRelease ¶ added in v1.21.40
RunSSHGetNewEVMRelease runs script to download new subnet evm
func RunSSHGetNodeID ¶
RunSSHGetNodeID reads nodeID from luxd
func RunSSHRenderLuxNodeConfig ¶
func RunSSHRenderLuxNodeConfig( app *application.Lux, host *models.Host, network models.Network, trackSubnets []string, isAPIHost bool, ) error
RunSSHRenderLuxNodeConfig renders lux node config to a remote host via SSH.
func RunSSHRenderLuxdAliasConfigFile ¶
func RunSSHRenderLuxdAliasConfigFile( host *models.Host, blockchainID string, subnetAliases []string, ) error
RunSSHRenderLuxdAliasConfigFile renders lux alias config to a remote host via SSH.
func RunSSHRestartNode ¶
RunSSHRestartNode runs script to restart luxd
func RunSSHRunLoadTest ¶
func RunSSHSetupDevNet ¶
RunSSHSetupDevNet runs script to setup devnet
func RunSSHSetupDockerService ¶
RunSSHSetupDockerService runs script to setup docker compose service for CLI
func RunSSHSetupNode ¶
RunSSHSetupNode runs script to setup node
func RunSSHStartNode ¶
RunSSHStartNode runs script to start luxd
func RunSSHStartWarpRelayerService ¶
RunSSHStartWarpRelayerService runs script to start an AWM Relayer Service
func RunSSHStopNode ¶
RunSSHStopNode runs script to stop luxd
func RunSSHStopWarpRelayerService ¶
RunSSHStopWarpRelayerService runs script to start an AWM Relayer Service
func RunSSHSubnetSyncStatus ¶
SubnetSyncStatus checks if node is synced to subnet
func RunSSHSyncSubnetData ¶
func RunSSHSyncSubnetData(app *application.Lux, host *models.Host, network models.Network, subnetName string) error
RunSSHSyncSubnetData syncs subnet data required
func RunSSHUpgradeLuxgo ¶
RunSSHUpgradeLuxgo runs script to upgrade luxd
func RunSSHUploadStakingFiles ¶
RunSSHUploadStakingFiles uploads staking files to a remote host via SSH.
func RunSSHUpsizeRootDisk ¶
func RunSSHWhitelistPubKey ¶
RunSSHWhitelistPubKey downloads the authorized_keys file from the specified host, appends the provided sshPubKey to it, and uploads the file back to the host.
Types ¶
type HostInstaller ¶
func NewHostInstaller ¶
func NewHostInstaller(host *models.Host) *HostInstaller
func (*HostInstaller) GetArch ¶
func (h *HostInstaller) GetArch() (string, string)