Update format of secret to return both raw and decoded when possible (#1372)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-06-30 18:02:03 -04:00
1 parent 77bafcab71
commit 7c3d5be4f6
15 files changed
+409 -327

No files matched your search

+7 -3
View File
@@ -560,15 +560,19 @@ var inputStructs = []*structInfo{
outFile: "targets/credential_library.gen.go",
},
{
inProto: &targets.SessionCredential{},
outFile: "targets/session_credential.gen.go",
inProto: &targets.SessionSecret{},
outFile: "targets/session_secret.gen.go",
fieldOverrides: []fieldInfo{
{
Name: "Secret",
Name: "Raw",
FieldType: "json.RawMessage",
},
},
},
{
inProto: &targets.SessionCredential{},
outFile: "targets/session_credential.gen.go",
},
{
inProto: &targets.SessionAuthorization{},
outFile: "targets/session_authorization.gen.go",