feat(target): Decode based on credential type
This commit is contained in:
1 parent
591ec476e7
commit
a90f1f4eb1
9 files changed
+736
-298
No files matched your search
@@ -7,4 +7,5 @@ type CredentialSource struct {
|
||||
Description string `json:"description,omitempty"`
|
||||
CredentialStoreId string `json:"credential_store_id,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
CredentialType string `json:"credential_type,omitempty"`
|
||||
}
|
||||
@@ -2,7 +2,8 @@
|
||||
package targets
|
||||
|
||||
type SessionCredential struct {
|
||||
CredentialSource *CredentialSource `json:"credential_source,omitempty"`
|
||||
CredentialLibrary *CredentialLibrary `json:"credential_library,omitempty"`
|
||||
Secret *SessionSecret `json:"secret,omitempty"`
|
||||
CredentialSource *CredentialSource `json:"credential_source,omitempty"`
|
||||
CredentialLibrary *CredentialLibrary `json:"credential_library,omitempty"`
|
||||
Secret *SessionSecret `json:"secret,omitempty"`
|
||||
Credential map[string]interface{} `json:"credential,omitempty"`
|
||||
}
|
||||
Reference in new issue
Block a user