Documentation ¶
Index ¶
- func MissingAdminUserID(service string) error
- func MissingJWTTokenError(service string) error
- func MissingLDAPBindPassword(service string) error
- func MissingMachineAuthApiKeyError(service string) error
- func MissingRevaTransferSecretError(service string) error
- func MissingServiceUserPassword(service, serviceUser string) error
- func MissingSystemUserApiKeyError(service string) error
- func MissingSystemUserID(service string) error
- func RunChecklist(checks ...Check) error
- type Check
- type Commons
- type EnvBinding
- type Log
- type Reva
- type TokenManager
- type Tracing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MissingAdminUserID ¶
func MissingJWTTokenError ¶
func MissingLDAPBindPassword ¶
func MissingSystemUserID ¶
Types ¶
type Commons ¶
type Commons struct { Log *Log `yaml:"log"` Tracing *Tracing `yaml:"tracing"` OcisURL string `yaml:"ocis_url" env:"OCIS_URL"` TokenManager *TokenManager `yaml:"token_manager"` Reva *Reva `yaml:"reva"` MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY"` TransferSecret string `yaml:"transfer_secret,omitempty" env:"REVA_TRANSFER_SECRET"` SystemUserID string `yaml:"system_user_id" env:"OCIS_SYSTEM_USER_ID"` SystemUserAPIKey string `yaml:"system_user_api_key" env:"SYSTEM_USER_API_KEY"` AdminUserID string `yaml:"admin_user_id" env:"OCIS_ADMIN_USER_ID"` }
Commons holds configuration that are common to all extensions. Each extension can then decide whether to overwrite its values.
type EnvBinding ¶
type EnvBinding struct { EnvVars []string // name of the environment var. Destination interface{} // pointer to the original config value to modify. }
EnvBinding represents a direct binding from an env variable to a go kind. Along with gookit/config, its primal goal is to unpack environment variables into a Go value. We do so with reflection, and this data structure is just a step in between.
type Log ¶
type Log struct { Level string `yaml:"level" env:"OCIS_LOG_LEVEL"` Pretty bool `yaml:"pretty" env:"OCIS_LOG_PRETTY"` Color bool `yaml:"color" env:"OCIS_LOG_COLOR"` File string `yaml:"file" env:"OCIS_LOG_FILE"` }
Log defines the available logging configuration.
type Reva ¶
type Reva struct {
Address string `yaml:"address" env:"REVA_GATEWAY"`
}
Reva defines all available REVA configuration.
type TokenManager ¶
type TokenManager struct {
JWTSecret string `yaml:"jwt_secret" env:"OCIS_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 `yaml:"enabled" env:"OCIS_TRACING_ENABLED"` Type string `yaml:"type" env:"OCIS_TRACING_TYPE"` Endpoint string `yaml:"endpoint" env:"OCIS_TRACING_ENDPOINT"` Collector string `yaml:"collector" env:"OCIS_TRACING_COLLECTOR"` }
Tracing defines the available tracing configuration.
Click to show internal directories.
Click to hide internal directories.