config

package
v0.0.0-...-78ea4e3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

look at Makefile gencert

Functions

func SetupTLSConfig

func SetupTLSConfig(cfg 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