2025-03-24 15:00:34: merge [main:f6e45d7212331e8c861cded4b952eaec0b701cc1];

This commit is contained in:
txix committed 2025-03-24 15:00:34 +03:00
1 parent dbf061213d
commit 922641647a
39 files changed
+1262 -1418

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
package model
import "github.com/pkg/errors"
var (
ErrModuleNotFound = errors.New("module not found")
ErrVariableNotFound = errors.New("variable not found")
)
const (
SecretVariableType = "SECRET"
TextVariableType = "TEXT"
ErrCodeVariableNotFound = 2006
)
type Variable struct {
Name string
Description string
Type string
Value string
ContainsInConfigs []LinkedConfig
}
type LinkedConfig struct {
Id string
ModuleId string
Name string
}
type UpsertVariableRequest struct {
Name string `validate:"required"`
Description string
Type string `validate:"required,oneof=SECRET TEXT"`
Value string `validate:"required"`
}
type VariableByNameRequest struct {
Name string `validate:"required"`
}