Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Case (0.18 sec)

  1. cmd/metacache-set.go

    				if resCh != nil {
    					resErr = nil
    					select {
    					case resCh <- results:
    					case <-ctx.Done():
    					}
    					resCh = nil
    					returned = true
    				}
    				continue
    			}
    			results.o = append(results.o, entry)
    		}
    		if resCh != nil {
    			resErr = io.EOF
    			select {
    			case <-ctx.Done():
    				// Nobody wants it.
    			case resCh <- results:
    			}
    		}
    	}()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  2. cmd/erasure.go

    func diskErrToDriveState(err error) (state string) {
    	switch {
    	case errors.Is(err, errDiskNotFound) || errors.Is(err, context.DeadlineExceeded):
    		state = madmin.DriveStateOffline
    	case errors.Is(err, errCorruptedFormat) || errors.Is(err, errCorruptedBackend):
    		state = madmin.DriveStateCorrupt
    	case errors.Is(err, errUnformattedDisk):
    		state = madmin.DriveStateUnformatted
    	case errors.Is(err, errDiskAccessDenied):
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  3. cmd/object-handlers_test.go

    				switch test.fault {
    				case MissingContentLength:
    					req.ContentLength = -1
    					// Setting the content length to a value greater than the max allowed size of a part.
    					// Used in test case  4.
    				case TooBigObject:
    					req.ContentLength = globalMaxObjectSize + 1
    					// Malformed signature.
    					// Used in test case  6.
    				case BadSignature:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  4. cmd/erasure-healing.go

    	for i, v := range availableDisks {
    		driveState := ""
    		switch {
    		case v != nil:
    			driveState = madmin.DriveStateOk
    		case errs[i] == errDiskNotFound, dataErrs[i] == errDiskNotFound:
    			driveState = madmin.DriveStateOffline
    		case errs[i] == errFileNotFound, errs[i] == errFileVersionNotFound, errs[i] == errVolumeNotFound:
    			fallthrough
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  5. cmd/global-heal.go

    			evt := evalActionFromLifecycle(ctx, *lc, lr, rcfg, objInfo)
    			switch {
    			case evt.Action.DeleteRestored(): // if restored copy has expired,delete it synchronously
    				applyExpiryOnTransitionedObject(ctx, newObjectLayerFn(), objInfo, evt, lcEventSrc_Heal)
    				return false
    			case evt.Action.Delete():
    				globalExpiryState.enqueueByDays(objInfo, evt, lcEventSrc_Heal)
    				return true
    			default:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 15K bytes
    - Viewed (1)
  6. cni/pkg/util/podutil_test.go

    		// TODO: when there exists a means for users to signal the intent to exclude a pod from ambient without requiring the use of
    		// the ambient redirection annotation, this annotation should no longer be checked by this function and this case should return 'true'
    		{
    			name: "pod has annotation to disable ambient redirection",
    			args: args{
    				namespace: namespaceWithAmbientEnabledLabel,
    				pod:       podWithAmbientDisabledAnnotation,
    			},
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 18:04:40 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. cmd/erasure-multipart.go

    	}
    
    	// Fetch buffer for I/O, returns from the pool if not allocates a new one and returns.
    	var buffer []byte
    	switch size := data.Size(); {
    	case size == 0:
    		buffer = make([]byte, 1) // Allocate at least a byte to reach EOF
    	case size == -1:
    		if size := data.ActualSize(); size > 0 && size < fi.Erasure.BlockSize {
    			// Account for padding and forced compression overhead and encryption.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  8. cmd/object-api-errors.go

    			apiErr.Bucket = params[0]
    		}
    		return apiErr
    	case errDiskFull.Error():
    		return StorageFull{}
    	case errTooManyOpenFiles.Error():
    		return SlowDown{}
    	case errFileAccessDenied.Error():
    		apiErr := PrefixAccessDenied{}
    		if len(params) >= 1 {
    			apiErr.Bucket = params[0]
    		}
    		if len(params) >= 2 {
    			apiErr.Object = decodeDirObject(params[1])
    		}
    		return apiErr
    	case errIsNotRegular.Error():
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. cmd/erasure-metadata_test.go

    		partNumString := strconv.Itoa(testCase.partNum)
    		fi.AddObjectPart(testCase.partNum, "etag."+partNumString, int64(testCase.partNum+humanize.MiByte), ActualSize, UTCNow(), nil, nil)
    	}
    
    	// Add failure test case.
    	testCases = append(testCases, struct {
    		partNum       int
    		expectedIndex int
    	}{6, -1})
    
    	// Test them.
    	for _, testCase := range testCases {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  10. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		Aliases: []string{"certificates", "certs", "cert"},
    		Args:    common.validateArgs,
    		RunE: runConfigDump(ctx, common, func(cw *ztunnelDump.ConfigWriter) error {
    			switch common.outputFormat {
    			case summaryOutput:
    				return cw.PrintSecretSummary()
    			case jsonOutput, yamlOutput:
    				return cw.PrintSecretDump(common.outputFormat)
    			default:
    				return fmt.Errorf("output format %q not supported", common.outputFormat)
    			}
    		}),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
Back to top