Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fatalErr (0.1 sec)

  1. cmd/xl-storage-free-version_test.go

    	var err error
    	_, err = xl.DeleteVersion(tierfi)
    	fatalErr(err)
    	report()
    
    	fvIDs := []string{
    		"00000000-0000-0000-0000-0000000000f1",
    		"00000000-0000-0000-0000-0000000000f2",
    	}
    	// Simulate overwrite of null version
    	newtierfi := tierfi
    	newtierfi.SetTierFreeVersionID(fvIDs[0])
    	fatalErr(xl.AddFreeVersion(newtierfi))
    	report()
    	fatalErr(xl.AddVersion(newtierfi))
    	report()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. docs/debugging/inspect/main.go

    			Key  string `json:"key"`
    		}{}
    		got, err := io.ReadAll(os.Stdin)
    		if err != nil {
    			fatalErr(err)
    		}
    		fatalErr(json.Unmarshal(got, &input))
    		inputs = []string{input.File}
    		*keyHex = input.Key
    	case len(flag.Args()) == 1:
    		var err error
    		inputs, err = filepathx.Glob(flag.Args()[0])
    		fatalErr(err)
    	default:
    		flag.Usage()
    		fatalIf(true, "Only 1 file can be decrypted")
    		os.Exit(1)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs/debugging/inspect/utils.go

    	if n, err := base64.StdEncoding.Decode(dst, priv); err == nil {
    		return x509.ParsePKCS1PrivateKey(dst[:n])
    	}
    	// Try Raw, return error
    	return x509.ParsePKCS1PrivateKey(priv)
    }
    
    func fatalErr(err error) {
    	if err == nil {
    		return
    	}
    	log.Fatalln(err)
    }
    
    func fatalIf(b bool, msg string, v ...interface{}) {
    	if !b {
    		return
    	}
    	log.Fatalf(msg, v...)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Nov 02 20:36:38 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top