summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/secrets.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-03 09:17:21 -0500
committerGitHub <noreply@github.com>2021-03-03 09:17:21 -0500
commit259bb5f7232432bce103c64cf1e68539ab7012e2 (patch)
tree694a8736e2db7196f927f7c2d0512d4c9522027d /pkg/domain/entities/secrets.go
parent5fd8a849491e12de3747a16c238236e23fb44593 (diff)
parent9391bfc520c55ff66c1547561bd3189dd911c8cb (diff)
downloadpodman-259bb5f7232432bce103c64cf1e68539ab7012e2.tar.gz
podman-259bb5f7232432bce103c64cf1e68539ab7012e2.tar.bz2
podman-259bb5f7232432bce103c64cf1e68539ab7012e2.zip
Merge pull request #9583 from ashley-cui/sec
Add version field to secret compat list/inspect api
Diffstat (limited to 'pkg/domain/entities/secrets.go')
-rw-r--r--pkg/domain/entities/secrets.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/domain/entities/secrets.go b/pkg/domain/entities/secrets.go
index 3481cbe05..8ede981da 100644
--- a/pkg/domain/entities/secrets.go
+++ b/pkg/domain/entities/secrets.go
@@ -42,6 +42,15 @@ type SecretInfoReport struct {
Spec SecretSpec
}
+type SecretInfoReportCompat struct {
+ SecretInfoReport
+ Version SecretVersion
+}
+
+type SecretVersion struct {
+ Index int
+}
+
type SecretSpec struct {
Name string
Driver SecretDriverSpec
@@ -78,6 +87,13 @@ type SwagSecretListResponse struct {
Body []*SecretInfoReport
}
+// Secret list response
+// swagger:response SecretListCompatResponse
+type SwagSecretListCompatResponse struct {
+ // in:body
+ Body []*SecretInfoReportCompat
+}
+
// Secret inspect response
// swagger:response SecretInspectResponse
type SwagSecretInspectResponse struct {
@@ -85,6 +101,13 @@ type SwagSecretInspectResponse struct {
Body SecretInfoReport
}
+// Secret inspect compat
+// swagger:response SecretInspectCompatResponse
+type SwagSecretInspectCompatResponse struct {
+ // in:body
+ Body SecretInfoReportCompat
+}
+
// No such secret
// swagger:response NoSuchSecret
type SwagErrNoSuchSecret struct {