Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for NoError (0.18 sec)

  1. cmd/admin-handlers.go

    				// Send whitespace and keep connection open
    				if _, err := w.Write([]byte(" ")); err != nil {
    					return
    				}
    				w.(http.Flusher).Flush()
    			case hr := <-respCh:
    				switch hr.apiErr {
    				case noError:
    					if started {
    						if _, err := w.Write(hr.respBytes); err != nil {
    							return
    						}
    						w.(http.Flusher).Flush()
    					} else {
    						writeSuccessResponseJSON(w, hr.respBytes)
    					}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  2. cmd/bucket-replication-handlers.go

    		apiErr.Description = err.Error()
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    	sameTarget, apiErr := validateReplicationDestination(ctx, bucket, replicationConfig, true)
    	if apiErr != noError {
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    	// Validate the received bucket replication config
    	if err = replicationConfig.Validate(bucket, sameTarget); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Oct 28 04:08:53 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  3. cmd/admin-heal-ops.go

    		ClientToken:   clientToken,
    		ClientAddress: h.clientAddress,
    		StartTime:     h.startTime,
    	})
    	if err != nil {
    		bugLogIf(h.ctx, err)
    		return nil, toAdminAPIErr(h.ctx, err), ""
    	}
    	return b, noError, ""
    }
    
    // PopHealStatusJSON - Called by heal-status API. It fetches the heal
    // status results from global state and returns its JSON
    // representation. The clientToken helps ensure there aren't
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  4. cmd/admin-handler-utils.go

    	Message    string
    	StatusCode int
    }
    
    func (ae AdminError) Error() string {
    	return ae.Message
    }
    
    func toAdminAPIErr(ctx context.Context, err error) APIError {
    	if err == nil {
    		return noError
    	}
    
    	var apiErr APIError
    	switch e := err.(type) {
    	case policy.Error:
    		apiErr = APIError{
    			Code:           "XMinioMalformedIAMPolicy",
    			Description:    e.Error(),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    	}
    	if toStorageErr(nil) != nil {
    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toStorageErr(nil))
    	}
    	ctx := context.Background()
    	if toAPIError(ctx, nil) != noError {
    		t.Errorf("Test expected error code to be ErrNone, failed instead provided %s", toAPIError(ctx, nil).Code)
    	}
    }
    
    // Uploads an object using DummyDataGen directly via the http
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    		if err != nil {
    			return err
    		}
    		sameTarget, apiErr := validateReplicationDestination(ctx, bucket, newReplicationConfig, true)
    		if apiErr != noError {
    			return fmt.Errorf("bucket replication config validation error: %#v", apiErr)
    		}
    		err = newReplicationConfig.Validate(bucket, sameTarget)
    		if err != nil {
    			return err
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
  7. docs/metrics/prometheus/list.md

    | `minio_node_drive_errors_timeout`      | Total number of drive timeout errors since server start             |
    | `minio_node_drive_errors_ioerror`      | Total number of drive I/O errors since server start                 |
    | `minio_node_drive_errors_availability` | Total number of drive I/O errors, timeouts since server start       |
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 43.4K bytes
    - Viewed (2)
  8. cmd/api-errors.go

    		}
    	}
    
    	return apiErr
    }
    
    var noError = APIError{}
    
    // toAPIError - Converts embedded errors. Convenience
    // function written to handle all cases where we have known types of
    // errors returned by underlying layers.
    func toAPIError(ctx context.Context, err error) APIError {
    	if err == nil {
    		return noError
    	}
    
    	apiErr := errorCodes.ToAPIErr(toAPIErrorCode(ctx, err))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
  9. cmd/metrics-v2.go

    		Type:      counterMetric,
    	}
    }
    
    func getNodeDriveIOErrorsMD() MetricDescription {
    	return MetricDescription{
    		Namespace: nodeMetricNamespace,
    		Subsystem: driveSubsystem,
    		Name:      "errors_ioerror",
    		Help:      "Total number of drive I/O errors since server start",
    		Type:      counterMetric,
    	}
    }
    
    func getNodeDriveAvailabilityErrorsMD() MetricDescription {
    	return MetricDescription{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
Back to top