Register resources per file and split resource docs #31

Merged
benvin merged 1 commits from benvin/modular-registry into main 2026-10-17 15:31:07 +11:00
Member

Every new resource edits the same Resources() list, test tables, resource count and README list, so parallel resource PRs keep conflicting. Adding a resource should only add files.

  • add registry.go; resources and data sources register in init(), returned sorted by type name
  • add one resource_remote_.go per remote kind; drop unused NewRemote* constructors
  • replace resource count/type tables with invariants: unique artifactapi_ names, each with an example and docs page, no orphan example or docs
  • move README resource sections into docs/resources and docs/data-sources
Every new resource edits the same Resources() list, test tables, resource count and README list, so parallel resource PRs keep conflicting. Adding a resource should only add files. - add registry.go; resources and data sources register in init(), returned sorted by type name - add one resource_remote_<kind>.go per remote kind; drop unused NewRemote* constructors - replace resource count/type tables with invariants: unique artifactapi_ names, each with an example and docs page, no orphan example or docs - move README resource sections into docs/resources and docs/data-sources
unkin-agent added 1 commit 2026-10-17 15:17:11 +11:00
Register resources per file and split resource docs
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
36f8f468e7
- add registry with per-file init() registration, sorted by type name
- give each remote kind its own resource_remote_<kind>.go
- replace hardcoded resource tables with registry/examples/docs invariants
- move per-resource README sections into docs/resources and docs/data-sources
Author
Member

No findings.

No findings.
benvin merged commit b2272508cc into main 2026-10-17 15:31:07 +11:00
benvin deleted branch benvin/modular-registry 2026-10-17 15:31:08 +11:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/terraform-provider-artifactapi#31