mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
35 lines
789 B
C++
35 lines
789 B
C++
|
|
#ifndef NATIVESERVERCONFIG_H
|
||
|
|
#define NATIVESERVERCONFIG_H
|
||
|
|
|
||
|
|
#include <QJsonObject>
|
||
|
|
#include <QMap>
|
||
|
|
|
||
|
|
#include "core/utils/containerEnum.h"
|
||
|
|
#include "core/utils/containers/containerUtils.h"
|
||
|
|
#include "core/utils/protocolEnum.h"
|
||
|
|
#include "core/models/containerConfig.h"
|
||
|
|
|
||
|
|
namespace amnezia
|
||
|
|
{
|
||
|
|
|
||
|
|
using namespace ContainerEnumNS;
|
||
|
|
|
||
|
|
struct NativeServerConfig {
|
||
|
|
QString description;
|
||
|
|
QString hostName;
|
||
|
|
QMap<DockerContainer, ContainerConfig> containers;
|
||
|
|
DockerContainer defaultContainer;
|
||
|
|
QString dns1;
|
||
|
|
QString dns2;
|
||
|
|
|
||
|
|
bool hasContainers() const;
|
||
|
|
ContainerConfig containerConfig(DockerContainer container) const;
|
||
|
|
QJsonObject toJson() const;
|
||
|
|
static NativeServerConfig fromJson(const QJsonObject& json);
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace amnezia
|
||
|
|
|
||
|
|
#endif // NATIVESERVERCONFIG_H
|
||
|
|
|