feat: Add etcd database support

improve concurrent access and high availability of aptly with the help of the characteristics of etcd
This commit is contained in:
hudeng
2022-02-08 11:16:16 +08:00
committed by André Roth
parent f42ff697d4
commit 78172d11d7
14 changed files with 497 additions and 6 deletions

View File

@@ -40,6 +40,7 @@ type ConfigStructure struct { // nolint: maligned
LogLevel string `json:"logLevel"`
LogFormat string `json:"logFormat"`
ServeInAPIMode bool `json:"serveInAPIMode"`
DatabaseEtcd string `json:"databaseEtcd"`
}
type LocalPoolStorage struct {

View File

@@ -143,7 +143,8 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
" \"enableMetricsEndpoint\": false,\n"+
" \"logLevel\": \"info\",\n"+
" \"logFormat\": \"json\",\n"+
" \"serveInAPIMode\": false\n"+
" \"serveInAPIMode\": false,\n"+
" \"databaseEtcd\": \"\"\n"+
"}")
}