Call plugins with custom transports.

Small refactor to be able to use custom transports
to call remote plugins.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera 2016-03-01 20:16:40 -05:00
parent 98943aafae
commit 44005e59d4
5 changed files with 123 additions and 23 deletions

View file

@ -18,10 +18,11 @@ import (
"testing"
"bytes"
"strings"
"github.com/docker/docker/pkg/plugins"
"github.com/docker/go-connections/tlsconfig"
"github.com/gorilla/mux"
"strings"
)
const pluginAddress = "authzplugin.sock"