sgdisk

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

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 Begin

func Begin(logger *log.Logger, dev string) *Operation

Begin begins an sgdisk operation

func (*Operation) Commit

func (op *Operation) Commit() error

Commit commits an partitioning operation.

func (*Operation) CreatePartition

func (op *Operation) CreatePartition(p Partition)

CreatePartition adds the supplied partition to the list of partitions to be created as part of an operation.

func (*Operation) WipeTable

func (op *Operation) WipeTable(wipe bool)

WipeTable toggles if the table is to be wiped first when commiting this operation.

type Partition

type Partition struct {
	Number   int
	Offset   uint64 // 512-byte sectors
	Length   uint64 // 512-byte sectors
	Label    string
	TypeGUID string
	GUID     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL