Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFilePath ¶
func GetConfigFilePath() string
GetConfigFilePath gets the path of the configuration file
func ReadConfigurationFromFile ¶
ReadConfigurationFromFile reads configuration from a file (JSON for now)
Types ¶
type Options ¶
type Options struct { ServerHostname string `` /* 126-byte string literal not displayed */ ServerPort int `json:"serverPort" env:"SERVER_PORT" long:"server-port" short:"p" default:"8080" description:"Server port"` ServerURLContext string `` /* 128-byte string literal not displayed */ AppDescription string `json:"appDescription" env:"APP_DESCRIPTION" long:"app-description" short:"" default:"d" description:"Application description"` PathToStaticFiles string `` /* 135-byte string literal not displayed */ IconDataLocationGit string `` /* 143-byte string literal not displayed */ IconDataCreateNew string `` /* 140-byte string literal not displayed */ AuthenticationType string `` /* 137-byte string literal not displayed */ PasswordCredentials basicAuthnData `json:"passwordCredentials" env:"PASSWORD_CREDENTIALS" long:"password-credentials"` OIDCClientID string `json:"oidcClientId" env:"OIDC_CLIENT_ID" long:"oidc-client-id" short:"" default:"" description:"OIDC client id"` OIDCClientSecret string `` /* 127-byte string literal not displayed */ OIDCAccessTokenURL string `` /* 138-byte string literal not displayed */ OIDCUserAuthorizationURL string `` /* 162-byte string literal not displayed */ OIDCClientRedirectBackURL string `` /* 169-byte string literal not displayed */ OIDCTokenIssuer string `json:"oidcTokenIssuer" env:"OIDC_TOKEN_ISSUER" long:"oidc-token-issuer" short:"" default:"" description:"OIDC token issuer"` OIDCIpJwtPublicKeyURL string `` /* 156-byte string literal not displayed */ OIDCIpJwtPublicKeyPemBase64 string `` /* 183-byte string literal not displayed */ OIDCIpLogoutURL string `` /* 126-byte string literal not displayed */ UsersByRoles UsersByRoles `json:"usersByRoles" env:"USERS_BY_ROLES" long:"users-by-roles" short:"" default:"" description:"Users by roles"` DBHost string `json:"dbHost" env:"DB_HOST" long:"db-host" short:"" default:"localhost" description:"DB host"` DBPort int `json:"dbPort" env:"DB_PORT" long:"db-port" short:"" default:"5432" description:"DB port"` DBUser string `json:"dbUser" env:"DB_USER" long:"db-user" short:"" default:"iconrepo" description:"DB user"` DBPassword string `json:"dbPassword" env:"DB_PASSWORD" long:"db-password" short:"" default:"iconrepo" description:"DB password"` DBDatabase string `json:"dbDatabase" env:"DB_DATABASE" long:"db-database" short:"" default:"iconrepo" description:"DB database"` EnableBackdoors bool `json:"enableBackdoors" env:"ENABLE_BACKDOORS" long:"enable-backdoors" short:"" description:"Enable backdoors"` LoggerLevel string `json:"loggerLevel" env:"LOGGER_LEVEL" long:"logger-level" short:"" default:"info" description:"Logger level"` PackageRootDir string `json:"packageRootDir" env:"PACKAGE_ROOT_DIR" long:"package-root-dir" short:"" default:"" description:"Package root dir"` }
Options holds the available command-line options
type UsersByRoles ¶
UsersByRoles maps roles to lists of user holding the role
Click to show internal directories.
Click to hide internal directories.