Closed nxtcoder36 closed 2 weeks ago
This pull request implements a significant refactoring of the codebase, replacing the concept of "account" with "team" throughout the project. The changes are widespread, affecting multiple files and components, including function names, variable names, and documentation.
classDiagram
class Team {
Metadata metadata
string displayName
Status status
}
class apiClient {
+ListTeams() []Team
+GetClusterConfig(team string) TeamClusterConfig
+CreateDevice(devName, displayName, team string) Device
+GetVPNDevice(teamName string, devName string) Device
+ListApps(teamName string, envName string) []App
+ListConfigs(teamName string, envName string) []Config
+ListSecrets(teamName string, envName string) []Secret
+CloneEnv(teamName, envName, newEnvName, clusterName string) Env
+CheckEnvName(teamName, envName string) bool
+ListBYOKClusters(teamName string) []BYOKCluster
+GetMresConfigValues(teamName string) map[string]string
}
class TeamClusterConfig {
string clusterToken
string clusterName
InstallCommand installCommand
}
class InstallCommand {
string chartVersion
string crdsURL
InstallHelmValues helmValues
}
class InstallHelmValues {
string teamName
string clusterName
string clusterToken
string kloudliteDNSSuffix
}
class Device {
string teamName
string creationTime
User createdBy
string displayName
}
Team --|> apiClient
TeamClusterConfig --|> InstallCommand
InstallCommand --|> InstallHelmValues
Device --|> apiClient
Change | Details | Files |
---|---|---|
Renamed 'account' to 'team' throughout the codebase |
|
k3s/impl.go domain/apiclient/account.go domain/apiclient/k3s-local.go domain/apiclient/impl.go cmd/use/account.go domain/fileclient/k3s-local.go cmd/list/acc.go domain/apiclient/environment.go domain/apiclient/device.go cmd/box/boxpkg/utils.go domain/fileclient/device.go cmd/use/env.go domain/apiclient/configs.go domain/apiclient/secrets.go domain/fileclient/account.go clis/kl/help.go cmd/k3s/up.go cmd/list/env.go cmd/status/status.go README.md cmd/box/boxpkg/main.go domain/fileclient/context.go domain/fileclient/kl-file.go k3s/main.go |
Updated CLI commands and documentation |
|
docs/kli/kli_use_account.md docs/kl/list_accounts.md docs/kli/kli_list_accounts.md cmd/list/list.go docs/kli/kli_list.md docs/kl/kl.md docs/kl/kl_list.md docs/kli/kli.md docs/kli/kli_list_clusters.md docs/kl/kl_use_env.md docs/kli/kli_use.md docs/kli/kli_use_cluster.md |
Refactored data structures and configurations |
|
domain/fileclient/k3s-local.go cmd/box/boxpkg/hashctrl/main.go domain/fileclient/auth.go |
Modified API client and file client interfaces |
|
domain/apiclient/main.go domain/fileclient/main.go |
Updated authentication and context handling |
|
domain/apiclient/main.go domain/fileclient/context.go |
Summary by Sourcery
Refactor the codebase to replace 'account' terminology with 'team' terminology, updating function names, variable names, and documentation to reflect this change.
Enhancements:
Documentation: