Documentation
¶
Index ¶
- func AddRepo(app *application.Lux, repoURL *url.URL, branch string) (string, error)
- func GetRepos(app *application.Lux) ([]string, error)
- func GetSubnets(app *application.Lux, repoAlias string) ([]string, error)
- func InstallVM(app *application.Lux, subnetKey string) error
- func MakeKey(alias, subnet string) string
- func SetupLpm(app *application.Lux, lpmBaseDir string) error
- func UpdateRepos(app *application.Lux) error
- type Credential
- type Subnet
- type SubnetWrapper
- type VM
- type VMWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSubnets ¶
func GetSubnets(app *application.Lux, repoAlias string) ([]string, error)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.