talos/pkg/userdata/install.go
Andrew Rynhard d4770d41ad feat: run installs via container
This moves to performing installs via a container.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-08-27 15:01:20 -05:00

30 lines
1.2 KiB
Go

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package userdata
// Install represents the installation options for preparing a node.
type Install struct {
Disk string `yaml:"disk,omitempty"`
ExtraDevices []*ExtraDevice `yaml:"extraDevices,omitempty"`
ExtraKernelArgs []string `yaml:"extraKernelArgs,omitempty"`
Image string `yaml:"image,omitempty"`
Bootloader bool `yaml:"bootloader,omitempty"`
Wipe bool `yaml:"wipe"`
Force bool `yaml:"force"`
}
// ExtraDevice represents the options available for partitioning, formatting,
// and mounting extra disks.
type ExtraDevice struct {
Device string `yaml:"device,omitempty"`
Partitions []*ExtraDevicePartition `yaml:"partitions,omitempty"`
}
// ExtraDevicePartition represents the options for a device partition.
type ExtraDevicePartition struct {
Size uint `yaml:"size,omitempty"`
MountPoint string `yaml:"mountpoint,omitempty"`
}