func GetProperty(prop string) interface{} {
	switch prop {
	case awsSecretKey, awsAccessKey:
		{
			key := db.GetSecret(prop)
			return key
		}
	default:
		return unknownPropertyError
	}
	return nil
}
Beispiel #2
0
func jwtInit() {
	secret = db.GetSecret(jwtSecret)
	if secret == "" {
		createSecret()
	}
}