mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-29 00:11:21 -05:00
53 lines
1.4 KiB
Go
53 lines
1.4 KiB
Go
package config
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/owncloud/ocis/ocis-pkg/shared"
|
|
)
|
|
|
|
// Config combines all available configuration parts.
|
|
type Config struct {
|
|
*shared.Commons `yaml:"-"`
|
|
|
|
Service Service `yaml:"-"`
|
|
|
|
Tracing *Tracing `yaml:"tracing"`
|
|
Log *Log `yaml:"log"`
|
|
Debug Debug `yaml:"debug"`
|
|
|
|
Ldap Ldap `yaml:"ldap"`
|
|
Ldaps Ldaps `yaml:"ldaps"`
|
|
|
|
Backend Backend `yaml:"backend"`
|
|
Fallback FallbackBackend `yaml:"fallback"`
|
|
|
|
RoleBundleUUID string `yaml:"role_bundle_uuid" env:"GLAUTH_ROLE_BUNDLE_ID"`
|
|
|
|
Context context.Context `yaml:"-"`
|
|
}
|
|
|
|
// Backend defined the available backend configuration.
|
|
type Backend struct {
|
|
Datastore string `yaml:"datastore"`
|
|
BaseDN string `yaml:"base_dn"`
|
|
Insecure bool `yaml:"insecure"`
|
|
NameFormat string `yaml:"name_format"`
|
|
GroupFormat string `yaml:"group_format"`
|
|
Servers []string `yaml:"servers"`
|
|
SSHKeyAttr string `yaml:"ssh_key_attr"`
|
|
UseGraphAPI bool `yaml:"use_graph_api"`
|
|
}
|
|
|
|
// FallbackBackend defined the available fallback backend configuration.
|
|
type FallbackBackend struct {
|
|
Datastore string `yaml:"datastore"`
|
|
BaseDN string `yaml:"base_dn"`
|
|
Insecure bool `yaml:"insecure"`
|
|
NameFormat string `yaml:"name_format"`
|
|
GroupFormat string `yaml:"group_format"`
|
|
Servers []string `yaml:"servers"`
|
|
SSHKeyAttr string `yaml:"ssh_key_attr"`
|
|
UseGraphAPI bool `yaml:"use_graph_api"`
|
|
}
|