validation

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DsTypeEmbedded is used to set up the EcoSystem with an embedded user backend (e.g. the ldap dogu).
	DsTypeEmbedded = "embedded"
	// DsTypeExternal is used to set up the EcoSystem with an external user backend.
	DsTypeExternal = "external"
)

Variables

This section is empty.

Functions

func NewAdminValidator

func NewAdminValidator() *adminValidator

NewAdminValidator creates a new validator for the admin section of the setup configuration

func NewDoguValidator

func NewDoguValidator(registry remote.Registry) *doguValidator

NewDoguValidator creates a new validator for the dogu region of the setup configuration.

func NewNamingValidator

func NewNamingValidator() *namingValidator

NewNamingValidator creates a new validator for the naming section of the setup configuration

func NewRegistryConfigEncryptedValidator added in v0.5.0

func NewRegistryConfigEncryptedValidator() *registryConfigEncryptedValidator

NewRegistryConfigEncryptedValidator creates a new validator for the registryConfigEncrypted region of the setup configuration.

func NewResourcePatchConfigurationValidator added in v0.16.0

func NewResourcePatchConfigurationValidator() *resourcePatchValidator

NewResourcePatchConfigurationValidator creates a new validator.

func NewSetupJsonConfigurationValidator added in v0.16.0

func NewSetupJsonConfigurationValidator(registry remote.Registry) *validator

NewSetupJsonConfigurationValidator creates a new setup json validator

func NewUserBackendValidator

func NewUserBackendValidator() *userBackendValidator

NewUserBackendValidator creates a new validator for the user backend section of the setup configuration

func SplitPemCertificates

func SplitPemCertificates(chain string) []string

SplitPemCertificates splits a certificate chain in pem format and returns all certificates of the chain as []string

Types

type AdminValidator

type AdminValidator interface {
	ValidateAdmin(admin context.User, dsType string) error
}

AdminValidator is used to validate the admin section of the setup configuration

type DoguValidator

type DoguValidator interface {
	ValidateDogus(dogus context.Dogus) error
}

DoguValidator is used to validate the dogu section of the setup configuration

type NamingValidator

type NamingValidator interface {
	ValidateNaming(naming context.Naming) error
}

NamingValidator is used to validate the naming section of the setup configuration

type RegistryConfigEncryptedValidator added in v0.5.0

type RegistryConfigEncryptedValidator interface {
	ValidateRegistryConfigEncrypted(config *context.SetupJsonConfiguration) error
}

RegistryConfigEncryptedValidator is used to validate the registry config encrypted section of the setup configuration

type UserBackendValidator

type UserBackendValidator interface {
	ValidateUserBackend(backend context.UserBackend) error
}

UserBackendValidator is used to validate the user backend section of the setup configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL