Documentation ¶
Index ¶
- Variables
- func LoadCertificatesFrom(pemFile string) (*x509.CertPool, error)
- func LoadKeyPairFrom(pemFile string, privateKeyPemFile string) (tls.Certificate, error)
- func MongoSession(opts MongoSessionOpts) *mgo.Session
- func ParameterizeString(text string) string
- func ParseEnabledGroups(enabledGroupsFlag string)
- func SnakeCase(text string) string
- type MongoSessionOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EnabledGroups is map with the group name as field and a boolean indicating wether that group is enabled or not. EnabledGroups = make(map[string]bool) )
Functions ¶
func LoadCertificatesFrom ¶
LoadCertificatesFrom returns certificates for a given pem file
func LoadKeyPairFrom ¶
func LoadKeyPairFrom(pemFile string, privateKeyPemFile string) (tls.Certificate, error)
LoadKeyPairFrom returns a configured TLS certificate
func MongoSession ¶
func MongoSession(opts MongoSessionOpts) *mgo.Session
MongoSession creates a Mongo session
func ParameterizeString ¶
ParameterizeString parameterizes the given string.
func ParseEnabledGroups ¶
func ParseEnabledGroups(enabledGroupsFlag string)
ParseEnabledGroups parses the groups passed by the command line input.
Types ¶
Click to show internal directories.
Click to hide internal directories.