Documentation ¶
Index ¶
- func Commands(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func DNS(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func DataSources(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func DecodeMultipartVmware(data []byte) []byte
- func DeleteEntities(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func Download(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func EnsureDirectories(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func EnsureFiles(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func Entities(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func Environment(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func Git(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func Hostname(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func IfConditional(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func Layout(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func LoadModules(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func MatchPartitionFSLabel(l logger.Interface, label string, console Console) string
- func MatchPartitionPLabel(l logger.Interface, label string, console Console) string
- func MiBToSectors(size uint, sectorSize uint) uint
- func NodeConditional(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func SSH(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func Sysctl(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func SystemHostname(hostname string, fs vfs.FS) error
- func Systemctl(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func SystemdFirstboot(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func Timesyncd(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- func UpdateHostsFile(hostname string, fs vfs.FS) error
- func User(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) error
- type Console
- type Disk
- func (dev *Disk) AddPartition(l logger.Interface, label string, size uint, fileSystem string, pLabel string, ...) (string, error)
- func (dev *Disk) CheckDiskFreeSpaceMiB(l logger.Interface, minSpace uint, console Console) bool
- func (dev *Disk) ExpandLastPartition(l logger.Interface, size uint, console Console) (string, error)
- func (dev Disk) FindPartitionDevice(l logger.Interface, partNum int, console Console) (string, error)
- func (dev *Disk) GetFreeSpace(l logger.Interface, console Console) (uint, error)
- func (dev *Disk) Reload(console Console) error
- func (dev Disk) ReloadPartitionTable(l logger.Interface, console Console) error
- func (dev Disk) String() string
- type GdiskCall
- func (gd *GdiskCall) CreatePartition(p *Partition)
- func (gd *GdiskCall) DeletePartition(num int)
- func (gd *GdiskCall) ExpandPTable()
- func (gd GdiskCall) GetLastSector(printOut string) (uint, error)
- func (gd GdiskCall) GetPartitionData(partNum int, console Console) (*Partition, error)
- func (gd GdiskCall) GetPartitions(printOut string) []Partition
- func (gd GdiskCall) GetSectorSize(printOut string) (uint, error)
- func (gd GdiskCall) HasUnallocatedSpace(console Console) bool
- func (gd GdiskCall) Info(partNum int, console Console) (string, error)
- func (gd GdiskCall) Print(console Console) (string, error)
- func (gd *GdiskCall) SetPretend(pretend bool)
- func (gd GdiskCall) Verify(console Console) (string, error)
- func (gd *GdiskCall) WipeTable(wipe bool)
- func (gd *GdiskCall) WriteChanges(console Console) (string, error)
- type MkfsCall
- type Partition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSources ¶
func DecodeMultipartVmware ¶
DecodeMultipartVmware will try to decode the user-data from VMWARE provider as it returns a multipart/mixed data instead of the simple cloud-config
func DeleteEntities ¶
func EnsureDirectories ¶
func EnsureFiles ¶
func Environment ¶
func IfConditional ¶
func LoadModules ¶
func MatchPartitionFSLabel ¶
func MatchPartitionPLabel ¶
func MiBToSectors ¶
func NodeConditional ¶
func SystemHostname ¶
func SystemdFirstboot ¶
func UpdateHostsFile ¶
Types ¶
type Disk ¶
func (*Disk) AddPartition ¶
func (dev *Disk) AddPartition(l logger.Interface, label string, size uint, fileSystem string, pLabel string, console Console) (string, error)
Size is expressed in MiB here
func (*Disk) CheckDiskFreeSpaceMiB ¶
Size is expressed in MiB here
func (*Disk) ExpandLastPartition ¶
func (dev *Disk) ExpandLastPartition(l logger.Interface, size uint, console Console) (string, error)
ExpandLastPartition will call growpart + resize tool in a given partition to grow it up to max space available
func (Disk) FindPartitionDevice ¶
func (*Disk) GetFreeSpace ¶
func (Disk) ReloadPartitionTable ¶
type GdiskCall ¶
type GdiskCall struct {
// contains filtered or unexported fields
}
func NewGdiskCall ¶
func (*GdiskCall) CreatePartition ¶
func (*GdiskCall) DeletePartition ¶
func (*GdiskCall) ExpandPTable ¶
func (gd *GdiskCall) ExpandPTable()
func (GdiskCall) GetLastSector ¶
Parses the output of a GdiskCall.Print call
func (GdiskCall) GetPartitionData ¶
func (GdiskCall) GetPartitions ¶
Parses the output of a GdiskCall.Print call
func (GdiskCall) GetSectorSize ¶
Parses the output of a GdiskCall.Print call There was a change in the output of sgdisk in version 1.0.2 https://www.rodsbooks.com/gdisk/revisions.html We are trying to match both possible outputs
func (GdiskCall) HasUnallocatedSpace ¶
func (*GdiskCall) SetPretend ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.