func GetLockFileLocation() string {
	return getEnv("ENM_LOCK_FILE_LOCATION", "/tmp/resin/resin-updates.lock")
}
GetLockFileLocation returns the location of the lock file
package config
import (
	"os"
	"path"
	"strconv"
	"time"
	log "github.com/Sirupsen/logrus"
)
func GetLogLevel() log.Level {
	return switchLogLevel(getEnv("ENM_LOG_LEVEL", ""))
}
func GetDependentLogLevel() log.Level {
	return switchLogLevel(getEnv("DEPENDENT_LOG_LEVEL", ""))
}
func GetSupervisorCheckDelay() (time.Duration, error) {
	value, err := strconv.Atoi(getEnv("ENM_SUPERVISOR_CHECK_DELAY", "1"))
	return time.Duration(value) * time.Second, err
}
func GetHotspotDeleteDelay() (time.Duration, error) {
	value, err := strconv.Atoi(getEnv("ENM_HOTSPOT_DELETE_DELAY", "10"))
	return time.Duration(value) * time.Second, err
}
func GetLoopDelay() (time.Duration, error) {
	value, err := strconv.Atoi(getEnv("ENM_CONFIG_LOOP_DELAY", "10"))
	return time.Duration(value) * time.Second, err
}
func GetPauseDelay() (time.Duration, error) {
	value, err := strconv.Atoi(getEnv("ENM_CONFIG_PAUSE_DELAY", "10"))
	return time.Duration(value) * time.Second, err
}
func GetHotspotSSID() string {
	return getEnv("ENM_HOTSPOT_SSID", "resin-hotspot")
}
func GetHotspotPassword() string {
	return getEnv("ENM_HOTSPOT_PASSWORD", "resin-hotspot")
}
func GetShortBluetoothTimeout() (time.Duration, error) {
	value, err := strconv.Atoi(getEnv("ENM_BLUETOOTH_SHORT_TIMEOUT", "1"))
	return time.Duration(value) * time.Second, err
}
func GetLongBluetoothTimeout() (time.Duration, error) {
	value, err := strconv.Atoi(getEnv("ENM_BLUETOOTH_LONG_TIMEOUT", "10"))
	return time.Duration(value) * time.Second, err
}
func GetAvahiTimeout() (time.Duration, error) {
	value, err := strconv.Atoi(getEnv("ENM_AVAHI_TIMEOUT", "10"))
	return time.Duration(value) * time.Second, err
}
func GetUpdateRetries() (int, error) {
	return strconv.Atoi(getEnv("ENM_UPDATE_RETRIES", "1"))
}
func GetAssetsDir() string {
	return getEnv("ENM_ASSETS_DIRECTORY", "/data/assets")
}
func GetDbDir() string {
	return getEnv("ENM_DB_DIRECTORY", "/data/database")
}
func GetDbPath() string {
	directory := GetDbDir()
	file := getEnv("ENM_DB_FILE", "enm.db")
	return path.Join(directory, file)
}
func GetVersion() string {
	return getEnv("ENM_API_VERSION", "v1")
}
func GetSuperAddr() string {
	return getEnv("RESIN_SUPERVISOR_ADDRESS", "http://127.0.0.1:4000")
}
func GetSuperAPIKey() string {
	return getEnv("RESIN_SUPERVISOR_API_KEY", "")
}