Skip to content

refactor: extract pkg/hoverclient for cross-repo reuse (closes #25)#26

Merged
intel352 merged 1 commit into
mainfrom
feat/extract-pkg-hoverclient
May 26, 2026
Merged

refactor: extract pkg/hoverclient for cross-repo reuse (closes #25)#26
intel352 merged 1 commit into
mainfrom
feat/extract-pkg-hoverclient

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

Moves HTML-scrape Hover client from internal/hover/ to pkg/hoverclient/ so workflow-plugin-infra (and future consumers) can import without copy-pasting 582 LOC. Closes #25.

Scope

  • Package renamed hoverhoverclient
  • Public surface unchanged (verified — Credentials, NewClient, DNSRecord, etc.)
  • 4 internal callers updated to new import path
  • Plugin Name() still returns "hover" (string literal, not package name)
  • No behavior change

Test plan

  • GOWORK=off go test ./... — all PASS
  • GOWORK=off go vet ./... — clean
  • Plugin binary builds (71 MB)

Consumer: workflow-plugin-infra DNS provider v2 Task 6 (Hover adapter) unblocks on this + tag.

🤖 Generated with Claude Code

Move HTML-scrape Hover client (582 LOC stdlib HTTP + TOTP) from
internal/hover/ to pkg/hoverclient/ so workflow-plugin-infra
(and any future consumer) can import without copy-pasting.

- Package renamed hover → hoverclient.
- Public surface unchanged: Credentials, NewClient, Login, Domain,
  DNSRecord, DomainDelegation, ListRecords, CreateRecord, UpdateRecord,
  DeleteRecord, GetDomain, GetDomainDelegation, SetNameservers,
  TOTPSecret, ParseBase32.
- 4 internal callers updated (provider.go, drivers/dns.go,
  drivers/delegation.go + 2 test files).
- Plugin Name() still returns "hover" (string literal — not package name).

Closes #25.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@intel352 intel352 merged commit 4fb779e into main May 26, 2026
4 checks passed
@intel352 intel352 deleted the feat/extract-pkg-hoverclient branch May 26, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract internal/hover/ → pkg/hoverclient for cross-repo reuse

1 participant