builder

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CloudBuilderConfigFile = "cloud-builder.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Name   string `yaml:"name"`
	SSHKey SSHKey `yaml:"sshKey"`
	Nodes  []Node `yaml:"nodes"`
}

type Config

type Config struct {
	Builder Builder `yaml:"builder"`
}

func ParseConfig

func ParseConfig(filePath string) *Config

ParseConfig reads the config file from the filesystem and unmarshals it into a Config struct.

type Labels

type Labels struct {
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

type Node

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

type SSHKey struct {
	Name string `yaml:"name"`
	Path string `yaml:"path"`
}

type Volume

type Volume struct {
	Name   string `yaml:"name"`
	Path   string `yaml:"path"`
	SizeGB int    `yaml:"sizeGB"`
}

Jump to

Keyboard shortcuts

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