Documentation ¶
Index ¶
- Constants
- Variables
- func Contains(s []string, str string) bool
- func ConvertNullRawMessageToMap(nrm pqtype.NullRawMessage) (map[string]string, error)
- func IsSupportedCertificateAuthority(certificate_authority string) bool
- func IsSupportedPermission(permission string) bool
- func IsValidDomain(fully_qualified_domain_name string) bool
- func MapToNullRawMessage(m map[string]string) (pqtype.NullRawMessage, error)
- func NullStringToString(x *sql.NullString) string
- func SanitizeInput(input []string) []string
- func SetBaseDirectory(cfg *config.Config)
- func SupportedConfig(cfg *config.Config)
- func SupportedEnvironments(cfg *config.Config)
- func TestValidateInput(t *testing.T)
- func ValidateCertificateAuthorityEnvironment(config config.Stage, environment string, certificate_authorities []string) bool
- func ValidateEmail(email string) bool
- func ValidateInput(s string) bool
- func ValidateSubjectAlternateNames(request_san []string, valid_san []string, regular_expression string) error
- type NullString
Constants ¶
View Source
const (
BaseDirectory = "/tmp/baseca/ssl"
)
Variables ¶
View Source
var CertificateAuthorityEnvironments map[types.EnvironmentKey][]string
View Source
var CertificateAuthorityEnvironmentsString map[string][]string
View Source
var Module = fx.Options( fx.Invoke( SupportedConfig, SupportedEnvironments, SetBaseDirectory, ), )
Functions ¶
func ConvertNullRawMessageToMap ¶
func ConvertNullRawMessageToMap(nrm pqtype.NullRawMessage) (map[string]string, error)
func IsSupportedPermission ¶
func IsValidDomain ¶
func MapToNullRawMessage ¶
func MapToNullRawMessage(m map[string]string) (pqtype.NullRawMessage, error)
func NullStringToString ¶
func NullStringToString(x *sql.NullString) string
func SanitizeInput ¶
func SetBaseDirectory ¶
func SupportedConfig ¶
func SupportedEnvironments ¶
func TestValidateInput ¶
func ValidateEmail ¶
Types ¶
type NullString ¶
type NullString sql.NullString
Click to show internal directories.
Click to hide internal directories.