Add names to init output (#428)
This commit is contained in:
1 parent
7fcbffbe88
commit
41a3c66ea1
5 files changed
+121
-95
No files matched your search
@@ -7,20 +7,24 @@ import (
|
||||
)
|
||||
|
||||
type AuthMethodInfo struct {
|
||||
AuthMethodId string `json:"auth_method_id"`
|
||||
LoginName string `json:"login_name"`
|
||||
Password string `json:"password"`
|
||||
ScopeId string `json:"scope_id"`
|
||||
UserId string `json:"user_id"`
|
||||
AuthMethodId string `json:"auth_method_id"`
|
||||
AuthMethodName string `json:"auth_method_name"`
|
||||
LoginName string `json:"login_name"`
|
||||
Password string `json:"password"`
|
||||
ScopeId string `json:"scope_id"`
|
||||
UserId string `json:"user_id"`
|
||||
UserName string `json:"user_name"`
|
||||
}
|
||||
|
||||
func generateInitialAuthMethodTableOutput(in *AuthMethodInfo) string {
|
||||
nonAttributeMap := map[string]interface{}{
|
||||
"Scope ID": in.ScopeId,
|
||||
"Auth Method ID": in.AuthMethodId,
|
||||
"Login Name": in.LoginName,
|
||||
"Password": in.Password,
|
||||
"User ID": in.UserId,
|
||||
"Scope ID": in.ScopeId,
|
||||
"Auth Method ID": in.AuthMethodId,
|
||||
"Auth Method Name": in.AuthMethodName,
|
||||
"Login Name": in.LoginName,
|
||||
"Password": in.Password,
|
||||
"User ID": in.UserId,
|
||||
"User Name": in.UserName,
|
||||
}
|
||||
|
||||
maxLength := 0
|
||||
@@ -42,12 +46,14 @@ func generateInitialAuthMethodTableOutput(in *AuthMethodInfo) string {
|
||||
type ScopeInfo struct {
|
||||
ScopeId string `json:"scope_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
func generateInitialScopeTableOutput(in *ScopeInfo) string {
|
||||
nonAttributeMap := map[string]interface{}{
|
||||
"Scope ID": in.ScopeId,
|
||||
"Type": in.Type,
|
||||
"Name": in.Name,
|
||||
}
|
||||
|
||||
maxLength := 0
|
||||
@@ -67,20 +73,26 @@ func generateInitialScopeTableOutput(in *ScopeInfo) string {
|
||||
}
|
||||
|
||||
type HostInfo struct {
|
||||
HostCatalogId string `json:"host_catalog_id"`
|
||||
HostSetId string `json:"host_set_id"`
|
||||
HostId string `json:"host_id"`
|
||||
Type string `json:"type"`
|
||||
ScopeId string `json:"scope_id"`
|
||||
HostCatalogId string `json:"host_catalog_id"`
|
||||
HostSetId string `json:"host_set_id"`
|
||||
HostId string `json:"host_id"`
|
||||
Type string `json:"type"`
|
||||
ScopeId string `json:"scope_id"`
|
||||
HostCatalogName string `json:"host_catalog_name"`
|
||||
HostSetName string `json:"host_set_name"`
|
||||
HostName string `json:"host_name"`
|
||||
}
|
||||
|
||||
func generateInitialHostResourcesTableOutput(in *HostInfo) string {
|
||||
nonAttributeMap := map[string]interface{}{
|
||||
"Host Catalog ID": in.HostCatalogId,
|
||||
"Host Set ID": in.HostSetId,
|
||||
"Host ID": in.HostId,
|
||||
"Type": in.Type,
|
||||
"Scope ID": in.ScopeId,
|
||||
"Host Catalog ID": in.HostCatalogId,
|
||||
"Host Catalog Name": in.HostCatalogName,
|
||||
"Host Set ID": in.HostSetId,
|
||||
"Host Set Name": in.HostSetName,
|
||||
"Host ID": in.HostId,
|
||||
"Host Name": in.HostName,
|
||||
"Type": in.Type,
|
||||
"Scope ID": in.ScopeId,
|
||||
}
|
||||
|
||||
maxLength := 0
|
||||
@@ -106,6 +118,7 @@ type TargetInfo struct {
|
||||
SessionConnectionLimit int32 `json:"session_connection_limit"`
|
||||
Type string `json:"type"`
|
||||
ScopeId string `json:"scope_id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
func generateInitialTargetTableOutput(in *TargetInfo) string {
|
||||
@@ -116,6 +129,7 @@ func generateInitialTargetTableOutput(in *TargetInfo) string {
|
||||
"Session Connection Limit": in.SessionConnectionLimit,
|
||||
"Type": in.Type,
|
||||
"Scope ID": in.ScopeId,
|
||||
"Name": in.Name,
|
||||
}
|
||||
|
||||
maxLength := 0
|
||||
|
||||
Reference in new issue
Block a user