Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for generateListBucketsResponse (0.11 sec)

  1. cmd/api-response.go

    			break
    		}
    	}
    	return u.String()
    }
    
    // generates ListBucketsResponse from array of BucketInfo which can be
    // serialized to match XML and JSON API spec output.
    func generateListBucketsResponse(buckets []BucketInfo) ListBucketsResponse {
    	listbuckets := make([]Bucket, 0, len(buckets))
    	data := ListBucketsResponse{}
    	owner := Owner{
    		ID:          globalMinioDefaultOwnerID,
    		DisplayName: "minio",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		if len(bucketsInfo) == 0 {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    			return
    		}
    	}
    
    	// Generate response.
    	response := generateListBucketsResponse(bucketsInfo)
    	encodedSuccessResponse := encodeResponse(response)
    
    	// Write response.
    	writeSuccessResponseXML(w, encodedSuccessResponse)
    }
    
    // DeleteMultipleObjectsHandler - deletes multiple objects.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
Back to top