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

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

Merged
merged 3 commits into from
Sep 3, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
bacherfl marked this conversation as resolved.
Show resolved Hide resolved
SecretMetadata
Keys []string `json:"keys"`
}

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