MSP-5014 Add vars commands
This commit is contained in:
1 parent
e264da7a9f
commit
8f74edd7c8
9 files changed
+336
-34
No files matched your search
+8
-1
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user