Files
opencloud/pkg/config/config.go
Jörn Friedrich Dreyer c2668daae8 persist accounts using json, index using bleve
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:04:35 +02:00

53 lines
986 B
Go

// Package config should be moved to internal
package config
// LDAP defines the available ldap configuration.
type LDAP struct {
Hostname string
Port int
BaseDN string
UserFilter string
GroupFilter string
BindDN string
BindPassword string
IDP string
Schema LDAPSchema
}
// LDAPSchema defines the available ldap schema configuration.
type LDAPSchema struct {
AccountID string
Identities string
Username string
DisplayName string
Mail string
Groups string
}
// Server configures a server.
type Server struct {
Name string
Namespace string
Address string
AccountsDataPath string
}
// Log defines the available logging configuration.
type Log struct {
Level string
Pretty bool
Color bool
}
// Config merges all Account config parameters.
type Config struct {
LDAP LDAP
Server Server
Log Log
}
// New returns a new config.
func New() *Config {
return &Config{}
}