Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structural Refactor #29

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Structural Refactor #29

merged 1 commit into from
Nov 7, 2024

Conversation

pkedy
Copy link
Collaborator

@pkedy pkedy commented Nov 7, 2024

  • Renaming packages based on purpose instead of types
    (e.g. common, utils, const -> engines, providers, topology)
  • Decoupling providers and engines via interfaces and loader/component pattern
  • Decoupling API/Service types from other packages
  • CSP SDKs are accessed via explicit interface dependencies to support mocking
  • provider::GetCredentials removed and credentials no longer passed to provider::GenerateTopologyConfig
    Instead, clients are created and passed to providers via New as explicit dependencies
  • GetComputeInstances moved from providers to engines (It seems like engines really drive this)
  • In some cases, a config wrapper around mapstructure to convert params (map[string]string|any) to a struct for type safety, validation, and readability

henryh2
henryh2 previously approved these changes Nov 7, 2024
- Decoupling providers and engines via interfaces and loader pattern
- CSP SDKs are accessed via interfaces to support mocking
- `GetComputeInstances` moved to and driven by engines instead of providers

Signed-off-by: Phil Kedy <[email protected]>
@henryh2 henryh2 self-requested a review November 7, 2024 21:55
@pkedy pkedy merged commit ac804fa into main Nov 7, 2024
4 checks passed
@pkedy pkedy deleted the structural-refactor branch November 7, 2024 21:57
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.

3 participants