MCPcopy Create free account
hub / github.com/danderson/netboot / GetBootURL

Method GetBootURL

pixiecore/boot_configuration.go:37–42  ·  view source on GitHub ↗

GetBootURL returns Boot File URL, see RFC 5970

(id []byte, clientArchType uint16)

Source from the content-addressed store, hash-verified

35
36// GetBootURL returns Boot File URL, see RFC 5970
37func (bc *StaticBootConfiguration) GetBootURL(id []byte, clientArchType uint16) ([]byte, error) {
38 if clientArchType == x86HTTPClient {
39 return bc.HTTPBootURL, nil
40 }
41 return bc.IPxeBootURL, nil
42}
43
44// GetPreference returns server's Preference, see RFC 3315
45func (bc *StaticBootConfiguration) GetPreference() []byte {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected