aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/structs/secret.go16
1 files changed, 2 insertions, 14 deletions
diff --git a/modules/structs/secret.go b/modules/structs/secret.go
index 52221b51f0..a0673ca08c 100644
--- a/modules/structs/secret.go
+++ b/modules/structs/secret.go
@@ -14,21 +14,9 @@ type Secret struct {
Created time.Time `json:"created_at"`
}
-// CreateSecretOption options when creating secret
+// CreateOrUpdateSecretOption options when creating or updating secret
// swagger:model
-type CreateSecretOption struct {
- // Name of the secret to create
- //
- // required: true
- // unique: true
- Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"`
- // Data of the secret to create
- Data string `json:"data" binding:"Required"`
-}
-
-// UpdateSecretOption options when updating secret
-// swagger:model
-type UpdateSecretOption struct {
+type CreateOrUpdateSecretOption struct {
// Data of the secret to update
//
// required: true