Documentation ¶
Index ¶
- func AutomatedUpgrade(app *application.Avalanche, sc models.Sidecar, targetVersion string, ...) error
- func CreatePlugin(app *application.Avalanche, subnetName string, pluginDir string) (string, error)
- func CreatePluginFromVersion(app *application.Avalanche, subnetName string, vm models.VMType, ...) (string, error)
- func EditConfigFile(app *application.Avalanche, subnetID string, network models.Network, ...) error
- func FindAvagoConfigPath() (string, error)
- func FindPluginDir() (string, error)
- func ManualUpgrade(app *application.Avalanche, sc models.Sidecar, targetVersion string) error
- func SanitizePath(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutomatedUpgrade ¶ added in v1.1.0
func CreatePlugin ¶
Downloads the subnet's VM (if necessary) and copies it into the plugin directory
func CreatePluginFromVersion ¶ added in v1.1.0
func CreatePluginFromVersion( app *application.Avalanche, subnetName string, vm models.VMType, version string, vmid string, pluginDir string, ) (string, error)
Downloads the target VM (if necessary) and copies it into the plugin directory
func EditConfigFile ¶
func EditConfigFile( app *application.Avalanche, subnetID string, network models.Network, configFile string, forceWrite bool, subnetAvagoConfigFile string, ) error
Edits an Avalanchego config file or creates one if it doesn't exist. Contains prompts unless forceWrite is set to true.
func FindAvagoConfigPath ¶ added in v1.1.0
func FindPluginDir ¶ added in v1.1.0
func ManualUpgrade ¶ added in v1.1.0
func SanitizePath ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.