warewulfd

package
v0.0.0-...-ad2992c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WAREWULFD_PIDFILE = "/var/run/warewulfd.pid"
	WAREWULFD_LOGFILE = "/var/log/warewulfd.log"
)

Variables

This section is empty.

Functions

func ArpFind

func ArpFind(ip string) (mac string)

returns the mac address if it has an entry in the arp cache

func CopyShimGrub

func CopyShimGrub() (err error)

func DaemonFormatter

func DaemonFormatter(logLevel int, rec *wwlog.LogRecord) string

func DaemonInitLogging

func DaemonInitLogging() error

func DaemonReload

func DaemonReload() error

func DaemonStart

func DaemonStart() error

func DaemonStatus

func DaemonStatus() error

func DaemonStop

func DaemonStop() error

func GetNode

func GetNode(val string) (node.NodeInfo, error)

func GetNodeOrSetDiscoverable

func GetNodeOrSetDiscoverable(hwaddr string) (node.NodeInfo, error)

func LoadNodeDB

func LoadNodeDB() error

func LoadNodeStatus

func LoadNodeStatus() error

func ProvisionSend

func ProvisionSend(w http.ResponseWriter, req *http.Request)

func RunServer

func RunServer() error

func SetArpFile

func SetArpFile(newName string)

func SetDaemon

func SetDaemon()

run with daemon

func SetNoDaemon

func SetNoDaemon()

run without daemon

func StatusSend

func StatusSend(w http.ResponseWriter, req *http.Request)

Types

type NodeStatus

type NodeStatus struct {
	NodeName string `json:"node name"`
	Stage    string `json:"stage"`
	Sent     string `json:"sent"`
	Ipaddr   string `json:"ipaddr"`
	Lastseen int64  `json:"last seen"`
}

Jump to

Keyboard shortcuts

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