Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 938 for Nil$ (0.03 sec)

  1. cmd/object-api-putobject_test.go

    		if actualErr != nil && testCase.expectedError == nil {
    			t.Errorf("Test %d: %s: Expected to pass, but failed with: error %s.", i, instanceType, actualErr.Error())
    			continue
    		}
    		if actualErr == nil && testCase.expectedError != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. cmd/post-policy-fan-out.go

    				DisableMD5: true,
    			}
    			hr, err := hash.NewReaderWithOpts(ctx, bytes.NewReader(fanOutBuf), hopts)
    			if err != nil {
    				errs[idx] = err
    				return
    			}
    
    			reader := NewPutObjReader(hr)
    			defer func() {
    				if err := reader.Close(); err != nil {
    					errs[idx] = err
    				}
    				if err := hr.Close(); err != nil {
    					errs[idx] = err
    				}
    			}()
    
    			userDefined := make(map[string]string, len(req.UserMetadata))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. cmd/endpoint_test.go

    			endpoint, err := NewEndpoint(test.arg)
    			if err == nil {
    				err = endpoint.UpdateIsLocal()
    			}
    
    			switch {
    			case test.expectedErr == nil:
    				if err != nil {
    					t.Errorf("error: expected = <nil>, got = %v", err)
    				}
    			case err == nil:
    				t.Errorf("error: expected = %v, got = <nil>", test.expectedErr)
    			case test.expectedErr.Error() != err.Error():
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. docs/sts/ldap.go

    	if err != nil {
    		log.Fatalf("Error initializing LDAP Identity: %v", err)
    	}
    
    	stsEndpointURL, err := url.Parse(stsEndpoint)
    	if err != nil {
    		log.Fatalf("Error parsing sts endpoint: %v", err)
    	}
    
    	opts := &minio.Options{
    		Creds:  li,
    		Secure: stsEndpointURL.Scheme == "https",
    	}
    
    	v, err := li.Get()
    	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)
  5. internal/logger/target/kafka/kafka.go

    	if !h.kconfig.Enabled {
    		return nil
    	}
    	if err := h.validate(); err != nil {
    		return err
    	}
    	if h.kconfig.QueueDir != "" {
    		if err := h.initQueueStoreOnce.DoWithContext(ctx, h.initQueueStore); err != nil {
    			return err
    		}
    		return h.initKafkaOnce.Do(h.init)
    	}
    	if err := h.init(); err != nil {
    		return err
    	}
    	go h.startKafkaLogger()
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    			return policy.toSlice(), policy.UpdatedAt, nil
    		}
    		if !policyPresent {
    			if err := store.loadMappedPolicy(context.TODO(), name, regUser, true, c.iamGroupPolicyMap); err != nil && !errors.Is(err, errNoSuchPolicy) {
    				return nil, time.Time{}, err
    			}
    			policy, _ = c.iamGroupPolicyMap.Load(name)
    			return policy.toSlice(), policy.UpdatedAt, nil
    		}
    		return nil, time.Time{}, nil
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  7. internal/logger/target/http/http.go

    func (h *Target) Send(ctx context.Context, entry interface{}) error {
    	if h.status.Load() == statusClosed {
    		if h.migrateTarget != nil {
    			return h.migrateTarget.Send(ctx, entry)
    		}
    		return nil
    	}
    
    	h.logChMu.RLock()
    	defer h.logChMu.RUnlock()
    	if h.logCh == nil {
    		// We are closing...
    		return nil
    	}
    
    	select {
    	case h.logCh <- entry:
    		h.totalMessages.Add(1)
    	case <-ctx.Done():
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  8. cmd/erasure-metadata-utils.go

    	if len(errs) != len(disks) {
    		bugLogIf(GlobalContext, errors.New("unexpected drives/errors slice length"))
    		return nil
    	}
    	newDisks := make([]StorageAPI, len(disks))
    	for index := range errs {
    		if errs[index] == nil {
    			newDisks[index] = disks[index]
    		} else {
    			newDisks[index] = nil
    		}
    	}
    	return newDisks
    }
    
    // Errors specifically generated by calculatePartSizeFromIdx function.
    var (
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. src/cmd/buildid/buildid.go

    	id, err := buildid.ReadFile(file)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if !*wflag {
    		fmt.Printf("%s\n", id)
    		return
    	}
    
    	// Keep in sync with src/cmd/go/internal/work/buildid.go:updateBuildID
    
    	f, err := os.Open(file)
    	if err != nil {
    		log.Fatal(err)
    	}
    	matches, hash, err := buildid.FindAndHash(f, id, 0)
    	f.Close()
    	if err != nil {
    		log.Fatal(err)
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Jun 21 19:58:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/delmarker-expiration_test.go

    			var dexp DelMarkerExpiration
    			var fail bool
    			err := xml.Unmarshal([]byte(test.xml), &dexp)
    			if test.err == nil {
    				if err != nil {
    					fail = true
    				}
    			} else {
    				if err == nil {
    					fail = true
    				}
    				if test.err.Error() != err.Error() {
    					fail = true
    				}
    			}
    			if fail {
    				t.Fatalf("Expected %v but got %v", test.err, err)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top