plugins

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: BSD-3-Clause Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutomatedUpgrade added in v1.1.0

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 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,
	networkID string,
	configFile string,
	forceWrite bool,
) 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 FindAvagoConfigPath() (string, error)

func FindPluginDir added in v1.1.0

func FindPluginDir() (string, error)

func ManualUpgrade added in v1.1.0

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

func SanitizePath added in v1.1.0

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