2021-04-04 23:12:36 +03:00
|
|
|
#ifndef CLOAK_CONFIGURATOR_H
|
|
|
|
|
#define CLOAK_CONFIGURATOR_H
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
2022-08-25 17:35:28 +03:00
|
|
|
#include "configurator_base.h"
|
2021-04-04 23:12:36 +03:00
|
|
|
|
2022-08-25 17:35:28 +03:00
|
|
|
using namespace amnezia;
|
|
|
|
|
|
|
|
|
|
class CloakConfigurator : ConfiguratorBase
|
2021-04-04 23:12:36 +03:00
|
|
|
{
|
2022-08-25 17:35:28 +03:00
|
|
|
Q_OBJECT
|
2021-04-04 23:12:36 +03:00
|
|
|
public:
|
2022-08-25 17:35:28 +03:00
|
|
|
CloakConfigurator(std::shared_ptr<Settings> settings,
|
|
|
|
|
std::shared_ptr<ServerController> serverController, QObject *parent = nullptr);
|
2021-04-04 23:12:36 +03:00
|
|
|
|
2022-08-25 17:35:28 +03:00
|
|
|
QString genCloakConfig(const ServerCredentials &credentials, DockerContainer container,
|
2021-05-07 23:28:37 +03:00
|
|
|
const QJsonObject &containerConfig, ErrorCode *errorCode = nullptr);
|
2021-04-04 23:12:36 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // CLOAK_CONFIGURATOR_H
|