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

+1 -3
View File
@@ -1,9 +1,7 @@
// Code generated by "make api"; DO NOT EDIT.
package targets
import "encoding/json"
type SessionCredential struct {
CredentialLibrary *CredentialLibrary `json:"credential_library,omitempty"`
Secret json.RawMessage `json:"secret,omitempty"`
Secret *SessionSecret `json:"secret,omitempty"`
}
+9
View File
@@ -0,0 +1,9 @@
// Code generated by "make api"; DO NOT EDIT.
package targets
import "encoding/json"
type SessionSecret struct {
Raw json.RawMessage `json:"raw,omitempty"`
Decoded map[string]interface{} `json:"decoded,omitempty"`
}