Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2023, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- type Avalanche
- func (app *Avalanche) AvagoNodeConfigExists(subnetName string) bool
- func (app *Avalanche) AvagoSubnetConfigExists(subnetName string) bool
- func (app *Avalanche) ChainConfigExists(subnetName string) bool
- func (app *Avalanche) CheckCertInSSHDir(certName string) (bool, error)
- func (app *Avalanche) ClusterExists(clusterName string) (bool, error)
- func (app *Avalanche) ClustersConfigExists() bool
- func (app *Avalanche) CopyGenesisFile(inputFilename string, subnetName string) error
- func (app *Avalanche) CopyKeyFile(inputFilename string, keyName string) error
- func (app *Avalanche) CopyVMBinary(inputFilename string, subnetName string) error
- func (app *Avalanche) CreateAnsibleDir() error
- func (app *Avalanche) CreateAnsibleInventoryDir() error
- func (app *Avalanche) CreateAnsibleNodeConfigDir(nodeID string) error
- func (app *Avalanche) CreateElasticSubnetConfig(subnetName string, es *models.ElasticSubnetConfig) error
- func (app *Avalanche) CreateMonitoringDashboardDir() error
- func (app *Avalanche) CreateMonitoringDir() error
- func (app *Avalanche) CreateNodeCloudConfigFile(nodeName string, nodeConfig *models.NodeConfig) error
- func (app *Avalanche) CreateSidecar(sc *models.Sidecar) error
- func (app *Avalanche) GenesisExists(subnetName string) bool
- func (app *Avalanche) GetAPMBaseDir() string
- func (app *Avalanche) GetAPMLog() string
- func (app *Avalanche) GetAPMPluginDir() string
- func (app *Avalanche) GetAPMVMPath(vmid string) string
- func (app *Avalanche) GetAWMRelayerBinDir() string
- func (app *Avalanche) GetAWMRelayerConfigPath() string
- func (app *Avalanche) GetAWMRelayerLogPath() string
- func (app *Avalanche) GetAWMRelayerRunPath() string
- func (app *Avalanche) GetAWMRelayerServiceConfigPath(baseDir string) string
- func (app *Avalanche) GetAWMRelayerServiceDir(baseDir string) string
- func (app *Avalanche) GetAWMRelayerServiceStorageDir(baseDir string) string
- func (app *Avalanche) GetAWMRelayerSnapshotConfsDir() string
- func (app *Avalanche) GetAWMRelayerStorageDir() string
- func (app *Avalanche) GetAnsibleDir() string
- func (app *Avalanche) GetAnsibleInventoryDirPath(clusterName string) string
- func (app *Avalanche) GetAvagoNodeConfigPath(subnetName string) string
- func (app *Avalanche) GetAvagoSubnetConfigPath(subnetName string) string
- func (app *Avalanche) GetAvalanchegoBinDir() string
- func (*Avalanche) GetAvalanchegoCompatibilityURL() string
- func (app *Avalanche) GetBaseDir() string
- func (app *Avalanche) GetChainConfigPath(subnetName string) string
- func (app *Avalanche) GetClusterConfig(clusterName string) (models.ClusterConfig, error)
- func (app *Avalanche) GetClusterNetwork(clusterName string) (models.Network, error)
- func (app *Avalanche) GetClusterYAMLFilePath(clusterName string) string
- func (app *Avalanche) GetClustersConfigPath() string
- func (app *Avalanche) GetCustomVMDir() string
- func (app *Avalanche) GetCustomVMPath(subnetName string) string
- func (app *Avalanche) GetDownloader() Downloader
- func (app *Avalanche) GetElasticSubnetConfigPath(subnetName string) string
- func (app *Avalanche) GetExtraLocalNetworkDataPath() string
- func (app *Avalanche) GetExtraLocalNetworkSnapshotsDir() string
- func (app *Avalanche) GetGenesisPath(subnetName string) string
- func (app *Avalanche) GetKeyDir() string
- func (app *Avalanche) GetKeyPath(keyName string) string
- func (app *Avalanche) GetLoadTestInventoryDir(clusterName string) string
- func (app *Avalanche) GetMonitoringDashboardDir() string
- func (app *Avalanche) GetMonitoringDir() string
- func (app *Avalanche) GetMonitoringInventoryDir(clusterName string) string
- func (app *Avalanche) GetNodeBLSSecretKeyPath(instanceID string) string
- func (app *Avalanche) GetNodeConfigJSONFile(nodeID string) string
- func (app *Avalanche) GetNodeConfigPath(nodeName string) string
- func (app *Avalanche) GetNodeInstanceAvaGoConfigDirPath(nodeName string) string
- func (app *Avalanche) GetNodeInstanceDirPath(nodeName string) string
- func (app *Avalanche) GetNodesDir() string
- func (app *Avalanche) GetPluginsDir() string
- func (app *Avalanche) GetReposDir() string
- func (app *Avalanche) GetRunDir() string
- func (app *Avalanche) GetRunFile() string
- func (*Avalanche) GetSSHCertFilePath(certName string) (string, error)
- func (app *Avalanche) GetServicesDir(baseDir string) string
- func (app *Avalanche) GetSidecarNames() ([]string, error)
- func (app *Avalanche) GetSidecarPath(subnetName string) string
- func (app *Avalanche) GetSnapshotsDir() string
- func (app *Avalanche) GetSubnetDir() string
- func (app *Avalanche) GetSubnetEVMBinDir() string
- func (app *Avalanche) GetTeleporterBinDir() string
- func (*Avalanche) GetTmpPluginDir() string
- func (app *Avalanche) GetTokenName(subnetName string) string
- func (app *Avalanche) GetTokenSymbol(subnetName string) string
- func (app *Avalanche) GetUpgradeBytesFilePath(subnetName string) string
- func (app *Avalanche) GetUpgradeBytesFilepath(subnetName string) string
- func (app *Avalanche) KeyExists(keyName string) bool
- func (app *Avalanche) ListClusterNames() ([]string, error)
- func (app *Avalanche) LoadClusterNodeConfig(nodeName string) (models.NodeConfig, error)
- func (app *Avalanche) LoadClustersConfig() (models.ClustersConfig, error)
- func (app *Avalanche) LoadElasticSubnetConfig(subnetName string) (models.ElasticSubnetConfig, error)
- func (app *Avalanche) LoadEvmGenesis(subnetName string) (core.Genesis, error)
- func (*Avalanche) LoadEvmGenesisFromJSON(jsonBytes []byte) (core.Genesis, error)
- func (app *Avalanche) LoadRawAvagoNodeConfig(subnetName string) ([]byte, error)
- func (app *Avalanche) LoadRawAvagoSubnetConfig(subnetName string) ([]byte, error)
- func (app *Avalanche) LoadRawChainConfig(subnetName string) ([]byte, error)
- func (app *Avalanche) LoadRawGenesis(subnetName string) ([]byte, error)
- func (app *Avalanche) LoadRawNetworkUpgrades(subnetName string) ([]byte, error)
- func (app *Avalanche) LoadSidecar(subnetName string) (models.Sidecar, error)
- func (app *Avalanche) NetworkUpgradeExists(subnetName string) bool
- func (app *Avalanche) ReadLastActionsFile() (*LastActions, error)
- func (app *Avalanche) ReadLockUpgradeFile(subnetName string) ([]byte, error)
- func (app *Avalanche) ReadUpgradeFile(subnetName string) ([]byte, error)
- func (app *Avalanche) ResetPluginsDir() error
- func (app *Avalanche) SetClusterConfig(clusterName string, clusterConfig models.ClusterConfig) error
- func (app *Avalanche) Setup(baseDir string, log logging.Logger, conf *config.Config, ...)
- func (app *Avalanche) SetupMonitoringEnv() error
- func (app *Avalanche) SidecarExists(subnetName string) bool
- func (app *Avalanche) SubnetConfigExists(subnetName string) bool
- func (app *Avalanche) UpdateSidecar(sc *models.Sidecar) error
- func (app *Avalanche) UpdateSidecarElasticSubnet(sc *models.Sidecar, network models.Network, subnetID ids.ID, assetID ids.ID, ...) error
- func (app *Avalanche) UpdateSidecarElasticSubnetPartialTx(sc *models.Sidecar, network models.Network, txName string, txID ids.ID) error
- func (app *Avalanche) UpdateSidecarNetworks(sc *models.Sidecar, network models.Network, subnetID ids.ID, ...) error
- func (app *Avalanche) UpdateSidecarPermissionlessValidator(sc *models.Sidecar, network models.Network, nodeID string, txID ids.ID) error
- func (app *Avalanche) WriteAvagoNodeConfigFile(subnetName string, bs []byte) error
- func (app *Avalanche) WriteAvagoSubnetConfigFile(subnetName string, bs []byte) error
- func (app *Avalanche) WriteChainConfigFile(subnetName string, bs []byte) error
- func (app *Avalanche) WriteClustersConfigFile(clustersConfig *models.ClustersConfig) error
- func (app *Avalanche) WriteGenesisFile(subnetName string, genesisBytes []byte) error
- func (app *Avalanche) WriteLastActionsFile(acts *LastActions)
- func (app *Avalanche) WriteLockUpgradeFile(subnetName string, bytes []byte) error
- func (app *Avalanche) WriteNetworkUpgradesFile(subnetName string, bs []byte) error
- func (app *Avalanche) WriteUpgradeFile(subnetName string, bytes []byte) error
- type Downloader
- type LastActions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Avalanche ¶
type Avalanche struct { Log logging.Logger Conf *config.Config Prompt prompts.Prompter Apm *apm.APM ApmDir string Downloader Downloader // contains filtered or unexported fields }
func (*Avalanche) AvagoNodeConfigExists ¶ added in v1.0.6
func (*Avalanche) AvagoSubnetConfigExists ¶ added in v1.0.6
func (*Avalanche) ChainConfigExists ¶ added in v1.0.6
func (*Avalanche) CheckCertInSSHDir ¶ added in v1.0.6
func (*Avalanche) ClusterExists ¶ added in v1.0.6
func (*Avalanche) ClustersConfigExists ¶ added in v1.0.6
func (*Avalanche) CopyGenesisFile ¶
func (*Avalanche) CopyKeyFile ¶
func (*Avalanche) CopyVMBinary ¶
func (*Avalanche) CreateAnsibleDir ¶ added in v1.0.6
func (*Avalanche) CreateAnsibleInventoryDir ¶ added in v1.0.6
func (*Avalanche) CreateAnsibleNodeConfigDir ¶ added in v1.0.6
CreateAnsibleNodeConfigDir creates the ansible node config directory specific for nodeID inside .avalanche-cli
func (*Avalanche) CreateElasticSubnetConfig ¶ added in v1.0.6
func (app *Avalanche) CreateElasticSubnetConfig(subnetName string, es *models.ElasticSubnetConfig) error
func (*Avalanche) CreateMonitoringDashboardDir ¶ added in v1.0.6
func (*Avalanche) CreateMonitoringDir ¶ added in v1.0.6
func (*Avalanche) CreateNodeCloudConfigFile ¶ added in v1.0.6
func (app *Avalanche) CreateNodeCloudConfigFile(nodeName string, nodeConfig *models.NodeConfig) error
func (*Avalanche) GenesisExists ¶
func (*Avalanche) GetAPMBaseDir ¶
func (*Avalanche) GetAPMPluginDir ¶
func (*Avalanche) GetAPMVMPath ¶
func (*Avalanche) GetAWMRelayerBinDir ¶ added in v1.0.6
func (*Avalanche) GetAWMRelayerConfigPath ¶ added in v1.0.6
func (*Avalanche) GetAWMRelayerLogPath ¶ added in v1.0.6
func (*Avalanche) GetAWMRelayerRunPath ¶ added in v1.0.6
func (*Avalanche) GetAWMRelayerServiceConfigPath ¶ added in v1.0.6
func (*Avalanche) GetAWMRelayerServiceDir ¶ added in v1.0.6
func (*Avalanche) GetAWMRelayerServiceStorageDir ¶ added in v1.0.6
func (*Avalanche) GetAWMRelayerSnapshotConfsDir ¶ added in v1.0.6
func (*Avalanche) GetAWMRelayerStorageDir ¶ added in v1.0.6
func (*Avalanche) GetAnsibleDir ¶ added in v1.0.6
func (*Avalanche) GetAnsibleInventoryDirPath ¶ added in v1.0.6
func (*Avalanche) GetAvagoNodeConfigPath ¶ added in v1.0.6
func (*Avalanche) GetAvagoSubnetConfigPath ¶ added in v1.0.6
func (*Avalanche) GetAvalanchegoBinDir ¶
func (*Avalanche) GetAvalanchegoCompatibilityURL ¶
func (*Avalanche) GetBaseDir ¶
func (*Avalanche) GetChainConfigPath ¶ added in v1.0.6
func (*Avalanche) GetClusterConfig ¶ added in v1.0.6
func (app *Avalanche) GetClusterConfig(clusterName string) (models.ClusterConfig, error)
func (*Avalanche) GetClusterNetwork ¶ added in v1.0.6
func (*Avalanche) GetClusterYAMLFilePath ¶ added in v1.0.6
func (*Avalanche) GetClustersConfigPath ¶ added in v1.0.6
func (*Avalanche) GetCustomVMDir ¶
func (*Avalanche) GetCustomVMPath ¶
func (*Avalanche) GetDownloader ¶
func (app *Avalanche) GetDownloader() Downloader
func (*Avalanche) GetElasticSubnetConfigPath ¶ added in v1.0.6
func (*Avalanche) GetExtraLocalNetworkDataPath ¶ added in v1.0.6
func (*Avalanche) GetExtraLocalNetworkSnapshotsDir ¶ added in v1.0.6
func (*Avalanche) GetGenesisPath ¶
func (*Avalanche) GetKeyPath ¶
func (*Avalanche) GetLoadTestInventoryDir ¶ added in v1.0.6
func (*Avalanche) GetMonitoringDashboardDir ¶ added in v1.0.6
func (*Avalanche) GetMonitoringDir ¶ added in v1.0.6
func (*Avalanche) GetMonitoringInventoryDir ¶ added in v1.0.6
func (*Avalanche) GetNodeBLSSecretKeyPath ¶ added in v1.0.6
func (*Avalanche) GetNodeConfigJSONFile ¶ added in v1.0.6
func (*Avalanche) GetNodeConfigPath ¶ added in v1.0.6
func (*Avalanche) GetNodeInstanceAvaGoConfigDirPath ¶ added in v1.0.6
func (*Avalanche) GetNodeInstanceDirPath ¶ added in v1.0.6
func (*Avalanche) GetNodesDir ¶ added in v1.0.6
func (*Avalanche) GetPluginsDir ¶
func (*Avalanche) GetReposDir ¶
func (*Avalanche) GetRunFile ¶
func (*Avalanche) GetSSHCertFilePath ¶ added in v1.0.6
func (*Avalanche) GetServicesDir ¶ added in v1.0.6
func (*Avalanche) GetSidecarNames ¶
func (*Avalanche) GetSidecarPath ¶
func (*Avalanche) GetSnapshotsDir ¶
func (*Avalanche) GetSubnetDir ¶
func (*Avalanche) GetSubnetEVMBinDir ¶
func (*Avalanche) GetTeleporterBinDir ¶ added in v1.0.6
func (*Avalanche) GetTmpPluginDir ¶
func (*Avalanche) GetTokenName ¶
func (*Avalanche) GetTokenSymbol ¶ added in v1.0.6
func (*Avalanche) GetUpgradeBytesFilePath ¶
func (*Avalanche) GetUpgradeBytesFilepath ¶
func (*Avalanche) ListClusterNames ¶ added in v1.0.6
func (*Avalanche) LoadClusterNodeConfig ¶ added in v1.0.6
func (app *Avalanche) LoadClusterNodeConfig(nodeName string) (models.NodeConfig, error)
func (*Avalanche) LoadClustersConfig ¶ added in v1.0.6
func (app *Avalanche) LoadClustersConfig() (models.ClustersConfig, error)
func (*Avalanche) LoadElasticSubnetConfig ¶ added in v1.0.6
func (app *Avalanche) LoadElasticSubnetConfig(subnetName string) (models.ElasticSubnetConfig, error)
func (*Avalanche) LoadEvmGenesis ¶
func (*Avalanche) LoadEvmGenesisFromJSON ¶ added in v1.0.6
func (*Avalanche) LoadRawAvagoNodeConfig ¶ added in v1.0.6
func (*Avalanche) LoadRawAvagoSubnetConfig ¶ added in v1.0.6
func (*Avalanche) LoadRawChainConfig ¶ added in v1.0.6
func (*Avalanche) LoadRawGenesis ¶
func (*Avalanche) LoadRawNetworkUpgrades ¶ added in v1.0.6
func (*Avalanche) LoadSidecar ¶
func (*Avalanche) NetworkUpgradeExists ¶ added in v1.0.6
func (*Avalanche) ReadLastActionsFile ¶ added in v1.0.6
func (app *Avalanche) ReadLastActionsFile() (*LastActions, error)
func (*Avalanche) ReadLockUpgradeFile ¶
func (*Avalanche) ReadUpgradeFile ¶
func (*Avalanche) ResetPluginsDir ¶ added in v1.0.6
Remove all plugins from plugin dir
func (*Avalanche) SetClusterConfig ¶ added in v1.0.6
func (app *Avalanche) SetClusterConfig(clusterName string, clusterConfig models.ClusterConfig) error
func (*Avalanche) SetupMonitoringEnv ¶ added in v1.0.6
func (*Avalanche) SidecarExists ¶
func (*Avalanche) SubnetConfigExists ¶
func (*Avalanche) UpdateSidecarElasticSubnet ¶ added in v1.0.6
func (*Avalanche) UpdateSidecarElasticSubnetPartialTx ¶ added in v1.0.6
func (*Avalanche) UpdateSidecarNetworks ¶
func (*Avalanche) UpdateSidecarPermissionlessValidator ¶ added in v1.0.6
func (*Avalanche) WriteAvagoNodeConfigFile ¶ added in v1.0.6
func (*Avalanche) WriteAvagoSubnetConfigFile ¶ added in v1.0.6
func (*Avalanche) WriteChainConfigFile ¶ added in v1.0.6
func (*Avalanche) WriteClustersConfigFile ¶ added in v1.0.6
func (app *Avalanche) WriteClustersConfigFile(clustersConfig *models.ClustersConfig) error
func (*Avalanche) WriteGenesisFile ¶
func (*Avalanche) WriteLastActionsFile ¶ added in v1.0.6
func (app *Avalanche) WriteLastActionsFile(acts *LastActions)
func (*Avalanche) WriteLockUpgradeFile ¶
func (*Avalanche) WriteNetworkUpgradesFile ¶ added in v1.0.6
type Downloader ¶
type Downloader interface { Download(url string) ([]byte, error) GetLatestReleaseVersion(releaseURL string) (string, error) GetLatestPreReleaseVersion(org, repo string) (string, error) GetAllReleasesForRepo(org, repo string) ([]string, error) }
This is a generic interface for performing highly testable downloads. All methods here involve external http requests. To write tests using these functions, provide a mocked version of this interface to your application object.
func NewDownloader ¶
func NewDownloader() Downloader
Click to show internal directories.
Click to hide internal directories.