Skip to content

refactor(cli): replace untyped Store with typed credential stores#32

Merged
odsod merged 1 commit intomainfrom
odsod/push-krxrkoxvvoon
Apr 10, 2026
Merged

refactor(cli): replace untyped Store with typed credential stores#32
odsod merged 1 commit intomainfrom
odsod/push-krxrkoxvvoon

Conversation

@odsod
Copy link
Copy Markdown
Member

@odsod odsod commented Apr 10, 2026

Summary

  • Replace Store interface for credentials with typed FleetCredentialStore and VehicleSpecCredentialStore interfaces
  • Add private generic fileStore[T] with typed constructors
  • Remove credential provider functions — store is the single injection point
  • Simplify resolve functions to single-path logic
  • Simplify FileStore to json-only (remove proto.Message branching)
  • Keep untyped Store/FileStore for token store (orthogonal)

Test plan

  • go build ./...
  • go test ./...

- Replace `Store` interface for credentials with typed
  `FleetCredentialStore` and `VehicleSpecCredentialStore` interfaces
- Add private generic `fileStore[T]` with typed constructors
- Remove credential provider functions — store is the single injection
  point
- Simplify `resolveFleetCredentials`/`resolveVehicleSpecCredentials` to
  single-path logic
- Simplify `FileStore` to json-only (remove proto.Message branching)
- Keep untyped `Store`/`FileStore` for token store (orthogonal)
@odsod odsod merged commit e0fd37a into main Apr 10, 2026
1 check passed
@odsod odsod deleted the odsod/push-krxrkoxvvoon branch April 10, 2026 06:10
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.

1 participant