mirror of
https://github.com/kairos-io/kairos-sdk.git
synced 2025-04-27 19:15:23 +00:00
23 lines
906 B
Go
23 lines
906 B
Go
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"`
|
|
UUID string `yaml:"uuid,omitempty" mapstructure:"uuid"`
|
|
MountPoint string `yaml:"-"`
|
|
Path string `yaml:"-"`
|
|
Disk string `yaml:"-"`
|
|
}
|
|
|
|
type PartitionList []*Partition
|
|
|
|
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"`
|
|
}
|