mirror of
https://github.com/crazy-max/diun.git
synced 2026-01-03 19:45:05 +01:00
Use map to declare Docker and Swarm providers
This commit is contained in:
@@ -84,17 +84,15 @@ func TestLoad(t *testing.T) {
|
||||
},
|
||||
},
|
||||
Providers: model.Providers{
|
||||
Docker: []model.PrdDocker{
|
||||
{
|
||||
ID: "standalone",
|
||||
Docker: map[string]model.PrdDocker{
|
||||
"standalone": {
|
||||
TLSVerify: true,
|
||||
WatchByDefault: true,
|
||||
WatchStopped: true,
|
||||
},
|
||||
},
|
||||
Swarm: []model.PrdSwarm{
|
||||
{
|
||||
ID: "local_swarm",
|
||||
Swarm: map[string]model.PrdSwarm{
|
||||
"local_swarm": {
|
||||
TLSVerify: true,
|
||||
WatchByDefault: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user