plugins

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutomatedUpgrade

func AutomatedUpgrade(app *application.Avalanche, sc models.Sidecar, targetVersion string, pluginDir string) error

func CreatePlugin

func CreatePlugin(app *application.Avalanche, subnetName string, pluginDir string) (string, error)

Downloads the subnet's VM (if necessary) and copies it into the plugin directory

func CreatePluginFromVersion

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

func FindAvagoConfigPath() (string, error)

func FindPluginDir

func FindPluginDir() (string, error)

func ManualUpgrade

func ManualUpgrade(app *application.Avalanche, sc models.Sidecar, targetVersion string) error

func SanitizePath

func SanitizePath(path string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL