mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
[NET-546] Move ee code to ee package, unify ee status and terminology (#2538)
* Move ee code to ee package and unify ee status to IsPro * Consolidate naming for paid/professional/enterprise version as "pro". Notes: - Changes image tags - Changes build tags - Changes package names - Doesn't change links to docs that mention "ee" - Doesn't change parameters sent to PostHog that mention "ee" * Revert docker image tag being -pro, back to -ee * Revert go build tag being pro, back to ee * Add build tags for some ee content * [2] Revert go build tag being pro, back to ee * Fix test workflow * Add a json tag to be backwards compatible with frontend "IsEE" check * Add a json tag for the serverconfig struct for IsEE * Ammend json tag to Is_EE * fix ee tags --------- Co-authored-by: Abhishek Kondur <abhi281342@gmail.com>
This commit is contained in:

committed by
GitHub

parent
31fcc8cd6d
commit
1a1ba1ccf4
@@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/gravitl/netmaker/ee/ee_controllers"
|
||||
"github.com/gravitl/netmaker/models/promodels"
|
||||
proControllers "github.com/gravitl/netmaker/pro/controllers"
|
||||
)
|
||||
|
||||
// GetAllNetworkUsers - fetch all network users
|
||||
@@ -34,8 +34,8 @@ func UpdateNetworkUser(networkName string, payload *promodels.NetworkUser) {
|
||||
}
|
||||
|
||||
// GetNetworkUserData - fetch a network user's complete data
|
||||
func GetNetworkUserData(networkUserName string) *ee_controllers.NetworkUserDataMap {
|
||||
return request[ee_controllers.NetworkUserDataMap](http.MethodGet, fmt.Sprintf("/api/networkusers/data/%s/me", networkUserName), nil)
|
||||
func GetNetworkUserData(networkUserName string) *proControllers.NetworkUserDataMap {
|
||||
return request[proControllers.NetworkUserDataMap](http.MethodGet, fmt.Sprintf("/api/networkusers/data/%s/me", networkUserName), nil)
|
||||
}
|
||||
|
||||
// DeleteNetworkUser - delete a network user
|
||||
|
Reference in New Issue
Block a user