uefi

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// efibootmgr useage: https://github.com/rhboot/efibootmgr
	CMD_EFIBOOTMGR  = "/usr/sbin/efibootmgr"
	SUDO_EFIBOOTMGR = "sudo efibootmgr"

	MAC_KEYWORD = "MAC"
)

Variables

This section is empty.

Functions

func RemoteIsUEFIBoot

func RemoteIsUEFIBoot(cli *ssh.Client) (bool, error)

func RemoteSetBootOrder

func RemoteSetBootOrder(cli *ssh.Client, order []string) error

func RemoteSetCurrentBootAtFirst

func RemoteSetCurrentBootAtFirst(cli *ssh.Client, mgr *BootMgr) error

func RemoteTryRemoveOSBootEntry

func RemoteTryRemoveOSBootEntry(hostCli *ssh.Client) error

func RemoteTryToSetPXEBoot

func RemoteTryToSetPXEBoot(cli *ssh.Client) error

Types

type BootEntry

type BootEntry struct {
	BootNum     string
	Description string
	IsActive    bool
}

type BootMgr

type BootMgr struct {
	// contains filtered or unexported fields
}

func NewEFIBootMgrFromRemote

func NewEFIBootMgrFromRemote(cli *ssh.Client, sudo bool) (*BootMgr, error)

func ParseEFIBootMGR

func ParseEFIBootMGR(input string) (*BootMgr, error)

func RemoteSetBootOrderByInfo

func RemoteSetBootOrderByInfo(cli *ssh.Client, entry *types.EFIBootEntry) (*BootMgr, error)

func (*BootMgr) DataCheck

func (m *BootMgr) DataCheck() error

func (*BootMgr) FindBootOrderPos

func (m *BootMgr) FindBootOrderPos(num string) int

func (*BootMgr) GetBootCurrent

func (m *BootMgr) GetBootCurrent() string

func (*BootMgr) GetBootEntry

func (m *BootMgr) GetBootEntry(num string) *BootEntry

func (*BootMgr) GetBootEntryByDesc

func (m *BootMgr) GetBootEntryByDesc(desc string) *BootEntry

func (*BootMgr) GetBootNext

func (m *BootMgr) GetBootNext() string

func (*BootMgr) GetBootOrder

func (m *BootMgr) GetBootOrder() []string

func (*BootMgr) GetCommand

func (m *BootMgr) GetCommand(sudo bool) string

func (*BootMgr) GetSetBootOrderArgs

func (m *BootMgr) GetSetBootOrderArgs() string

func (*BootMgr) GetTimeout

func (m *BootMgr) GetTimeout() int

func (*BootMgr) MoveBootOrder

func (m *BootMgr) MoveBootOrder(num string, pos int) *BootMgr

func (*BootMgr) ToEFIBootMgrInfo

func (mgr *BootMgr) ToEFIBootMgrInfo() (*types.EFIBootMgrInfo, error)

Jump to

Keyboard shortcuts

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