Documentation ¶
Index ¶
- Constants
- 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 SetDeploymentPassword(newPassword string)
- func UsesHttps() bool
Constants ¶
const MinLengthPassword = 8
MinLengthPassword is the required length of admin password in characters
Variables ¶
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.
func SetDeploymentPassword ¶ added in v1.8.3
func SetDeploymentPassword(newPassword string)
SetDeploymentPassword sets a new password. This should only be used for non-interactive deployment, but is not enforced
Types ¶
This section is empty.