Documentation ¶
Index ¶
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 SHA256 the file salt or admin user salt
func HashPasswordCustomSalt ¶
HashPasswordCustomSalt hashes a password with SHA256 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.