Documentation ¶
Index ¶
- Constants
- func RemoteIsUEFIBoot(cli *ssh.Client) (bool, error)
- func RemoteSetBootOrder(cli *ssh.Client, order []string) error
- func RemoteSetCurrentBootAtFirst(cli *ssh.Client, mgr *BootMgr) error
- func RemoteTryRemoveOSBootEntry(hostCli *ssh.Client) error
- func RemoteTryToSetPXEBoot(cli *ssh.Client) error
- type BootEntry
- type BootMgr
- func (m *BootMgr) DataCheck() error
- func (m *BootMgr) FindBootOrderPos(num string) int
- func (m *BootMgr) GetBootCurrent() string
- func (m *BootMgr) GetBootEntry(num string) *BootEntry
- func (m *BootMgr) GetBootEntryByDesc(desc string) *BootEntry
- func (m *BootMgr) GetBootNext() string
- func (m *BootMgr) GetBootOrder() []string
- func (m *BootMgr) GetCommand(sudo bool) string
- func (m *BootMgr) GetSetBootOrderArgs() string
- func (m *BootMgr) GetTimeout() int
- func (m *BootMgr) MoveBootOrder(num string, pos int) *BootMgr
- func (mgr *BootMgr) ToEFIBootMgrInfo() (*types.EFIBootMgrInfo, error)
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 RemoteTryToSetPXEBoot ¶
Types ¶
type BootMgr ¶
type BootMgr struct {
// contains filtered or unexported fields
}
func NewEFIBootMgrFromRemote ¶
func ParseEFIBootMGR ¶
func (*BootMgr) FindBootOrderPos ¶
func (*BootMgr) GetBootCurrent ¶
func (*BootMgr) GetBootEntry ¶
func (*BootMgr) GetBootEntryByDesc ¶
func (*BootMgr) GetBootNext ¶
func (*BootMgr) GetBootOrder ¶
func (*BootMgr) GetCommand ¶
func (*BootMgr) GetSetBootOrderArgs ¶
func (*BootMgr) GetTimeout ¶
func (*BootMgr) ToEFIBootMgrInfo ¶
func (mgr *BootMgr) ToEFIBootMgrInfo() (*types.EFIBootMgrInfo, error)
Click to show internal directories.
Click to hide internal directories.