Documentation ¶
Index ¶
- Variables
- func Exists() bool
- func Get() *models.Configuration
- func HashPassword(password string, useFileSalt bool) string
- func HashPasswordCustomSalt(password, salt string) string
- func Load()
- func LoadFromSetup(config models.Configuration, cloudConfig *cloudconfig.CloudConfig, ...)
- func UsesHttps() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Environment environment.Environment
Environment is an object containing the environment variables
Functions ¶
func HashPassword ¶
HashPassword hashes a string with SHA1 the file salt or admin user salt
func HashPasswordCustomSalt ¶
HashPasswordCustomSalt hashes a password with SHA1 and the provided salt
func Load ¶
func Load()
Load loads the configuration or creates the folder structure and a default configuration
func LoadFromSetup ¶
func LoadFromSetup(config models.Configuration, cloudConfig *cloudconfig.CloudConfig, isInitialSetup bool)
LoadFromSetup creates a new configuration file after a user completed the setup. If cloudConfig is not nil, a new cloud config file is created. If it is nil an existing cloud config file will be deleted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.