util

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

func FormatDOCAVersion(version string) (string, error)

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

type BFBTask

type BFBTask struct {
	TaskName string
	URL      string
	FileName string
	UID      types.UID
}

Jump to

Keyboard shortcuts

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