Export fields on SettingMgmtXSshKeys (#41)

This commit is contained in:
Kurt McAlpine
2021-07-05 16:51:44 +12:00
committed by GitHub
parent f06d3401ae
commit 7081791f4f
2 changed files with 12 additions and 12 deletions

View File

@@ -311,12 +311,12 @@ func main() {
case "SettingMgmt":
sshKeyField := NewFieldInfo(resource.StructName+"XSshKeys", "x_ssh_keys", "struct", "", false, false, "")
sshKeyField.Fields = map[string]*FieldInfo{
"name": NewFieldInfo("name", "name", "string", "", false, false, ""),
"keyType": NewFieldInfo("keyType", "type", "string", "", false, false, ""),
"key": NewFieldInfo("key", "key", "string", "", false, false, ""),
"comment": NewFieldInfo("comment", "comment", "string", "", false, false, ""),
"date": NewFieldInfo("date", "date", "string", "", false, false, ""),
"fingerprint": NewFieldInfo("fingerprint", "fingerprint", "string", "", false, false, ""),
"name": NewFieldInfo("Name", "name", "string", "", false, false, ""),
"keyType": NewFieldInfo("KeyType", "type", "string", "", false, false, ""),
"key": NewFieldInfo("Key", "key", "string", "", false, false, ""),
"comment": NewFieldInfo("Comment", "comment", "string", "", false, false, ""),
"date": NewFieldInfo("Date", "date", "string", "", false, false, ""),
"fingerprint": NewFieldInfo("Fingerprint", "fingerprint", "string", "", false, false, ""),
}
resource.Types[sshKeyField.FieldName] = sshKeyField

View File

@@ -63,12 +63,12 @@ func (dst *SettingMgmt) UnmarshalJSON(b []byte) error {
}
type SettingMgmtXSshKeys struct {
comment string `json:"comment"`
date string `json:"date"`
fingerprint string `json:"fingerprint"`
key string `json:"key"`
keyType string `json:"type"`
name string `json:"name"`
Comment string `json:"comment"`
Date string `json:"date"`
Fingerprint string `json:"fingerprint"`
Key string `json:"key"`
KeyType string `json:"type"`
Name string `json:"name"`
}
func (dst *SettingMgmtXSshKeys) UnmarshalJSON(b []byte) error {