Documentation
¶
Overview ¶
Package partition provides a library for working with GPT partitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option is the functional option func.
func WithLegacyBIOSBootableAttribute ¶
WithLegacyBIOSBootableAttribute marks the partition as bootable.
func WithPartitionName ¶
WithPartitionName sets the partition name.
func WithPartitionType ¶
WithPartitionType sets the partition type.
type Options ¶
Options is the functional options struct.
func NewDefaultOptions ¶
func NewDefaultOptions(setters ...interface{}) *Options
NewDefaultOptions initializes a Options struct with default values.
type Partition ¶
type Partition struct {
Type uuid.UUID // 0
ID uuid.UUID // 16
FirstLBA uint64 // 32
LastLBA uint64 // 40
Flags uint64 // 48
Name string // 56
TrailingBytes []byte // 128
Number int32
// contains filtered or unexported fields
}
Partition represents a partition entry in a GUID partition table.
func NewPartition ¶
NewPartition initializes and returns a new partition.
Click to show internal directories.
Click to hide internal directories.