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

chore(deviceauth): moving tenantadm client to pkg #190

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

merlin-northern
Copy link
Contributor

Changelog: None
Ticket: MEN-7715

Changelog: None
Ticket: MEN-7715
Signed-off-by: Peter Grzybowski <peter@northern.tech>
@merlin-northern merlin-northern force-pushed the men_7715_introduce_api_limitations_to_sp_tenants_ branch from 2ee70a7 to 53ed43d Compare November 7, 2024 16:53
Copy link
Contributor

@alfrunes alfrunes left a comment

Choose a reason for hiding this comment

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

Nice initiative.
May I suggest a slightly different (opinionated) structure?
Do you think we can group the clients something like this?
pkg/client/<service name> so it becomes pkg/client/tenantadm.

@@ -30,12 +30,12 @@ import (
"github.com/mendersoftware/mender-server/pkg/plan"
"github.com/mendersoftware/mender-server/pkg/ratelimits"
"github.com/mendersoftware/mender-server/pkg/requestid"
tenant2 "github.com/mendersoftware/mender-server/pkg/tenant"
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no name conflict for tenant as far as I can see, can we remove the 2 suffix or use a more descriptive import name like tenantClient?

Suggested change
tenant2 "github.com/mendersoftware/mender-server/pkg/tenant"
"github.com/mendersoftware/mender-server/pkg/tenant"

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