2024-09-12 13:25:19 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
type Partition struct {
|
|
|
|
Name string `yaml:"-"`
|
|
|
|
FilesystemLabel string `yaml:"label,omitempty" mapstructure:"label"`
|
|
|
|
Size uint `yaml:"size,omitempty" mapstructure:"size"`
|
|
|
|
FS string `yaml:"fs,omitempty" mapstrcuture:"fs"`
|
|
|
|
Flags []string `yaml:"flags,omitempty" mapstrcuture:"flags"`
|
2024-09-17 11:10:26 +00:00
|
|
|
UUID string `yaml:"uuid,omitempty" mapstructure:"uuid"`
|
|
|
|
MountPoint string `yaml:"-"`
|
|
|
|
Path string `yaml:"-"`
|
|
|
|
Disk string `yaml:"-"`
|
2024-09-12 13:25:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type PartitionList []*Partition
|
2024-09-16 13:54:10 +00:00
|
|
|
|
|
|
|
type Disk struct {
|
|
|
|
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
|
|
|
SizeBytes uint64 `json:"size_bytes,omitempty" yaml:"size_bytes,omitempty"`
|
|
|
|
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
|
|
|
Partitions PartitionList `json:"partitions,omitempty" yaml:"partitions,omitempty"`
|
|
|
|
}
|