- CableRecord type added to types.go (ID, HWID, Label, TestData, CatalogStatus) - CreateCable(ctx, label, assetTag, testDataJSON) uses DcimCablesCreate - Sets test_data and catalog_status custom fields; hw_id if assetTag non-empty - Rejects empty label with sentinel error message - Unit tests use httptest.NewUnstartedServer (201 success, 422 error, empty label) |
||
|---|---|---|
| .. | ||
| client.go | ||
| client_test.go | ||
| custom_fields.go | ||
| custom_fields_test.go | ||
| hwid.go | ||
| hwid_test.go | ||
| provision.go | ||
| provision_test.go | ||
| tags.go | ||
| tags_test.go | ||
| types.go | ||