Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
Path string `ocisConfig:"path" env:"ACCOUNTS_ASSET_PATH" desc:"The path to the ui assets."`
}
Asset defines the available asset configuration.
type CORS ¶ added in v1.14.0
type CORS struct { AllowedOrigins []string `ocisConfig:"allowed_origins"` AllowedMethods []string `ocisConfig:"allowed_methods"` AllowedHeaders []string `ocisConfig:"allowed_headers"` AllowCredentials bool `ocisConfig:"allowed_credentials"` }
CORS defines the available cors configuration.
type CS3 ¶
type CS3 struct {
ProviderAddr string `ocisConfig:"provider_addr" env:"ACCOUNTS_STORAGE_CS3_PROVIDER_ADDR" desc:"The address to the storage provider."`
}
CS3 is the cs3 implementation of the storage.
type Config ¶
type Config struct { *shared.Commons `ocisConfig:"-" yaml:"-"` Service Service `ocisConfig:"-" yaml:"-"` Tracing *Tracing `ocisConfig:"tracing"` Log *Log `ocisConfig:"log"` Debug Debug `ocisConfig:"debug"` HTTP HTTP `ocisConfig:"http"` GRPC GRPC `ocisConfig:"grpc"` TokenManager TokenManager `ocisConfig:"token_manager"` Asset Asset `ocisConfig:"asset"` Repo Repo `ocisConfig:"repo"` Index Index `ocisConfig:"index"` ServiceUser ServiceUser `ocisConfig:"service_user"` HashDifficulty int `` /* 165-byte string literal not displayed */ DemoUsersAndGroups bool `` /* 148-byte string literal not displayed */ Context context.Context `ocisConfig:"-" yaml:"-"` }
Config combines all available configuration parts.
type Debug ¶ added in v1.17.0
type Debug struct { Addr string `ocisConfig:"addr" env:"ACCOUNTS_DEBUG_ADDR"` Token string `ocisConfig:"token" env:"ACCOUNTS_DEBUG_TOKEN"` Pprof bool `ocisConfig:"pprof" env:"ACCOUNTS_DEBUG_PPROF"` Zpages bool `ocisConfig:"zpages" env:"ACCOUNTS_DEBUG_ZPAGES"` }
Debug defines the available debug configuration.
type Disk ¶
type Disk struct {
Path string `ocisConfig:"path" env:"ACCOUNTS_STORAGE_DISK_PATH" desc:"The path where the accounts data is stored."`
}
Disk is the local disk implementation of the storage.
type GIDBound ¶ added in v1.17.0
type GIDBound struct { Lower int64 `ocisConfig:"lower" env:"ACCOUNTS_GID_INDEX_LOWER_BOUND" desc:"The lowest possible gid value for the indexer."` Upper int64 `ocisConfig:"upper" env:"ACCOUNTS_GID_INDEX_UPPER_BOUND" desc:"The highest possible gid value for the indexer."` }
GIDBound defines a lower and upper bound.
type GRPC ¶
type GRPC struct { Addr string `ocisConfig:"addr" env:"ACCOUNTS_GRPC_ADDR" desc:"The address of the grpc service."` Namespace string `ocisConfig:"-" yaml:"-"` }
GRPC defines the available grpc configuration.
type HTTP ¶
type HTTP struct { Addr string `ocisConfig:"addr" env:"ACCOUNTS_HTTP_ADDR" desc:"The address of the http service."` Namespace string `ocisConfig:"-" yaml:"-"` Root string `ocisConfig:"root" env:"ACCOUNTS_HTTP_ROOT" desc:"The root path of the http service."` CacheTTL int `ocisConfig:"cache_ttl" env:"ACCOUNTS_CACHE_TTL" desc:"The cache time for the static assets."` CORS CORS `ocisConfig:"cors"` }
HTTP defines the available http configuration.
type Log ¶
type Log struct { Level string `ocisConfig:"level" env:"OCIS_LOG_LEVEL;ACCOUNTS_LOG_LEVEL" desc:"The log level."` Pretty bool `ocisConfig:"pretty" env:"OCIS_LOG_PRETTY;ACCOUNTS_LOG_PRETTY" desc:"Activates pretty log output."` Color bool `ocisConfig:"color" env:"OCIS_LOG_COLOR;ACCOUNTS_LOG_COLOR" desc:"Activates colorized log output."` File string `ocisConfig:"file" env:"OCIS_LOG_FILE;ACCOUNTS_LOG_FILE" desc:"The target log file."` }
Log defines the available log configuration.
type Repo ¶
type Repo struct { Backend string `ocisConfig:"backend" env:"ACCOUNTS_STORAGE_BACKEND" desc:"Defines which storage implementation is to be used"` Disk Disk `ocisConfig:"disk"` CS3 CS3 `ocisConfig:"cs3"` }
Repo defines which storage implementation is to be used.
type Service ¶ added in v1.17.0
type Service struct {
Name string `ocisConfig:"-" yaml:"-"`
}
Service defines the available service configuration.
type ServiceUser ¶
type ServiceUser struct { UUID string `ocisConfig:"uuid" env:"ACCOUNTS_SERVICE_USER_UUID" desc:"The id of the accounts service user."` Username string `ocisConfig:"username" env:"ACCOUNTS_SERVICE_USER_USERNAME" desc:"The username of the accounts service user."` UID int64 `ocisConfig:"uid" env:"ACCOUNTS_SERVICE_USER_UID" desc:"The uid of the accounts service user."` GID int64 `ocisConfig:"gid" env:"ACCOUNTS_SERVICE_USER_GID" desc:"The gid of the accounts service user."` }
ServiceUser defines the user required for EOS.
type TokenManager ¶
type TokenManager struct {
JWTSecret string `ocisConfig:"jwt_secret" env:"OCIS_JWT_SECRET;ACCOUNTS_JWT_SECRET" desc:"The secret to mint jwt tokens."`
}
TokenManager is the config for using the reva token manager
type Tracing ¶
type Tracing struct { Enabled bool `ocisConfig:"enabled" env:"OCIS_TRACING_ENABLED;ACCOUNTS_TRACING_ENABLED" desc:"Activates tracing."` Type string `ocisConfig:"type" env:"OCIS_TRACING_TYPE;ACCOUNTS_TRACING_TYPE"` Endpoint string `ocisConfig:"endpoint" env:"OCIS_TRACING_ENDPOINT;ACCOUNTS_TRACING_ENDPOINT" desc:"The endpoint to the tracing collector."` Collector string `ocisConfig:"collector" env:"OCIS_TRACING_COLLECTOR;ACCOUNTS_TRACING_COLLECTOR"` }
Tracing defines the available tracing configuration.
type UIDBound ¶ added in v1.17.0
type UIDBound struct { Lower int64 `ocisConfig:"lower" env:"ACCOUNTS_UID_INDEX_LOWER_BOUND" desc:"The lowest possible uid value for the indexer."` Upper int64 `ocisConfig:"upper" env:"ACCOUNTS_UID_INDEX_UPPER_BOUND" desc:"The highest possible uid value for the indexer."` }
UIDBound defines a lower and upper bound.