Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getISCSIInitiatorInfo (0.34 sec)

  1. pkg/volume/iscsi/iscsi.go

    	}
    
    	return "", nil, "", 0, fmt.Errorf("Spec does not reference an ISCSI volume type")
    }
    
    // get iSCSI initiator info: iface and initiator name
    func getISCSIInitiatorInfo(spec *volume.Spec) (string, *string, error) {
    	if spec.Volume != nil && spec.Volume.ISCSI != nil {
    		return spec.Volume.ISCSI.ISCSIInterface, spec.Volume.ISCSI.InitiatorName, nil
    	} else if spec.PersistentVolume != nil &&
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. pkg/volume/iscsi/iscsi_test.go

    							ISCSIInterface: "tcp",
    						},
    					},
    				},
    			},
    			expectedIface: "tcp",
    			expectedError: nil,
    		},
    	}
    	for _, testcase := range tests {
    		resultIface, _, err := getISCSIInitiatorInfo(testcase.spec)
    		if err != testcase.expectedError || resultIface != testcase.expectedIface {
    			t.Errorf("%s failed: expected err=%v iface=%s, got %v/%s", testcase.name, testcase.expectedError, testcase.expectedIface,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
Back to top