Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for handleCmdResponse (0.27 sec)

  1. pkg/volume/flexvolume/driver-call.go

    // driver.
    func isCmdNotSupportedErr(err error) bool {
    	return err != nil && err.Error() == StatusNotSupported
    }
    
    // handleCmdResponse processes the command output and returns the appropriate
    // error code or message.
    func handleCmdResponse(cmd string, output []byte) (*DriverStatus, error) {
    	status := DriverStatus{
    		Capabilities: defaultCapabilities(),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 25 02:39:55 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  2. pkg/volume/flexvolume/driver-call_test.go

    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"testing"
    )
    
    func TestHandleResponseDefaults(t *testing.T) {
    	ds, err := handleCmdResponse("test", []byte(`{"status": "Success"}`))
    	if err != nil {
    		t.Error("error: ", err)
    	}
    
    	if *ds.Capabilities != *defaultCapabilities() {
    		t.Error("wrong default capabilities: ", *ds.Capabilities)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 11:18:58 UTC 2017
    - 894 bytes
    - Viewed (0)
Back to top