config

package
v0.0.0-...-b5c42f0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CAFile               = configFile("CERT_DIR", "ca.pem")
	ServerCertFile       = configFile("CERT_DIR", "server.pem")
	ServerKeyFile        = configFile("CERT_DIR", "server-key.pem")
	RootClientCertFile   = configFile("CERT_DIR", "root-client.pem")
	RootClientKeyFile    = configFile("CERT_DIR", "root-client-key.pem")
	NobodyClientCertFile = configFile("CERT_DIR", "nobody-client.pem")
	NobodyClientKeyFile  = configFile("CERT_DIR", "nobody-client-key.pem")
	ACLModelFile         = configFile("AUTH_DIR", "model.conf")
	ACLPolicyFile        = configFile("AUTH_DIR", "policy.csv")
)

Functions

func SetupTLSConfig

func SetupTLSConfig(config TLSConfig) (*tls.Config, error)

Types

type TLSConfig

type TLSConfig struct {
	CertFile      string
	KeyFile       string
	CAFile        string
	ServerAddress string
	Server        bool
}

Jump to

Keyboard shortcuts

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