Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Constants
- type Avalanche
- 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) 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) GetAvalanchegoBinDir() string
- func (*Avalanche) GetAvalanchegoCompatibilityURL() string
- func (app *Avalanche) GetBaseDir() string
- func (app *Avalanche) GetCustomVMDir() string
- func (app *Avalanche) GetCustomVMPath(subnetName string) string
- func (app *Avalanche) GetDownloader() Downloader
- func (app *Avalanche) GetGenesisPath(subnetName string) string
- func (app *Avalanche) GetKeyDir() string
- func (app *Avalanche) GetKeyPath(keyName string) string
- func (app *Avalanche) GetPluginsDir() string
- func (app *Avalanche) GetReposDir() string
- func (app *Avalanche) GetRunDir() string
- func (app *Avalanche) GetRunFile() string
- func (app *Avalanche) GetSidecarNames() ([]string, error)
- func (app *Avalanche) GetSidecarPath(subnetName string) string
- func (app *Avalanche) GetSnapshotsDir() string
- func (app *Avalanche) GetSpacesVMBinDir() string
- func (app *Avalanche) GetSubnetDir() string
- func (app *Avalanche) GetSubnetEVMBinDir() string
- func (*Avalanche) GetTmpPluginDir() string
- func (app *Avalanche) GetTokenName(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) LoadEvmGenesis(subnetName string) (core.Genesis, error)
- func (app *Avalanche) LoadRawGenesis(subnetName string) ([]byte, error)
- func (app *Avalanche) LoadSidecar(subnetName string) (models.Sidecar, error)
- func (app *Avalanche) ReadLockUpgradeFile(subnetName string) ([]byte, error)
- func (app *Avalanche) ReadUpgradeFile(subnetName string) ([]byte, error)
- func (app *Avalanche) Setup(baseDir string, log logging.Logger, conf *config.Config, ...)
- 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) UpdateSidecarNetworks(sc *models.Sidecar, network models.Network, subnetID ids.ID, ...) error
- func (app *Avalanche) WriteGenesisFile(subnetName string, genesisBytes []byte) error
- func (app *Avalanche) WriteLockUpgradeFile(subnetName string, bytes []byte) error
- func (app *Avalanche) WriteUpgradeFile(subnetName string, bytes []byte) error
- type Downloader
Constants ¶
View Source
const (
WriteReadReadPerms = 0o644
)
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) CopyGenesisFile ¶
func (*Avalanche) CopyKeyFile ¶
func (*Avalanche) CopyVMBinary ¶
func (*Avalanche) GenesisExists ¶
func (*Avalanche) GetAPMBaseDir ¶
func (*Avalanche) GetAPMPluginDir ¶
func (*Avalanche) GetAPMVMPath ¶
func (*Avalanche) GetAvalanchegoBinDir ¶
func (*Avalanche) GetAvalanchegoCompatibilityURL ¶
func (*Avalanche) GetBaseDir ¶
func (*Avalanche) GetCustomVMDir ¶
func (*Avalanche) GetCustomVMPath ¶
func (*Avalanche) GetDownloader ¶
func (app *Avalanche) GetDownloader() Downloader
func (*Avalanche) GetGenesisPath ¶
func (*Avalanche) GetKeyPath ¶
func (*Avalanche) GetPluginsDir ¶
func (*Avalanche) GetReposDir ¶
func (*Avalanche) GetRunFile ¶
func (*Avalanche) GetSidecarNames ¶
func (*Avalanche) GetSidecarPath ¶
func (*Avalanche) GetSnapshotsDir ¶
func (*Avalanche) GetSpacesVMBinDir ¶
func (*Avalanche) GetSubnetDir ¶
func (*Avalanche) GetSubnetEVMBinDir ¶
func (*Avalanche) GetTmpPluginDir ¶
func (*Avalanche) GetTokenName ¶
func (*Avalanche) GetUpgradeBytesFilePath ¶
func (*Avalanche) GetUpgradeBytesFilepath ¶
func (*Avalanche) LoadEvmGenesis ¶
func (*Avalanche) LoadRawGenesis ¶
func (*Avalanche) LoadSidecar ¶
func (*Avalanche) ReadLockUpgradeFile ¶
func (*Avalanche) ReadUpgradeFile ¶
func (*Avalanche) SidecarExists ¶
func (*Avalanche) SubnetConfigExists ¶
func (*Avalanche) UpdateSidecarNetworks ¶
func (*Avalanche) WriteGenesisFile ¶
func (*Avalanche) WriteLockUpgradeFile ¶
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
Click to show internal directories.
Click to hide internal directories.