Documentation ¶
Overview ¶
Package gpt probes GPT partition tables.
Index ¶
- Constants
- type Entry
- type Header
- func (s Header) Get_alternate_lba() uint64
- func (s Header) Get_disk_guid() []byte
- func (s Header) Get_first_usable_lba() uint64
- func (s Header) Get_header_crc32() uint32
- func (s Header) Get_header_size() uint32
- func (s Header) Get_last_usable_lba() uint64
- func (s Header) Get_my_lba() uint64
- func (s Header) Get_num_partition_entries() uint32
- func (s Header) Get_partition_entries_lba() uint64
- func (s Header) Get_partition_entry_array_crc32() uint32
- func (s Header) Get_reserved1() uint32
- func (s Header) Get_revision() uint32
- func (s Header) Get_signature() uint64
- func (s Header) Get_sizeof_partition_entry() uint32
- type Probe
Constants ¶
const ENTRY_SIZE = 128
ENTRY_SIZE is the size of the Entry struct.
const HEADER_SIZE = 92
HEADER_SIZE is the size of the Header struct.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry []byte
Entry is a byte slice representing the entry.h C header.
func (Entry) Get_attributes ¶
Get_attributes returns attributes.
func (Entry) Get_ending_lba ¶
Get_ending_lba returns ending_lba.
func (Entry) Get_partition_name ¶
Get_partition_name returns partition_name.
func (Entry) Get_partition_type_guid ¶
Get_partition_type_guid returns type UUID.
func (Entry) Get_starting_lba ¶
Get_starting_lba returns starting_lba.
func (Entry) Get_unique_partition_guid ¶
Get_unique_partition_guid returns partition UUID.
type Header ¶
type Header []byte
Header is a byte slice representing the header.h C header.
func (Header) Get_alternate_lba ¶
Get_alternate_lba returns location of the other header copy.
func (Header) Get_disk_guid ¶
Get_disk_guid returns disk UUID.
func (Header) Get_first_usable_lba ¶
Get_first_usable_lba returns first usable LBA for partitions.
func (Header) Get_header_crc32 ¶
Get_header_crc32 returns header_crc32.
func (Header) Get_header_size ¶
Get_header_size returns usually 92 bytes.
func (Header) Get_last_usable_lba ¶
Get_last_usable_lba returns last usable LBA for partitions.
func (Header) Get_my_lba ¶
Get_my_lba returns location of this header copy.
func (Header) Get_num_partition_entries ¶
Get_num_partition_entries returns num_partition_entries.
func (Header) Get_partition_entries_lba ¶
Get_partition_entries_lba returns always 2 in primary header copy.
func (Header) Get_partition_entry_array_crc32 ¶
Get_partition_entry_array_crc32 returns partition_entry_array_crc32.
func (Header) Get_reserved1 ¶
Get_reserved1 returns reserved1.
func (Header) Get_signature ¶
Get_signature returns "EFI PART".
func (Header) Get_sizeof_partition_entry ¶
Get_sizeof_partition_entry returns sizeof_partition_entry.