- formatHWID/parseHWID with HW-NNNNN regex validation - AllocateNextHWID with optimistic-lock retry (3 attempts) - getHighestHWIDNumber scans all devices for highest existing asset_tag - hwIDExists checks specific asset_tag via DcimDevicesList filter - Unit tests for format/parse covering valid and invalid cases |
||
|---|---|---|
| .. | ||
| client.go | ||
| client_test.go | ||
| custom_fields.go | ||
| custom_fields_test.go | ||
| hwid.go | ||
| hwid_test.go | ||
| types.go | ||