MSP-5014 Add vars commands

This commit is contained in:
Синельник Тимур Романович committed 2025-03-19 19:43:11 +03:00
1 parent e264da7a9f
commit 8f74edd7c8
9 files changed
+336 -34

No files matched your search

+8 -1
View File
@@ -1,5 +1,12 @@
package cfg
const (
SecretVariableType = "SECRET"
TextVariableType = "TEXT"
ErrCodeVariableNotFound = 2006
)
type Variable struct {
Name string
Description string
@@ -16,7 +23,7 @@ type LinkedConfig struct {
type UpsertVariableRequest struct {
Name string `validate:"required"`
Description string `validate:"required"`
Description string
Type string `validate:"required,oneof=SECRET TEXT"`
Value string `validate:"required"`
}