File: BackupStoreConfigVerify.cpp

package info (click to toggle)
boxbackup 0.13~~git20200326.g8e8b63c-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,984 kB
  • sloc: xml: 70,723; cpp: 55,437; ansic: 24,659; perl: 4,844; sh: 4,292; makefile: 629; python: 311
file content (51 lines) | stat: -rw-r--r-- 1,288 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// --------------------------------------------------------------------------
//
// File
//		Name:    BackupStoreConfigVerify.h
//		Purpose: Configuration definition for the backup store server
//		Created: 2003/08/20
//
// --------------------------------------------------------------------------

#include "Box.h"
#include "BackupStoreConfigVerify.h"
#include "ServerTLS.h"
#include "BoxPortsAndFiles.h"

#include "MemLeakFindOn.h"

static const ConfigurationVerifyKey verifyserverkeys[] = 
{
	SERVERTLS_VERIFY_SERVER_KEYS(ConfigurationVerifyKey::NoDefaultValue)
	// no default listen addresses
};

static const ConfigurationVerify verifyserver[] = 
{
	{
		"Server",
		0,
		verifyserverkeys,
		ConfigTest_Exists | ConfigTest_LastEntry,
		0
	}
};

static const ConfigurationVerifyKey verifyrootkeys[] = 
{
	ConfigurationVerifyKey("AccountDatabase", ConfigTest_Exists),
	ConfigurationVerifyKey("TimeBetweenHousekeeping",
		ConfigTest_Exists | ConfigTest_IsInt),
	ConfigurationVerifyKey("ExtendedLogging", ConfigTest_IsBool, false),
	// make value "yes" to enable in config file
	ConfigurationVerifyKey("RaidFileConf", ConfigTest_LastEntry)
};

const ConfigurationVerify BackupConfigFileVerify =
{
	"root",
	verifyserver,
	verifyrootkeys,
	ConfigTest_Exists | ConfigTest_LastEntry,
	0
};