Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
feat: Extended secret API model with list of available keys in the se…
Browse files Browse the repository at this point in the history
…cret (#4749) (#332)

* feat: Extended secret API model with list of available keys in the secret (#4749)

Signed-off-by: Florian Bacher <[email protected]>

* added yaml inline tag

Signed-off-by: Florian Bacher <[email protected]>

* added json and yaml tags

Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl authored and mowies committed Oct 4, 2021
1 parent 8b1f710 commit 694ba6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/api/models/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ type SecretMetadata struct {
Scope *string `json:"scope,omitempty" yaml:"scope,omitempty"`
}

type GetSecretResponseItem struct {
SecretMetadata `yaml:",inline"`
Keys []string `json:"keys" yaml:"keys"`
}

type GetSecretsResponse struct {
Secrets []SecretMetadata `json:"secrets"`
Secrets []GetSecretResponseItem `json:"secrets" yaml:"secrets"`
}

0 comments on commit 694ba6d

Please sign in to comment.