plugins/* stub-out GET functions so plugins build with v0.7

This commit is contained in:
Casey Callendrello
2018-06-15 14:09:17 +02:00
parent e4fdb6cd18
commit 68b4efb405
18 changed files with 117 additions and 21 deletions

View File

@@ -625,7 +625,7 @@ var _ = Describe("bandwidth test", func() {
defer GinkgoRecover()
containerWithTbfRes, _, err = testutils.CmdAdd(containerWithTbfNS.Path(), "dummy", containerWithTbfIFName, []byte(ptpConf), func() error {
r, err := invoke.DelegateAdd("ptp", []byte(ptpConf))
r, err := invoke.DelegateAdd("ptp", []byte(ptpConf), nil)
Expect(r.Print()).To(Succeed())
return err
@@ -633,7 +633,7 @@ var _ = Describe("bandwidth test", func() {
Expect(err).NotTo(HaveOccurred())
containerWithoutTbfRes, _, err = testutils.CmdAdd(containerWithoutTbfNS.Path(), "dummy2", containerWithoutTbfIFName, []byte(ptpConf), func() error {
r, err := invoke.DelegateAdd("ptp", []byte(ptpConf))
r, err := invoke.DelegateAdd("ptp", []byte(ptpConf), nil)
Expect(r.Print()).To(Succeed())
return err

View File

@@ -232,5 +232,11 @@ func cmdDel(args *skel.CmdArgs) error {
}
func main() {
skel.PluginMain(cmdAdd, cmdDel, version.PluginSupports("0.3.0", "0.3.1", version.Current()))
// TODO: implement plugin version
skel.PluginMain(cmdAdd, cmdGet, cmdDel, version.PluginSupports("0.3.0", "0.3.1", version.Current()), "TODO")
}
func cmdGet(args *skel.CmdArgs) error {
// TODO: implement
return fmt.Errorf("not implemented")
}