Implement Docker provider (#3)

This commit is contained in:
CrazyMax
2019-12-13 23:04:02 +01:00
parent cc7e6cd13b
commit 32438dbb2e
17 changed files with 447 additions and 221 deletions

View File

@@ -5,7 +5,6 @@ import (
"github.com/crazy-max/diun/internal/config"
"github.com/crazy-max/diun/internal/model"
"github.com/crazy-max/diun/internal/model/provider"
"github.com/stretchr/testify/assert"
)
@@ -81,15 +80,13 @@ func TestLoad(t *testing.T) {
},
},
Providers: model.Providers{
Docker: []provider.Docker{
Docker: []model.PrdDocker{
{
ID: "swarm",
Endpoint: "unix:///var/run/docker.sock",
ApiVersion: "1.13",
SwarmMode: true,
ID: "local",
WatchByDefault: true,
},
},
Image: []provider.Image{
Image: []model.PrdImage{
{
Name: "docker.io/crazymax/nextcloud:latest",
Os: "linux",