summaryrefslogtreecommitdiffstats
path: root/modules/structs/secret.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/structs/secret.go')
-rw-r--r--modules/structs/secret.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/structs/secret.go b/modules/structs/secret.go
new file mode 100644
index 0000000..a0673ca
--- /dev/null
+++ b/modules/structs/secret.go
@@ -0,0 +1,24 @@
+// Copyright 2023 The Gitea Authors. All rights reserved.
+// SPDX-License-Identifier: MIT
+
+package structs
+
+import "time"
+
+// Secret represents a secret
+// swagger:model
+type Secret struct {
+ // the secret's name
+ Name string `json:"name"`
+ // swagger:strfmt date-time
+ Created time.Time `json:"created_at"`
+}
+
+// CreateOrUpdateSecretOption options when creating or updating secret
+// swagger:model
+type CreateOrUpdateSecretOption struct {
+ // Data of the secret to update
+ //
+ // required: true
+ Data string `json:"data" binding:"Required"`
+}