func (client *Client) ListObjectsWithContext(ctx context.Context, request *ListObjectsRequest) (*ObjectListing, error) {
	result := &ObjectListing{}
	req := &clientRequest{
		BucketName:         request.BucketName,
		Method:             HTTPGet,
		QueryHeaderOptions: request,
		Result:             result,
	}

	resp, err := client.do(ctx, req)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()

	return result, err
}
// ListObjectsWithContext list all objects with Prefix and Delimiter with context controlling
ListObjectsWithContext list all objects with Prefix and Delimiter with context controlling
// ListObjectsWithContext list all objects with Prefix and Delimiter with context controlling
func (client *Client) ListObjectsWithContext(ctx context.Context, request *ListObjectsRequest) (*ObjectListing, error) {
	result := &ObjectListing{}
	req := &clientRequest{
		BucketName:         request.BucketName,
		Method:             HTTPGet,
		QueryHeaderOptions: request,
		Result:             result,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	return result, err
}
func ( client * Client ) ListObjectsWithContext ( ctx context . Context , request * ListObjectsRequest ) ( * ObjectListing , error ) { result := & ObjectListing { } req := & clientRequest { BucketName : request . BucketName , Method : HTTPGet , QueryHeaderOptions : request , Result : result , } resp , err := client . do ( ctx , req ) if err != nil { return nil , err } defer resp . Body . Close ( ) return result , err }
ListObjectsWithContext list all objects with Prefix and Delimiter with context controlling
ListObjectsWithContext list all objects with Prefix and Delimiter with context controlling