validator

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseDirectory = "/tmp/baseca/ssl"
)

Variables

View Source
var CertificateAuthorityEnvironments map[string][]string

Functions

func Contains

func Contains(s []string, str string) bool

func ConvertNullRawMessageToMap

func ConvertNullRawMessageToMap(nrm pqtype.NullRawMessage) (map[string]string, error)

func IsSupportedCertificateAuthority

func IsSupportedCertificateAuthority(certificate_authority string) bool

func IsValidateDomain

func IsValidateDomain(fully_qualified_domain_name string) bool

func MapToNullRawMessage

func MapToNullRawMessage(m map[string]string) (pqtype.NullRawMessage, error)

func NullStringToString

func NullStringToString(x *sql.NullString) string

func SanitizeInput

func SanitizeInput(input []string) []string

func SetBaseDirectory

func SetBaseDirectory(cfg *config.Config)

func SupportedConfig

func SupportedConfig(cfg *config.Config)

func SupportedEnvironments

func SupportedEnvironments(cfg *config.Config)

func ValidateCertificateAuthorityEnvironment

func ValidateCertificateAuthorityEnvironment(config config.Environment, environment string, certificate_authorities []string) bool

func ValidateEmail

func ValidateEmail(email string) bool

func ValidateSubjectAlternateNames

func ValidateSubjectAlternateNames(request_san []string, valid_san []string, regular_expression string) error

Types

type NullString

type NullString sql.NullString

Jump to

Keyboard shortcuts

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