Propagate json error object to the caller
authorEugene Yakubovich <eugene.yakubovich@coreos.com>
Tue, 2 Jun 2015 00:34:00 +0000 (17:34 -0700)
committerEugene Yakubovich <eugene.yakubovich@coreos.com>
Tue, 9 Jun 2015 17:46:28 +0000 (10:46 -0700)
commit33a575f49d5b218f0f3a92e0d2473246613bcf68
treebf354cb677cbefe1d46758447656ff09e470ea26
parent54dfc9ef5dd40663489f8e011b056dd45ca1fa2c
Propagate json error object to the caller

When plugin errors out, it prints out a JSON object to stdout
describing the failure. This object needs to be propagated out
through the plugins and to the container runtime. This change
also adds Print method to both the result and error structs
for easy serialization to stdout.
pkg/plugin/ipam.go
pkg/plugin/types.go
pkg/skel/skel.go
plugins/ipam/dhcp/main.go
plugins/ipam/host-local/main.go
plugins/main/bridge/bridge.go
plugins/main/ipvlan/ipvlan.go
plugins/main/macvlan/macvlan.go
plugins/main/veth/veth.go
scripts/exec-plugins.sh