add single secret fetch for agent

This commit is contained in:
Maidul Islam
2024-07-30 19:23:24 -04:00
parent 021dbf3558
commit 3a640d6cf8
6 changed files with 101 additions and 3 deletions

View File

@@ -590,3 +590,25 @@ type GetRawSecretsV3Response struct {
Imports []ImportedRawSecretV3 `json:"imports"`
ETag string
}
type GetRawSecretV3ByNameRequest struct {
SecretName string `json:"secretName"`
WorkspaceID string `json:"workspaceId"`
Type string `json:"type,omitempty"`
Environment string `json:"environment"`
SecretPath string `json:"secretPath,omitempty"`
}
type GetRawSecretV3ByNameResponse struct {
Secret struct {
ID string `json:"_id"`
Version int `json:"version"`
Workspace string `json:"workspace"`
Type string `json:"type"`
Environment string `json:"environment"`
SecretKey string `json:"secretKey"`
SecretValue string `json:"secretValue"`
SecretComment string `json:"secretComment"`
} `json:"secret"`
ETag string
}