utils

package module
v0.0.0-...-58306fc Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertIP

func ConvertIP(ipAddress string) ([]byte, error)

ConvertIP -

func FileToHex

func FileToHex(filePath string) (sl string, err error)

FileToHex - this is a helper function to allow embedding files into .go files

func FindAllIPAddresses

func FindAllIPAddresses() ([]net.IP, error)

FindAllIPAddresses - Will return all IP addresses for a server

func FindIPAddress

func FindIPAddress(addrName string) (string, string, error)

FindIPAddress - this will find the address associated with an adapter

func IPXEAnyBoot

func IPXEAnyBoot(webserverAddress string, kernel, initrd, cmdline string) string

IPXEAnyBoot - This will build an iPXE boot script for anything wanting to PXE boot

func IPXEAutoBoot

func IPXEAutoBoot() string

IPXEAutoBoot -

func IPXEBOOTy

func IPXEBOOTy(webserverAddress, kernel, initrd, cmdline string) string

IPXEBOOTy - This will build an iPXE boot script for the BOOTy boot loader

func IPXEKickstart

func IPXEKickstart(webserverAddress, kernel, initrd, cmdline string) string

IPXEKickstart - This will build an iPXE boot script for RHEL/CentOS

func IPXEPreeseed

func IPXEPreeseed(webserverAddress, kernel, initrd, cmdline string) string

IPXEPreeseed - This will build an iPXE boot script for Debian/Ubuntu

func IPXEReboot

func IPXEReboot() string

IPXEReboot -

func IPXEVSphere

func IPXEVSphere(webserverAddress, kernel, cmdline string) string

IPXEVSphere - This will build an iPXE boot script for VMware vSphere/ESXi

func PullPXEBooter

func PullPXEBooter() error

PullPXEBooter - This will attempt to download the iPXE bootloader

func WaitForCtrlC

func WaitForCtrlC()

WaitForCtrlC - This function is the loop that will catch a Control-C keypress

Types

This section is empty.

Jump to

Keyboard shortcuts

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