Documentation
¶
Index ¶
Constants ¶
View Source
const BFBFileNameExtension = ".bfb"
Variables ¶
View Source
var DownloadingTaskMap sync.Map
Functions ¶
func DefaultBFBFilename ¶
func DefaultBFBFilename(bfb *provisioningv1.BFB) string
func FormatDOCAVersion ¶
FormatDOCAVersion normalizes a raw DOCA build version to the user-facing semver used for compatibility checks. The first digit of the patchbuild component becomes the patch version. Anything after a dash in the raw version is ignored before parsing. e.g. 3.0.0058 becomes 3.0.0, 2.9.3008 becomes 2.9.3, 3.3.0202-1.5 becomes 3.3.0
func VersionFromBFBFile ¶
func VersionFromBFBFile(filename string) (version *provisioningv1.BFBVersions, reterr error)
VersionFromBFBFile reads a BlueField BFB file and returns the version information. This function extracts version information from the software inventory JSON embedded in the BFB.
Types ¶
Click to show internal directories.
Click to hide internal directories.