Documentation
¶
Index ¶
- Variables
- func Init()
- func IsProduction() bool
- type CacheMode
- type Config
- type DatabaseConfig
- type DatabaseMode
- type InitialProjectConfig
- type KeyStoreConfig
- type KeyStoreMode
- type LeaderElectionConfig
- type LeaderElectionMode
- type LeaderElectionRaftConfig
- type PostgresConfig
- type QueueMode
- type RaftNode
- type ServerConfig
- type SigningAlgorithm
- type VaultKeyStoreConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedSigningAlgorithms = []SigningAlgorithm{ SigningAlgorithmEdDSA, SigningAlgorithmRS256, }
Functions ¶
func IsProduction ¶
func IsProduction() bool
Types ¶
type CacheMode ¶
type CacheMode string
CacheMode has the following constants: CacheModeMemory, CacheModeRedis
type Config ¶
type Config struct {
Server ServerConfig
Frontend struct {
ExternalUrl string
}
Database DatabaseConfig
InitialVirtualServer struct {
Name string
DisplayName string
EnableRegistration bool
SigningAlgorithm SigningAlgorithm
CreateSystemAdminRole bool
CreateAdmin bool
Admin struct {
Username string
DisplayName string
PrimaryEmail string
PasswordHash string
Roles []string
}
ServiceUsers []struct {
Username string
Roles []string
PublicKey struct {
Pem string
Kid string
}
}
Projects []InitialProjectConfig
Mail struct {
Host string
Port int
Username string
Password string
}
}
KeyStore KeyStoreConfig
Cache struct {
Mode CacheMode
Redis struct {
Host string
Port int
Username string
Password string
Database int
}
}
LeaderElection LeaderElectionConfig
}
var C Config
type DatabaseConfig ¶
type DatabaseConfig struct {
Mode DatabaseMode
Postgres PostgresConfig
Sqlite struct {
Database string
}
}
type DatabaseMode ¶
type DatabaseMode string
DatabaseMode has the following constants: DatabaseModePostgres, DatabaseModeSqlite
const ( DatabaseModePostgres DatabaseMode = "postgres" DatabaseModeSqlite DatabaseMode = "sqlite" DatabaseModeMemory DatabaseMode = "memory" )
type InitialProjectConfig ¶
type InitialProjectConfig struct {
Slug string
Name string
Description string
Roles []struct {
Name string
Description string
}
Applications []struct {
Name string
DisplayName string
Type string
HashedSecret *string
RedirectUris []string
PostLogoutRedirectUris []string
DeviceFlowEnabled bool
}
ResourceServers []struct {
Slug string
Name string
Description string
}
}
type KeyStoreConfig ¶
type KeyStoreConfig struct {
Mode KeyStoreMode
Vault VaultKeyStoreConfig
Directory struct {
Path string
}
}
type KeyStoreMode ¶
type KeyStoreMode string
KeyStoreMode has the following constants: KeyStoreModeMemory (testing only), KeyStoreModeDirectory, KeyStoreModeOpenBao
const ( KeyStoreModeMemory KeyStoreMode = "memory" KeyStoreModeDirectory KeyStoreMode = "directory" KeyStoreModeVault KeyStoreMode = "vault" )
type LeaderElectionConfig ¶
type LeaderElectionConfig struct {
Mode LeaderElectionMode
Raft LeaderElectionRaftConfig
}
type LeaderElectionMode ¶
type LeaderElectionMode string
const ( LeaderElectionModeNone LeaderElectionMode = "none" LeaderElectionModeRaft LeaderElectionMode = "raft" )
type PostgresConfig ¶
type QueueMode ¶
type QueueMode string
QueueMode has the following constants: DeliveryModeNoop, DeliveryModeInProcess
type ServerConfig ¶
type SigningAlgorithm ¶
type SigningAlgorithm string
const ( SigningAlgorithmRS256 SigningAlgorithm = "RS256" SigningAlgorithmEdDSA SigningAlgorithm = "EdDSA" )
Click to show internal directories.
Click to hide internal directories.