Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 33 of 33 for APIErrorCode (0.16 sec)

  1. cmd/admin-handlers.go

    	forceStart, forceStop bool
    }
    
    // extractHealInitParams - Validates params for heal init API.
    func extractHealInitParams(vars map[string]string, qParams url.Values, r io.Reader) (hip healInitParams, err APIErrorCode) {
    	hip.bucket = vars[mgmtBucket]
    	hip.objPrefix = vars[mgmtPrefix]
    
    	if hip.bucket == "" {
    		if hip.objPrefix != "" {
    			// Bucket is required if object-prefix is given
    			err = ErrHealMissingBucket
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  2. cmd/object-handlers_test.go

    	testCases := []struct {
    		objectName string
    		content    string
    		partNumber string
    		fault      Fault
    		accessKey  string
    		secretKey  string
    
    		expectedAPIError APIErrorCode
    	}{
    		// Success case.
    		0: {
    			objectName: testObject,
    			content:    "hello",
    			partNumber: "1",
    			fault:      None,
    			accessKey:  credentials.AccessKey,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    }
    
    func getSRStateFilePath() string {
    	return srStatePrefix + SlashSeparator + srStateFile
    }
    
    // SRError - wrapped error for site replication.
    type SRError struct {
    	Cause error
    	Code  APIErrorCode
    }
    
    func (c SRError) Error() string {
    	if c.Cause != nil {
    		return c.Cause.Error()
    	}
    	return "<nil>"
    }
    
    func (c SRError) Unwrap() error {
    	return c.Cause
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top