lpmintegration

package
v1.21.39 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRepo

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

Returns alias

func GetRepos

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

func GetSubnets

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

func InstallVM

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

func MakeKey

func MakeKey(alias, subnet string) string

func SetupLpm

func SetupLpm(app *application.Lux, lpmBaseDir string) error

Note, you can only call this method once per run

func UpdateRepos

func UpdateRepos(app *application.Lux) error

Types

type Credential

type Credential struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

Credential represents git authentication credentials

type Subnet

type Subnet struct {
	ID          string   `yaml:"id"`
	Alias       string   `yaml:"alias"`
	VM          string   `yaml:"vm"`
	VMs         []string `yaml:"vms"`
	Config      string   `yaml:"config"`
	Genesis     string   `yaml:"genesis"`
	Description string   `yaml:"description"`
}

Types for LPM compatibility

func LoadSubnetFile

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

type SubnetWrapper

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

type VM

type VM struct {
	ID          string `yaml:"id"`
	Alias       string `yaml:"alias"`
	VMType      string `yaml:"vm_type"`
	Binary      string `yaml:"binary"`
	ChainConfig string `yaml:"chain_config"`
	Subnet      string `yaml:"subnet"`
	Genesis     string `yaml:"genesis"`
	Version     string `yaml:"version"`
	URL         string `yaml:"url"`
	Checksum    string `yaml:"checksum"`
	Runtime     string `yaml:"runtime"`
	Description string `yaml:"description"`
}

func LoadVMFile

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

type VMWrapper

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

Jump to

Keyboard shortcuts

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