validator

package
v4.30.5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidKeys = []string{}/* 144 elements not displayed */

ValidKeys is a list of valid keys that are not secret names. For the sake of consistency please place any secret in the secret names map and reuse it in relevant sections.

Functions

func IsNetworkGroupValid

func IsNetworkGroupValid(configuration schema.AccessControlConfiguration, network string) bool

IsNetworkGroupValid check if a network group is valid.

func IsNetworkValid

func IsNetworkValid(network string) (isValid bool)

IsNetworkValid check if a network is valid.

func IsPolicyValid

func IsPolicyValid(policy string) (isValid bool)

IsPolicyValid check if policy is valid.

func IsResourceValid

func IsResourceValid(resource string) (err error)

IsResourceValid check if a resource is valid.

func IsSubjectValid

func IsSubjectValid(subject string) (isValid bool)

IsSubjectValid check if a subject is valid.

func ValidateAccessControl

func ValidateAccessControl(configuration *schema.AccessControlConfiguration, validator *schema.StructValidator)

ValidateAccessControl validates access control configuration.

func ValidateAuthenticationBackend

func ValidateAuthenticationBackend(configuration *schema.AuthenticationBackendConfiguration, validator *schema.StructValidator)

ValidateAuthenticationBackend validates and updates the authentication backend configuration.

func ValidateConfiguration

func ValidateConfiguration(configuration *schema.Configuration, validator *schema.StructValidator)

ValidateConfiguration and adapt the configuration read from file.

func ValidateIdentityProviders

func ValidateIdentityProviders(configuration *schema.IdentityProvidersConfiguration, validator *schema.StructValidator)

ValidateIdentityProviders validates and update IdentityProviders configuration.

func ValidateKeys

func ValidateKeys(keys []string, prefix string, validator *schema.StructValidator)

ValidateKeys determines if all provided keys are valid.

func ValidateLogging

func ValidateLogging(configuration *schema.Configuration, validator *schema.StructValidator)

ValidateLogging validates the logging configuration.

func ValidateNotifier

func ValidateNotifier(configuration *schema.NotifierConfiguration, validator *schema.StructValidator)

ValidateNotifier validates and update notifier configuration.

func ValidateRegulation

func ValidateRegulation(configuration *schema.RegulationConfiguration, validator *schema.StructValidator)

ValidateRegulation validates and update regulator configuration.

func ValidateRules

func ValidateRules(configuration schema.AccessControlConfiguration, validator *schema.StructValidator)

ValidateRules validates an ACL Rule configuration.

func ValidateServer

func ValidateServer(configuration *schema.Configuration, validator *schema.StructValidator)

ValidateServer checks a server configuration is correct.

func ValidateSession

func ValidateSession(configuration *schema.SessionConfiguration, validator *schema.StructValidator)

ValidateSession validates and update session configuration.

func ValidateStorage

func ValidateStorage(configuration schema.StorageConfiguration, validator *schema.StructValidator)

ValidateStorage validates storage configuration.

func ValidateTOTP

func ValidateTOTP(configuration *schema.TOTPConfiguration, validator *schema.StructValidator)

ValidateTOTP validates and update TOTP configuration.

func ValidateTheme

func ValidateTheme(configuration *schema.Configuration, validator *schema.StructValidator)

ValidateTheme validates and update Theme configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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