package
0.0.0-20240910131244-13d20f98e541
Repository: https://github.com/redhatinsights/edge-api.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
CleanupOrphanDevicesUpdates cleanup all orphan devices updates candidates orphan devices updates are devices that are linked to dispatcher-records, the dispatcher record is linked to update-transaction but the device is not linked to the update-transaction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetCandidateDevices returns the data set of devices cleanup candidates.
GetOrphanDevicesUpdatesCandidates returns the data set of orphan devices cleanup candidates orphan devices updates are devices that are linked to dispatcher-records, the dispatcher record is linked to update-transaction but the device is not linked to the update-transaction.
IsDeviceCandidate to ensure the device is a candidate.
# Variables
DefaultDataLimit the default data limit to use when collecting data.
DefaultMaxDataPageNumber the default data pages to handle as preventive way to enter an indefinite loop.
ErrCleanUpAllDevicesInterrupted error returned when an error is return from anu Device cleanup function.
ErrCleanupDevicesNotAvailable error returned when the cleanup devices feature flag is disabled.
ErrDeleteDeviceWithUpdateTransaction error returned when deleting a device that is linked to an update-transaction.
ErrDeviceNotCleanUpCandidate error returned when the device is not a cleanup candidate.
ErrUpdateTransactionIsNotDefined error retuned when update transaction is not defined.
# Structs
CandidateDevice the device cleanup candidate.