Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for conversion (0.17 sec)

  1. cni/pkg/plugin/plugin.go

    	var result *cniv1.Result
    	if conf.PrevResult == nil {
    		result = &cniv1.Result{
    			CNIVersion: cniv1.ImplementedSpecVersion,
    		}
    		return types.PrintResult(result, conf.CNIVersion)
    	}
    
    	// Pass through the result for the next plugin
    	return types.PrintResult(conf.PrevResult, conf.CNIVersion)
    }
    
    func CmdCheck(args *skel.CmdArgs) (err error) {
    	return nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin_test.go

    const (
    	testPodName          = "testPod"
    	testNSName           = "testNS"
    	testSandboxDirectory = "/tmp"
    	invalidVersion       = "0.1.0"
    	preVersion           = "0.2.0"
    )
    
    var mockConfTmpl = `{
        "cniVersion": "%s",
    	"name": "istio-plugin-sample-test",
    	"type": "sample",
        "capabilities": {
            "testCapability": false
        },
        "ipam": {
            "type": "testIPAM"
        },
        "dns": {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top