MCPcopy Create free account
hub / github.com/PostHog/duckgres / validateTLSFiles

Function validateTLSFiles

controlplane/validation.go:8–13  ·  view source on GitHub ↗
(certFile, keyFile string)

Source from the content-addressed store, hash-verified

6)
7
8func validateTLSFiles(certFile, keyFile string) error {
9 if certFile == "" || keyFile == "" {
10 return fmt.Errorf("TLS certificate and key are required")
11 }
12 return nil
13}
14
15func validateUsers(users map[string]string) error {
16 if len(users) == 0 {

Callers 2

TestValidateTLSFilesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestValidateTLSFilesFunction · 0.68