Documentation
¶
Overview ¶
Copyright (C) 2023, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- 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 RunSSHCheckAvalancheGoVersion(host *models.Host) ([]byte, error)
- func RunSSHCheckBootstrapped(host *models.Host) ([]byte, error)
- func RunSSHCheckHealthy(host *models.Host) ([]byte, error)
- func RunSSHCopyMonitoringDashboards(host *models.Host, monitoringDashboardPath string) error
- func RunSSHCopyYAMLFile(host *models.Host, yamlFilePath string) error
- func RunSSHDownloadNodeMonitoringConfig(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHDownloadNodePrometheusConfig(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHExportSubnet(host *models.Host, exportPath, cloudServerSubnetPath string) error
- func RunSSHGetNewSubnetEVMRelease(host *models.Host, subnetEVMReleaseURL, subnetEVMArchive string) error
- func RunSSHGetNodeID(host *models.Host) ([]byte, error)
- func RunSSHRestartNode(host *models.Host) error
- func RunSSHRunLoadTest(host *models.Host, loadTestCommand string) error
- func RunSSHSetupBuildEnv(host *models.Host) error
- func RunSSHSetupCLIFromSource(host *models.Host, cliBranch string) error
- func RunSSHSetupDevNet(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHSetupMachineMetrics(host *models.Host) error
- func RunSSHSetupMonitoring(host *models.Host) error
- func RunSSHSetupNode(host *models.Host, configPath, avalancheGoVersion string, cliVersion string, ...) error
- func RunSSHSetupSeparateMonitoring(host *models.Host, monitoringScriptPath, avalancheGoPorts, machinePorts string) error
- func RunSSHStartNode(host *models.Host) error
- func RunSSHStopNode(host *models.Host) error
- func RunSSHSubnetSyncStatus(host *models.Host, blockchainID string) ([]byte, error)
- func RunSSHTrackSubnet(host *models.Host, subnetName, importPath, networkFlag string) error
- func RunSSHUpdatePrometheusConfig(host *models.Host, avalancheGoPorts, machinePorts string) error
- func RunSSHUpdateSubnet(host *models.Host, subnetName, importPath string) error
- func RunSSHUpgradeAvalanchego(host *models.Host, avalancheGoVersion string) error
- func RunSSHUpgradeSubnetEVM(host *models.Host, subnetEVMBinaryPath string) error
- func RunSSHUploadClustersConfig(host *models.Host, localClustersConfigPath string) error
- func RunSSHUploadNodeMonitoringConfig(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHUploadStakingFiles(host *models.Host, nodeInstanceDirPath string) error
- func RunSSHWhitelistPubKey(host *models.Host, sshPubKey string) error
- func StreamOverSSH(scriptDesc string, host *models.Host, timeout time.Duration, scriptPath string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶ added in v1.5.0
func RunSSHBuildLoadTestDependencies ¶ added in v1.5.0
func RunSSHCheckAvalancheGoVersion ¶
RunSSHCheckAvalancheGoVersion checks node avalanchego version
func RunSSHCheckBootstrapped ¶
RunSSHCheckBootstrapped checks if node is bootstrapped to primary network
func RunSSHCheckHealthy ¶
RunSSHCheckHealthy checks if node is healthy
func RunSSHCopyMonitoringDashboards ¶ added in v1.3.7
func RunSSHCopyYAMLFile ¶ added in v1.5.0
func RunSSHDownloadNodeMonitoringConfig ¶ added in v1.3.7
func RunSSHDownloadNodePrometheusConfig ¶ added in v1.4.0
func RunSSHExportSubnet ¶
RunSSHExportSubnet exports deployed Subnet from local machine to cloud server
func RunSSHGetNewSubnetEVMRelease ¶
func RunSSHGetNewSubnetEVMRelease(host *models.Host, subnetEVMReleaseURL, subnetEVMArchive string) error
RunSSHGetNewSubnetEVMRelease runs script to download new subnet evm
func RunSSHGetNodeID ¶
RunSSHGetNodeID reads nodeID from avalanchego
func RunSSHRestartNode ¶ added in v1.3.7
RunSSHRestartNode runs script to restart avalanchego
func RunSSHRunLoadTest ¶ added in v1.5.0
func RunSSHSetupBuildEnv ¶
RunSSHSetupBuildEnv installs gcc, golang, rust and etc
func RunSSHSetupCLIFromSource ¶
RunSSHSetupCLIFromSource installs any CLI branch from source
func RunSSHSetupDevNet ¶
RunSSHSetupDevNet runs script to setup devnet
func RunSSHSetupMachineMetrics ¶ added in v1.3.7
func RunSSHSetupMonitoring ¶ added in v1.3.7
func RunSSHSetupNode ¶
func RunSSHSetupNode(host *models.Host, configPath, avalancheGoVersion string, cliVersion string, isDevNet bool) error
RunSSHSetupNode runs script to setup node
func RunSSHSetupSeparateMonitoring ¶ added in v1.3.7
func RunSSHStartNode ¶
RunSSHStartNode runs script to start avalanchego
func RunSSHStopNode ¶
RunSSHStopNode runs script to stop avalanchego
func RunSSHSubnetSyncStatus ¶
SubnetSyncStatus checks if node is synced to subnet
func RunSSHTrackSubnet ¶
RunSSHTrackSubnet enables tracking of specified subnet
func RunSSHUpdatePrometheusConfig ¶ added in v1.3.7
func RunSSHUpdateSubnet ¶
RunSSHUpdateSubnet runs avalanche subnet join <subnetName> in cloud server using update subnet info
func RunSSHUpgradeAvalanchego ¶
RunSSHUpgradeAvalanchego runs script to upgrade avalanchego
func RunSSHUpgradeSubnetEVM ¶
RunSSHUpgradeSubnetEVM runs script to upgrade subnet evm
func RunSSHUploadClustersConfig ¶ added in v1.5.0
func RunSSHUploadNodeMonitoringConfig ¶ added in v1.3.7
func RunSSHUploadStakingFiles ¶
RunSSHUploadStakingFiles uploads staking files to a remote host via SSH.
func RunSSHWhitelistPubKey ¶ added in v1.5.0
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 ¶
This section is empty.