Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for generateListObjectsV1Response (0.19 sec)

  1. cmd/bucket-listobjects-handlers.go

    		return
    	}
    
    	if err = DecryptETags(ctx, GlobalKMS, listObjectsInfo.Objects); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	response := generateListObjectsV1Response(ctx, bucket, prefix, marker, delimiter, encodingType, maxKeys, listObjectsInfo)
    
    	// Write success response.
    	writeSuccessResponseXML(w, encodeResponseList(response))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. cmd/api-response.go

    		prefixes = append(prefixes, prefixItem)
    	}
    	data.CommonPrefixes = prefixes
    	return data
    }
    
    // generates an ListObjectsV1 response for the said bucket with other enumerated options.
    func generateListObjectsV1Response(ctx context.Context, bucket, prefix, marker, delimiter, encodingType string, maxKeys int, resp ListObjectsInfo) ListObjectsResponse {
    	contents := make([]Object, 0, len(resp.Objects))
    	owner := &Owner{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top