Feat: Deep search support

This commit is contained in:
Daniel Hougaard
2024-03-22 16:13:05 +01:00
parent 46a638cc63
commit 88549f4030
7 changed files with 38 additions and 10 deletions

View File

@@ -277,6 +277,10 @@ func CallGetSecretsV3(httpClient *resty.Client, request GetEncryptedSecretsV3Req
SetQueryParam("environment", request.Environment).
SetQueryParam("workspaceId", request.WorkspaceId)
if request.DeepSearch {
httpRequest.SetQueryParam("deep", "true")
}
if request.IncludeImport {
httpRequest.SetQueryParam("include_imports", "true")
}

View File

@@ -291,6 +291,7 @@ type GetEncryptedSecretsV3Request struct {
WorkspaceId string `json:"workspaceId"`
SecretPath string `json:"secretPath"`
IncludeImport bool `json:"include_imports"`
DeepSearch bool `json:"deep"`
}
type GetFoldersV1Request struct {