package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Apr 27, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const CloudBuilderConfigFile = "cloud-builder.yaml"
type Builder struct {
Name string `yaml:"name"`
SSHKey SSHKey `yaml:"sshKey"`
Nodes []Node `yaml:"nodes"`
}
type Config struct {
Builder Builder `yaml:"builder"`
}
ParseConfig reads the config file from the filesystem and unmarshals it into a Config struct.
type Labels struct {
Key string `yaml:"key"`
Value string `yaml:"value"`
}
type Node struct {
Name string `yaml:"name"`
Location string `yaml:"location"`
Image string `yaml:"image"`
Type string `yaml:"type"`
Platforms []string `yaml:"platforms"`
Labels []Labels `yaml:"labels"`
Volume Volume `yaml:"volume"`
}
type SSHKey struct {
Name string `yaml:"name"`
Path string `yaml:"path"`
}
type Volume struct {
Name string `yaml:"name"`
Path string `yaml:"path"`
SizeGB int `yaml:"sizeGB"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.