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 Downloader
- type LastActions
- type Odyssey
- func (app *Odyssey) ChainConfigExists(subnetName string) bool
- func (app *Odyssey) CheckCertInSSHDir(certName string) (bool, error)
- func (app *Odyssey) ClustersConfigExists() bool
- func (app *Odyssey) CopyGenesisFile(inputFilename string, subnetName string) error
- func (app *Odyssey) CopyKeyFile(inputFilename string, keyName string) error
- func (app *Odyssey) CopyVMBinary(inputFilename string, subnetName string) error
- func (app *Odyssey) CreateAnsibleDir() error
- func (app *Odyssey) CreateAnsibleInventoryDir() error
- func (app *Odyssey) CreateAnsibleNodeConfigDir(nodeID string) error
- func (app *Odyssey) CreateElasticSubnetConfig(subnetName string, es *models.ElasticSubnetConfig) error
- func (app *Odyssey) CreateMonitoringDashboardDir() error
- func (app *Odyssey) CreateMonitoringDir() error
- func (app *Odyssey) CreateNodeCloudConfigFile(nodeName string, nodeConfig *models.NodeConfig) error
- func (app *Odyssey) CreateSidecar(sc *models.Sidecar) error
- func (app *Odyssey) GenesisExists(subnetName string) bool
- func (app *Odyssey) GetAnsibleDir() string
- func (app *Odyssey) GetAnsibleInventoryDirPath(clusterName string) string
- func (app *Odyssey) GetBaseDir() string
- func (app *Odyssey) GetChainConfigPath(subnetName string) string
- func (app *Odyssey) GetClustersConfigPath() string
- func (app *Odyssey) GetCustomVMDir() string
- func (app *Odyssey) GetCustomVMPath(subnetName string) string
- func (app *Odyssey) GetDownloader() Downloader
- func (app *Odyssey) GetElasticSubnetConfigPath(subnetName string) string
- func (app *Odyssey) GetGenesisPath(subnetName string) string
- func (app *Odyssey) GetKeyDir() string
- func (app *Odyssey) GetKeyPath(keyName string) string
- func (app *Odyssey) GetMonitoringDashboardDir() string
- func (app *Odyssey) GetMonitoringDir() string
- func (app *Odyssey) GetMonitoringScriptFile() string
- func (app *Odyssey) GetNodeBLSSecretKeyPath(instanceID string) string
- func (app *Odyssey) GetNodeConfigJSONFile(nodeID string) string
- func (app *Odyssey) GetNodeConfigPath(nodeName string) string
- func (app *Odyssey) GetNodeInstanceDirPath(nodeName string) string
- func (app *Odyssey) GetNodeInstanceOdygoConfigDirPath(nodeName string) string
- func (app *Odyssey) GetNodesDir() string
- func (app *Odyssey) GetOPMBaseDir() string
- func (app *Odyssey) GetOPMLog() string
- func (app *Odyssey) GetOPMPluginDir() string
- func (app *Odyssey) GetOPMVMPath(vmid string) string
- func (app *Odyssey) GetOdygoNodeConfigPath(subnetName string) string
- func (app *Odyssey) GetOdygoSubnetConfigPath(subnetName string) string
- func (app *Odyssey) GetOdysseygoBinDir() string
- func (*Odyssey) GetOdysseygoCompatibilityURL() string
- func (app *Odyssey) GetPluginsDir() string
- func (app *Odyssey) GetReposDir() string
- func (app *Odyssey) GetRunDir() string
- func (app *Odyssey) GetRunFile() string
- func (*Odyssey) GetSSHCertFilePath(certName string) (string, error)
- func (app *Odyssey) GetSidecarNames() ([]string, error)
- func (app *Odyssey) GetSidecarPath(subnetName string) string
- func (app *Odyssey) GetSnapshotsDir() string
- func (app *Odyssey) GetSubnetDir() string
- func (app *Odyssey) GetSubnetEVMBinDir() string
- func (*Odyssey) GetTmpPluginDir() string
- func (app *Odyssey) GetTokenName(subnetName string) string
- func (app *Odyssey) GetUpgradeBytesFilePath(subnetName string) string
- func (app *Odyssey) GetUpgradeBytesFilepath(subnetName string) string
- func (app *Odyssey) KeyExists(keyName string) bool
- func (app *Odyssey) LoadClusterNodeConfig(nodeName string) (models.NodeConfig, error)
- func (app *Odyssey) LoadClustersConfig() (models.ClustersConfig, error)
- func (app *Odyssey) LoadElasticSubnetConfig(subnetName string) (models.ElasticSubnetConfig, error)
- func (app *Odyssey) LoadEvmGenesis(subnetName string) (core.Genesis, error)
- func (app *Odyssey) LoadRawChainConfig(subnetName string) ([]byte, error)
- func (app *Odyssey) LoadRawGenesis(subnetName string) ([]byte, error)
- func (app *Odyssey) LoadRawNetworkUpgrades(subnetName string) ([]byte, error)
- func (app *Odyssey) LoadRawOdygoNodeConfig(subnetName string) ([]byte, error)
- func (app *Odyssey) LoadRawOdygoSubnetConfig(subnetName string) ([]byte, error)
- func (app *Odyssey) LoadSidecar(subnetName string) (models.Sidecar, error)
- func (app *Odyssey) NetworkUpgradeExists(subnetName string) bool
- func (app *Odyssey) OdygoNodeConfigExists(subnetName string) bool
- func (app *Odyssey) OdygoSubnetConfigExists(subnetName string) bool
- func (app *Odyssey) ReadLastActionsFile() (*LastActions, error)
- func (app *Odyssey) ReadLockUpgradeFile(subnetName string) ([]byte, error)
- func (app *Odyssey) ReadUpgradeFile(subnetName string) ([]byte, error)
- func (app *Odyssey) ResetPluginsDir() error
- func (app *Odyssey) Setup(baseDir string, log logging.Logger, conf *config.Config, ...)
- func (app *Odyssey) SetupMonitoringEnv() error
- func (app *Odyssey) SidecarExists(subnetName string) bool
- func (app *Odyssey) SubnetConfigExists(subnetName string) bool
- func (app *Odyssey) UpdateSidecar(sc *models.Sidecar) error
- func (app *Odyssey) UpdateSidecarElasticSubnet(sc *models.Sidecar, network models.Network, subnetID ids.ID, assetID ids.ID, ...) error
- func (app *Odyssey) UpdateSidecarElasticSubnetPartialTx(sc *models.Sidecar, network models.Network, txName string, txID ids.ID) error
- func (app *Odyssey) UpdateSidecarNetworks(sc *models.Sidecar, network models.Network, subnetID ids.ID, ...) error
- func (app *Odyssey) UpdateSidecarPermissionlessValidator(sc *models.Sidecar, network models.Network, nodeID string, txID ids.ID) error
- func (app *Odyssey) WriteChainConfigFile(subnetName string, bs []byte) error
- func (app *Odyssey) WriteClustersConfigFile(clustersConfig *models.ClustersConfig) error
- func (app *Odyssey) WriteGenesisFile(subnetName string, genesisBytes []byte) error
- func (app *Odyssey) WriteLastActionsFile(acts *LastActions)
- func (app *Odyssey) WriteLockUpgradeFile(subnetName string, bytes []byte) error
- func (app *Odyssey) WriteNetworkUpgradesFile(subnetName string, bs []byte) error
- func (app *Odyssey) WriteOdygoNodeConfigFile(subnetName string, bs []byte) error
- func (app *Odyssey) WriteOdygoSubnetConfigFile(subnetName string, bs []byte) error
- func (app *Odyssey) WriteUpgradeFile(subnetName string, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader interface { Download(url string) ([]byte, error) GetLatestReleaseVersion(releaseURL 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
type LastActions ¶
type Odyssey ¶
type Odyssey struct { Log logging.Logger Conf *config.Config Prompt prompts.Prompter Opm *opm.OPM OpmDir string Downloader Downloader // contains filtered or unexported fields }
func (*Odyssey) ChainConfigExists ¶
func (*Odyssey) CheckCertInSSHDir ¶
func (*Odyssey) ClustersConfigExists ¶
func (*Odyssey) CopyGenesisFile ¶
func (*Odyssey) CopyKeyFile ¶
func (*Odyssey) CopyVMBinary ¶
func (*Odyssey) CreateAnsibleDir ¶
func (*Odyssey) CreateAnsibleInventoryDir ¶
func (*Odyssey) CreateAnsibleNodeConfigDir ¶
CreateAnsibleNodeConfigDir creates the ansible node config directory specific for nodeID inside .odyssey-cli
func (*Odyssey) CreateElasticSubnetConfig ¶
func (app *Odyssey) CreateElasticSubnetConfig(subnetName string, es *models.ElasticSubnetConfig) error
func (*Odyssey) CreateMonitoringDashboardDir ¶
func (*Odyssey) CreateMonitoringDir ¶
func (*Odyssey) CreateNodeCloudConfigFile ¶
func (app *Odyssey) CreateNodeCloudConfigFile(nodeName string, nodeConfig *models.NodeConfig) error
func (*Odyssey) GenesisExists ¶
func (*Odyssey) GetAnsibleDir ¶
func (*Odyssey) GetAnsibleInventoryDirPath ¶
func (*Odyssey) GetBaseDir ¶
func (*Odyssey) GetChainConfigPath ¶
func (*Odyssey) GetClustersConfigPath ¶
func (*Odyssey) GetCustomVMDir ¶
func (*Odyssey) GetCustomVMPath ¶
func (*Odyssey) GetDownloader ¶
func (app *Odyssey) GetDownloader() Downloader
func (*Odyssey) GetElasticSubnetConfigPath ¶
func (*Odyssey) GetGenesisPath ¶
func (*Odyssey) GetKeyPath ¶
func (*Odyssey) GetMonitoringDashboardDir ¶
func (*Odyssey) GetMonitoringDir ¶
func (*Odyssey) GetMonitoringScriptFile ¶
func (*Odyssey) GetNodeBLSSecretKeyPath ¶
func (*Odyssey) GetNodeConfigJSONFile ¶
func (*Odyssey) GetNodeConfigPath ¶
func (*Odyssey) GetNodeInstanceDirPath ¶
func (*Odyssey) GetNodeInstanceOdygoConfigDirPath ¶
func (*Odyssey) GetNodesDir ¶
func (*Odyssey) GetOPMBaseDir ¶
func (*Odyssey) GetOPMPluginDir ¶
func (*Odyssey) GetOPMVMPath ¶
func (*Odyssey) GetOdygoNodeConfigPath ¶
func (*Odyssey) GetOdygoSubnetConfigPath ¶
func (*Odyssey) GetOdysseygoBinDir ¶
func (*Odyssey) GetOdysseygoCompatibilityURL ¶
func (*Odyssey) GetPluginsDir ¶
func (*Odyssey) GetReposDir ¶
func (*Odyssey) GetRunFile ¶
func (*Odyssey) GetSSHCertFilePath ¶
func (*Odyssey) GetSidecarNames ¶
func (*Odyssey) GetSidecarPath ¶
func (*Odyssey) GetSnapshotsDir ¶
func (*Odyssey) GetSubnetDir ¶
func (*Odyssey) GetSubnetEVMBinDir ¶
func (*Odyssey) GetTmpPluginDir ¶
func (*Odyssey) GetTokenName ¶
func (*Odyssey) GetUpgradeBytesFilePath ¶
func (*Odyssey) GetUpgradeBytesFilepath ¶
func (*Odyssey) LoadClusterNodeConfig ¶
func (app *Odyssey) LoadClusterNodeConfig(nodeName string) (models.NodeConfig, error)
func (*Odyssey) LoadClustersConfig ¶
func (app *Odyssey) LoadClustersConfig() (models.ClustersConfig, error)
func (*Odyssey) LoadElasticSubnetConfig ¶
func (app *Odyssey) LoadElasticSubnetConfig(subnetName string) (models.ElasticSubnetConfig, error)
func (*Odyssey) LoadEvmGenesis ¶
func (*Odyssey) LoadRawChainConfig ¶
func (*Odyssey) LoadRawGenesis ¶
func (*Odyssey) LoadRawNetworkUpgrades ¶
func (*Odyssey) LoadRawOdygoNodeConfig ¶
func (*Odyssey) LoadRawOdygoSubnetConfig ¶
func (*Odyssey) LoadSidecar ¶
func (*Odyssey) NetworkUpgradeExists ¶
func (*Odyssey) OdygoNodeConfigExists ¶
func (*Odyssey) OdygoSubnetConfigExists ¶
func (*Odyssey) ReadLastActionsFile ¶
func (app *Odyssey) ReadLastActionsFile() (*LastActions, error)
func (*Odyssey) ReadLockUpgradeFile ¶
func (*Odyssey) ReadUpgradeFile ¶
func (*Odyssey) ResetPluginsDir ¶
Remove all plugins from plugin dir
func (*Odyssey) SetupMonitoringEnv ¶
func (*Odyssey) SidecarExists ¶
func (*Odyssey) SubnetConfigExists ¶
func (*Odyssey) UpdateSidecarElasticSubnet ¶
func (*Odyssey) UpdateSidecarElasticSubnetPartialTx ¶
func (*Odyssey) UpdateSidecarNetworks ¶
func (*Odyssey) UpdateSidecarPermissionlessValidator ¶
func (*Odyssey) WriteChainConfigFile ¶
func (*Odyssey) WriteClustersConfigFile ¶
func (app *Odyssey) WriteClustersConfigFile(clustersConfig *models.ClustersConfig) error
func (*Odyssey) WriteGenesisFile ¶
func (*Odyssey) WriteLastActionsFile ¶
func (app *Odyssey) WriteLastActionsFile(acts *LastActions)
func (*Odyssey) WriteLockUpgradeFile ¶
func (*Odyssey) WriteNetworkUpgradesFile ¶
func (*Odyssey) WriteOdygoNodeConfigFile ¶
func (*Odyssey) WriteOdygoSubnetConfigFile ¶
Click to show internal directories.
Click to hide internal directories.