-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.go
28 lines (22 loc) · 1018 Bytes
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package validation
import "github.com/cloudogu/k8s-ces-setup/app/context"
// NamingValidator is used to validate the naming section of the setup configuration
type NamingValidator interface {
ValidateNaming(naming context.Naming) error
}
// UserBackendValidator is used to validate the user backend section of the setup configuration
type UserBackendValidator interface {
ValidateUserBackend(backend context.UserBackend) error
}
// AdminValidator is used to validate the admin section of the setup configuration
type AdminValidator interface {
ValidateAdmin(admin context.User, dsType string) error
}
// DoguValidator is used to validate the dogu section of the setup configuration
type DoguValidator interface {
ValidateDogus(dogus context.Dogus) error
}
// RegistryConfigEncryptedValidator is used to validate the registry config encrypted section of the setup configuration
type RegistryConfigEncryptedValidator interface {
ValidateRegistryConfigEncrypted(config *context.SetupJsonConfiguration) error
}