Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
func (*Operation) CreatePartition ¶
CreatePartition adds the supplied partition to the list of partitions to be created as part of an operation.
func (*Operation) DeletePartition ¶
func (*Operation) Pretend ¶
Pretend is like Commit() but uses the --pretend flag and returns the output on stdout for parsing.
Note: because sgdisk does not do any escaping on its output, callers should ensure the partitions' labels do not have any nasty characters that will interfere with parsing (e.g. \n)
type Partition ¶ added in v2.7.0
type Partition struct { types.Partition StartSector *int64 SizeInSectors *int64 // shadow StartMiB/SizeMiB so they're not accidentally used StartMiB string SizeMiB string }
We ignore types.Partition.StartMiB/SizeMiB in favor of StartSector/SizeInSectors. The caller is expected to do the conversion.
Click to show internal directories.
Click to hide internal directories.