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

Update execution package #34

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Conversation

fabi200123
Copy link
Contributor

  • Updates func GetEnvironment(version ...string) to get the environment based on the version received from external-provider
  • Updates Run() to be a method of the Environment struct
  • Removes the need for a common ExternalProvider interface in favor of doing a cast during the call of Run()
  • Removes semver dependency
  • Adds for v0.1.1 a new command GetSupportedInterfaceVersions

@@ -88,6 +88,11 @@ func (p *testExternalProvider) GetVersion(context.Context) string {
return "v0.1.1"
}

func (p *testExternalProvider) GetSupportedInterfaceVersions(context.Context) []string {
//TODO: implement
return []string{"v0.1.0", "v0.1.1"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup. We may add a new param to describe interface versions with more than just the string itself. But in another PR after we give it some thought.

@gabriel-samfira gabriel-samfira merged commit 57315d4 into cloudbase:main Sep 6, 2024
2 checks passed
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.

2 participants