homelabby/internal/netbox
Mikkel Georgsen 6040ecc3cc feat(02-01): install go-openai and add CreateDevice to NetBox client
- go get github.com/sashabaranov/go-openai v1.41.2
- Add CreateDevice(ctx, name, assetTag, deviceTypeID, roleID, siteID) → (int64, error)
- Add DeleteDevice(ctx, id) for test cleanup
- Use Int32As* oneOf helpers for go-netbox v4 FK fields
- TestCreateDeviceValidation PASS; TestCreateDeviceLive SKIP (no live token)
2026-04-10 05:42:51 +00:00
..
client.go feat(02-01): install go-openai and add CreateDevice to NetBox client 2026-04-10 05:42:51 +00:00
client_test.go feat(02-01): install go-openai and add CreateDevice to NetBox client 2026-04-10 05:42:51 +00:00
custom_fields.go feat(01-02): custom field read/write wrappers (NB-02) 2026-04-10 05:17:11 +00:00
custom_fields_test.go feat(01-02): custom field read/write wrappers (NB-02) 2026-04-10 05:17:11 +00:00
hwid.go feat(01-04): HW-XXXXX sequential ID allocation 2026-04-10 05:20:41 +00:00
hwid_test.go feat(01-04): HW-XXXXX sequential ID allocation 2026-04-10 05:20:41 +00:00
provision.go feat(01-03): implement custom field provisioning with go-netbox v4 2026-04-10 05:21:23 +00:00
provision_test.go test(01-03): add failing tests for custom field spec and provisioning 2026-04-10 05:20:37 +00:00
tags.go feat(01-04): quality gate state machine, tag sync, catalog updater 2026-04-10 05:22:22 +00:00
tags_test.go feat(01-04): quality gate state machine, tag sync, catalog updater 2026-04-10 05:22:22 +00:00
types.go feat(01-02): NetBox client wrapper with device CRUD (NB-01) 2026-04-10 05:16:17 +00:00