apmintegration

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: BSD-3-Clause Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRepo

func AddRepo(app *application.Avalanche, repoURL *url.URL, branch string) (string, error)

Returns alias

func GetRepos

func GetRepos(app *application.Avalanche) ([]string, error)

func GetSubnets

func GetSubnets(app *application.Avalanche, repoAlias string) ([]string, error)

func InstallVM

func InstallVM(app *application.Avalanche, subnetKey string) error

func LoadSubnetFile

func LoadSubnetFile(app *application.Avalanche, subnetKey string) (types.Subnet, error)

func LoadVMFile

func LoadVMFile(app *application.Avalanche, repo, vm string) (types.VM, error)

func MakeKey

func MakeKey(alias, subnet string) string

func SetupApm

func SetupApm(app *application.Avalanche, apmBaseDir string) error

Note, you can only call this method once per run

func UpdateRepos

func UpdateRepos(app *application.Avalanche) error

Types

type SubnetWrapper

type SubnetWrapper struct {
	Subnet types.Subnet `yaml:"subnet"`
}

type VMWrapper

type VMWrapper struct {
	VM types.VM `yaml:"vm"`
}

Jump to

Keyboard shortcuts

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