Add Redfish Authentication Support

This commit also introduces a dochelper concept.  This provides
some convenience methods to the document pkg that help extract data
from known document types as well as walk document relationships to
discover related information such as BMC credentials for baremetal
hosts.

Once merged, a follow up patchset will leverage these within the
cloud-init code to deduplicate some of these lookups.

Change-Id: Ie6a770ce4b34adbea30281917f0cb2fdc460b4fb
This commit is contained in:
Alan Meadows
2020-03-27 14:09:32 -07:00
parent 21c7c166ff
commit e2cca32748
15 changed files with 393 additions and 65 deletions

View File

@@ -74,7 +74,7 @@ func getNetworkData(docBundle document.Bundle) ([]byte, error) {
}
// try and find these documents in our bundle
selector, err = document.NewEphemeralNetworkDataSelector(bmhDoc)
selector, err = document.NewNetworkDataSelector(bmhDoc)
if err != nil {
return nil, err
}