Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 1,124 for Nil (0.04 sec)

  1. internal/event/config.go

    1. if err := xml.NewDecoder(reader).Decode(&config); err != nil {
    2. return nil, err
    3. }
    4.  
    5. if err := config.Validate(region, targetList); err != nil {
    6. return nil, err
    7. }
    8.  
    9. config.SetRegion(region)
    10. // If xml namespace is empty, set a default value before returning.
    11. if config.XMLNS == "" {
    12. config.XMLNS = "http://s3.amazonaws.com/doc/2006-03-01/"
    13. }
    14. return &config, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 8.4K bytes
    - Viewed (0)
  2. cmd/admin-handlers-pools.go

    1. if err := z.Decommission(r.Context(), poolIndices...); err != nil {
    2. writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    3. return
    4. }
    5. }
    6. }
    7.  
    8. func (a adminAPIHandlers) CancelDecommission(w http.ResponseWriter, r *http.Request) {
    9. ctx := r.Context()
    10.  
    11. objectAPI, _ := validateAdminReq(ctx, w, r, policy.DecommissionAdminAction)
    12. if objectAPI == nil {
    13. return
    14. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 00:22:30 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. cni/pkg/repair/netns.go

    1. var err error
    2. res, err = f()
    3. return err
    4. })
    5. if err != nil {
    6. return res, fmt.Errorf("in network namespace %v: %v", ns, err)
    7. }
    8.  
    9. return res, nil
    10. }
    11.  
    12. func checkInterfacesForMatchingAddr(targetAddr net.IP) (match bool, err error) {
    13. var interfaces []net.Interface
    14. if interfaces, err = net.Interfaces(); err != nil {
    15. return false, fmt.Errorf("failed to get interfaces")
    16. }
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 19:12:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/addr2line/addr2line_test.go

    1. out, err := cmd.CombinedOutput()
    2. if err != nil {
    3. t.Fatalf("%v: %v\n%s", cmd, err, string(out))
    4. }
    5. syms := make(map[string]string)
    6. scanner := bufio.NewScanner(bytes.NewReader(out))
    7. for scanner.Scan() {
    8. f := strings.Fields(scanner.Text())
    9. if len(f) < 3 {
    10. continue
    11. }
    12. syms[f[2]] = f[0]
    13. }
    14. if err := scanner.Err(); err != nil {
    15. t.Fatalf("error reading symbols: %v", err)
    16. }
    17. return syms
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. buildscripts/heal-manual.go

    1. }
    2.  
    3. start, _, err := madmClnt.Heal(context.Background(), "healing-rewrite-bucket", "", opts, "", false, false)
    4. if err != nil {
    5. log.Fatalln(err)
    6. }
    7. fmt.Println("Healstart sequence ===")
    8. enc := json.NewEncoder(os.Stdout)
    9. if err = enc.Encode(&start); err != nil {
    10. log.Fatalln(err)
    11. }
    12.  
    13. fmt.Println()
    14. for {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 27 09:47:58 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-utils.go

    1. for i := range fivs.Versions {
    2. fivs.Versions[i].NumVersions = n
    3. }
    4. return fivs, nil
    5. }
    6.  
    7. func getAllFileInfoVersions(xlMetaBuf []byte, volume, path string, allParts bool) (FileInfoVersions, error) {
    8. var versions []FileInfo
    9. var err error
    10.  
    11. if buf, _, e := isIndexedMetaV2(xlMetaBuf); e != nil {
    12. return FileInfoVersions{}, e
    13. } else if buf != nil {
    14. versions, err = buf.ListVersions(volume, path, allParts)
    15. } else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. docs/sts/ldap.go

    1. if err != nil {
    2. log.Fatalf("Error initializing LDAP Identity: %v", err)
    3. }
    4.  
    5. stsEndpointURL, err := url.Parse(stsEndpoint)
    6. if err != nil {
    7. log.Fatalf("Error parsing sts endpoint: %v", err)
    8. }
    9.  
    10. opts := &minio.Options{
    11. Creds: li,
    12. Secure: stsEndpointURL.Scheme == "https",
    13. }
    14.  
    15. v, err := li.Get()
    16. if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 07 12:59:47 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. cmd/bootstrap-peer-server_gen_test.go

    1. v := ServerSystemConfig{}
    2. bts, err := v.MarshalMsg(nil)
    3. if err != nil {
    4. t.Fatal(err)
    5. }
    6. left, err := v.UnmarshalMsg(bts)
    7. if err != nil {
    8. t.Fatal(err)
    9. }
    10. if len(left) > 0 {
    11. t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    12. }
    13.  
    14. left, err = msgp.Skip(bts)
    15. if err != nil {
    16. t.Fatal(err)
    17. }
    18. if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 24 21:36:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. cmd/bucket-metadata_gen_test.go

    1. v := BucketMetadata{}
    2. bts, err := v.MarshalMsg(nil)
    3. if err != nil {
    4. t.Fatal(err)
    5. }
    6. left, err := v.UnmarshalMsg(bts)
    7. if err != nil {
    8. t.Fatal(err)
    9. }
    10. if len(left) > 0 {
    11. t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    12. }
    13.  
    14. left, err = msgp.Skip(bts)
    15. if err != nil {
    16. t.Fatal(err)
    17. }
    18. if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  10. tests/count_test.go

    1. t.Errorf(fmt.Sprintf("Count should work, but got err %v", err))
    2. }
    3. if count1 != 1 {
    4. t.Errorf("Count with group should be 1, but got count: %v", count1)
    5. }
    6.  
    7. var count2 int64
    8. if err := DB.Model(&Company{}).Where("name in ?", []string{"company_count_group_b", "company_count_group_c"}).Group("name").Count(&count2).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top