mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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"+
|
||||
"}")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user