Update libcni to 0.7.0 (Spec ver 0.4.0)

This commit is contained in:
Tomofumi Hayashi
2019-05-15 17:06:26 +09:00
committed by Tomofumi Hayashi
parent 6c23cad08d
commit e723aabca8
169 changed files with 12524 additions and 1453 deletions

View File

@@ -16,6 +16,7 @@
package main
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
@@ -97,7 +98,7 @@ func gatherCNIEnv() []string {
return filtered
}
func (f *fakeExec) ExecPlugin(pluginPath string, stdinData []byte, environ []string) ([]byte, error) {
func (f *fakeExec) ExecPlugin(ctx context.Context, pluginPath string, stdinData []byte, environ []string) ([]byte, error) {
cmd := os.Getenv("CNI_COMMAND")
var index int
switch cmd {