Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Commons *shared.Commons `yaml:"-"` // don't use this directly as configuration for a service
Service Service `yaml:"-"`
Tracing *Tracing `yaml:"tracing"`
Log *Log `yaml:"log"`
Debug Debug `yaml:"debug"`
GRPC GRPCConfig `yaml:"grpc"`
TokenManager *TokenManager `yaml:"token_manager"`
Reva *shared.Reva `yaml:"reva"`
SkipUserGroupsInToken bool `` /* 183-byte string literal not displayed */
Driver string `` /* 170-byte string literal not displayed */
Drivers Drivers `yaml:"drivers"`
Context context.Context `yaml:"-"`
}
type Debug ¶
type Debug struct {
Addr string `` /* 171-byte string literal not displayed */
Token string `yaml:"token" env:"GROUPS_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
Pprof bool `yaml:"pprof" env:"GROUPS_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling." introductionVersion:"1.0.0"`
Zpages bool `` /* 153-byte string literal not displayed */
}
type Drivers ¶
type Drivers struct {
LDAP LDAPDriver `yaml:"ldap"`
OwnCloudSQL OwnCloudSQLDriver `yaml:"owncloudsql"`
JSON JSONDriver `yaml:"json,omitempty"` // not supported by OpenCloud, therefore not part of docs
REST RESTProvider `yaml:"rest,omitempty"` // not supported by OpenCloud, therefore not part of docs
}
type GRPCConfig ¶
type GRPCConfig struct {
Addr string `yaml:"addr" env:"GROUPS_GRPC_ADDR" desc:"The bind address of the GRPC service." introductionVersion:"1.0.0"`
TLS *shared.GRPCServiceTLS `yaml:"tls"`
Namespace string `yaml:"-"`
Protocol string `` /* 138-byte string literal not displayed */
}
type JSONDriver ¶
type JSONDriver struct {
File string
}
type LDAPDriver ¶
type LDAPDriver struct {
URI string `` /* 168-byte string literal not displayed */
CACert string `` /* 282-byte string literal not displayed */
Insecure bool `` /* 199-byte string literal not displayed */
BindDN string `` /* 166-byte string literal not displayed */
BindPassword string `` /* 159-byte string literal not displayed */
UserBaseDN string `` /* 148-byte string literal not displayed */
GroupBaseDN string `` /* 152-byte string literal not displayed */
UserScope string `` /* 194-byte string literal not displayed */
GroupScope string `` /* 198-byte string literal not displayed */
GroupSubstringFilterType string `` /* 415-byte string literal not displayed */
UserFilter string `` /* 197-byte string literal not displayed */
GroupFilter string `` /* 168-byte string literal not displayed */
UserObjectClass string `` /* 206-byte string literal not displayed */
GroupObjectClass string `` /* 210-byte string literal not displayed */
IDP string `` /* 209-byte string literal not displayed */
UserSchema LDAPUserSchema `yaml:"user_schema"`
GroupSchema LDAPGroupSchema `yaml:"group_schema"`
}
type LDAPGroupSchema ¶
type LDAPGroupSchema struct {
ID string `` /* 209-byte string literal not displayed */
IDIsOctetString bool `` /* 338-byte string literal not displayed */
Mail string `` /* 178-byte string literal not displayed */
DisplayName string `` /* 223-byte string literal not displayed */
Groupname string `` /* 170-byte string literal not displayed */
Member string `` /* 161-byte string literal not displayed */
}
type LDAPUserSchema ¶
type LDAPUserSchema struct {
ID string `` /* 206-byte string literal not displayed */
IDIsOctetString bool `` /* 334-byte string literal not displayed */
Mail string `` /* 160-byte string literal not displayed */
DisplayName string `` /* 180-byte string literal not displayed */
Username string `` /* 164-byte string literal not displayed */
}
type Log ¶
type Log struct {
Level string `` /* 177-byte string literal not displayed */
Pretty bool `yaml:"pretty" env:"OC_LOG_PRETTY;GROUPS_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
Color bool `yaml:"color" env:"OC_LOG_COLOR;GROUPS_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
File string `` /* 145-byte string literal not displayed */
}
type OwnCloudSQLDriver ¶
type OwnCloudSQLDriver struct {
DBUsername string `` /* 158-byte string literal not displayed */
DBPassword string `yaml:"db_password" env:"GROUPS_OWNCLOUDSQL_DB_PASSWORD" desc:"Password for the database user." introductionVersion:"1.0.0"`
DBHost string `yaml:"db_host" env:"GROUPS_OWNCLOUDSQL_DB_HOST" desc:"Hostname of the database server." introductionVersion:"1.0.0"`
DBPort int `` /* 131-byte string literal not displayed */
DBName string `yaml:"db_name" env:"GROUPS_OWNCLOUDSQL_DB_NAME" desc:"Name of the owncloud database." introductionVersion:"1.0.0"`
IDP string `` /* 190-byte string literal not displayed */
Nobody int64 `` /* 147-byte string literal not displayed */
JoinUsername bool `` /* 144-byte string literal not displayed */
JoinOwnCloudUUID bool `` /* 153-byte string literal not displayed */
EnableMedialSearch bool `` /* 248-byte string literal not displayed */
}
type RESTProvider ¶
type TokenManager ¶
type TokenManager struct {
JWTSecret string `` /* 134-byte string literal not displayed */
}
TokenManager is the config for using the reva token manager
type Tracing ¶
type Tracing struct {
Enabled bool `yaml:"enabled" env:"OC_TRACING_ENABLED;GROUPS_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
Type string `` /* 209-byte string literal not displayed */
Endpoint string `` /* 135-byte string literal not displayed */
Collector string `` /* 255-byte string literal not displayed */
}
Tracing contains the tracing configuration.
Click to show internal directories.
Click to hide internal directories.