config

package
v1.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProviders

type AuthProviders struct {
	LDAP        LDAPProvider        `yaml:"ldap"`
	OwnCloudSQL OwnCloudSQLProvider `yaml:"owncloudsql"`
	JSON        JSONProvider        `yaml:"json,omitempty"` // not supported by the OpenCloud product, therefore not part of docs
}

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          `` /* 282-byte string literal not displayed */
	AuthProvider          string        `` /* 174-byte string literal not displayed */
	AuthProviders         AuthProviders `yaml:"auth_providers"`

	Context context.Context `yaml:"-"`
}

type Debug

type Debug struct {
	Addr   string `` /* 175-byte string literal not displayed */
	Token  string `yaml:"token" env:"AUTH_BASIC_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
	Pprof  bool   `yaml:"pprof" env:"AUTH_BASIC_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling." introductionVersion:"1.0.0"`
	Zpages bool   `` /* 158-byte string literal not displayed */
}

type GRPCConfig

type GRPCConfig struct {
	Addr      string                 `yaml:"addr" env:"AUTH_BASIC_GRPC_ADDR" desc:"The bind address of the GRPC service." introductionVersion:"1.0.0"`
	TLS       *shared.GRPCServiceTLS `yaml:"tls"`
	Namespace string                 `yaml:"-"`
	Protocol  string                 `` /* 142-byte string literal not displayed */
}

type JSONProvider

type JSONProvider struct {
	File string `yaml:"file,omitempty"`
}

type LDAPGroupSchema

type LDAPGroupSchema struct {
	ID              string `` /* 215-byte string literal not displayed */
	IDIsOctetString bool   `` /* 341-byte string literal not displayed */
	Mail            string `` /* 182-byte string literal not displayed */
	DisplayName     string `` /* 227-byte string literal not displayed */
	Groupname       string `` /* 174-byte string literal not displayed */
	Member          string `` /* 165-byte string literal not displayed */
}

type LDAPProvider

type LDAPProvider struct {
	URI                      string          `` /* 172-byte string literal not displayed */
	CACert                   string          `` /* 286-byte string literal not displayed */
	Insecure                 bool            `` /* 203-byte string literal not displayed */
	BindDN                   string          `` /* 170-byte string literal not displayed */
	BindPassword             string          `` /* 163-byte string literal not displayed */
	UserBaseDN               string          `` /* 152-byte string literal not displayed */
	GroupBaseDN              string          `` /* 156-byte string literal not displayed */
	UserScope                string          `` /* 198-byte string literal not displayed */
	GroupScope               string          `` /* 202-byte string literal not displayed */
	UserFilter               string          `` /* 201-byte string literal not displayed */
	GroupFilter              string          `` /* 172-byte string literal not displayed */
	UserObjectClass          string          `` /* 210-byte string literal not displayed */
	GroupObjectClass         string          `` /* 214-byte string literal not displayed */
	LoginAttributes          []string        `` /* 245-byte string literal not displayed */
	IDP                      string          `` /* 208-byte string literal not displayed */
	DisableUserMechanism     string          `` /* 466-byte string literal not displayed */
	LdapDisabledUsersGroupDN string          `` /* 280-byte string literal not displayed */
	UserSchema               LDAPUserSchema  `yaml:"user_schema"`
	GroupSchema              LDAPGroupSchema `yaml:"group_schema"`
}

type LDAPUserSchema

type LDAPUserSchema struct {
	ID              string `` /* 210-byte string literal not displayed */
	IDIsOctetString bool   `` /* 337-byte string literal not displayed */
	Mail            string `` /* 164-byte string literal not displayed */
	DisplayName     string `` /* 184-byte string literal not displayed */
	Username        string `` /* 168-byte string literal not displayed */
	Enabled         string `` /* 206-byte string literal not displayed */
}

type Log

type Log struct {
	Level  string `` /* 181-byte string literal not displayed */
	Pretty bool   `yaml:"pretty" env:"OC_LOG_PRETTY;AUTH_BASIC_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
	Color  bool   `yaml:"color" env:"OC_LOG_COLOR;AUTH_BASIC_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
	File   string `` /* 149-byte string literal not displayed */
}

type OwnCloudSQLProvider

type OwnCloudSQLProvider struct {
	DBUsername       string `` /* 162-byte string literal not displayed */
	DBPassword       string `` /* 126-byte string literal not displayed */
	DBHost           string `yaml:"db_host" env:"AUTH_BASIC_OWNCLOUDSQL_DB_HOST" desc:"Hostname of the database server." introductionVersion:"1.0.0"`
	DBPort           int    `` /* 135-byte string literal not displayed */
	DBName           string `yaml:"db_name" env:"AUTH_BASIC_OWNCLOUDSQL_DB_NAME" desc:"Name of the owncloud database." introductionVersion:"1.0.0"`
	IDP              string `` /* 194-byte string literal not displayed */
	Nobody           int64  `` /* 151-byte string literal not displayed */
	JoinUsername     bool   `` /* 147-byte string literal not displayed */
	JoinOwnCloudUUID bool   `` /* 158-byte string literal not displayed */
}

type Service

type Service struct {
	Name string `yaml:"-"`
}

type TokenManager

type TokenManager struct {
	JWTSecret string `` /* 138-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;AUTH_BASIC_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
	Type      string `` /* 213-byte string literal not displayed */
	Endpoint  string `` /* 139-byte string literal not displayed */
	Collector string `` /* 259-byte string literal not displayed */
}

Tracing defines the tracing configuration.

func (Tracing) Convert

func (t Tracing) Convert() tracing.Config

Convert Tracing to the tracing package's Config struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL