Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Marshal (0.45 sec)

  1. cmd/admin-handlers.go

    					}
    					continue
    				}
    			}
    		}
    	}
    
    	for _, pr := range peerResults {
    		updateStatus.Results = append(updateStatus.Results, pr)
    	}
    
    	// Marshal API response
    	jsonBytes, err := json.Marshal(updateStatus)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	writeSuccessResponseJSON(w, jsonBytes)
    
    	if !dryRun {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  2. cmd/site-replication.go

    	var prev *lifecycle.Rule
    	for i, r := range rules {
    		if i == 0 {
    			prev = r
    			continue
    		}
    		// Check equality of rules
    		prevRData, err := xml.Marshal(prev)
    		if err != nil {
    			return false
    		}
    		rData, err := xml.Marshal(*r)
    		if err != nil {
    			return false
    		}
    		if !(string(prevRData) == string(rData)) {
    			return false
    		}
    	}
    	return true
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  3. cmd/server_test.go

    		// Append all objects.
    		delObjReq.Objects = append(delObjReq.Objects, ObjectToDelete{
    			ObjectV: ObjectV{
    				ObjectName: objName,
    			},
    		})
    	}
    	// Marshal delete request.
    	deleteReqBytes, err := xml.Marshal(delObjReq)
    	c.Assert(err, nil)
    
    	// Delete list of objects.
    	request, err = newTestSignedRequest(http.MethodPost, getMultiDeleteObjectURL(s.endPoint, bucketName),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    		var req *http.Request
    		var completeBytes, actualContent []byte
    		// Complete multipart upload parts.
    		completeUploads := &CompleteMultipartUpload{
    			Parts: testCase.parts,
    		}
    		completeBytes, err = xml.Marshal(completeUploads)
    		if err != nil {
    			t.Fatalf("Error XML encoding of parts: <ERROR> %s.", err)
    		}
    		// Indicating that all parts are uploaded and initiating CompleteMultipartUpload.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top