Skip to main content

validateInventoryCoverage

@totemsdk/recursive-mast


@totemsdk/recursive-mast / validateInventoryCoverage

Function: validateInventoryCoverage()

validateInventoryCoverage(inventory, availableHashes): object

Parameters

inventory

BranchInventory

availableHashes

Set<string>

Returns

object

available

available: number

coverage

coverage: number

missing

missing: BranchInventoryEntry[]

missingCritical

missingCritical: BranchInventoryEntry[]

missingRecovery

missingRecovery: BranchInventoryEntry[]

total

total: number