Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NextPage (0.15 sec)

  1. cmd/warm-backend-gcs.go

    		Delimiter: "/",
    		Prefix:    gcs.Prefix,
    		Versions:  false,
    	})
    	pager := iterator.NewPager(it, 1, "")
    	gcsObjects := make([]*storage.ObjectAttrs, 0)
    	_, err := pager.NextPage(&gcsObjects)
    	if err != nil {
    		return false, gcsToObjectError(err, gcs.Bucket, gcs.Prefix)
    	}
    	if len(gcsObjects) > 0 {
    		return true, nil
    	}
    	return false, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. cmd/warm-backend-azure.go

    	pager := az.clnt.NewListBlobsFlatPager(az.Bucket, &azblob.ListBlobsFlatOptions{
    		Prefix:     &az.Prefix,
    		MaxResults: &maxResults,
    	})
    	if !pager.More() {
    		return false, nil
    	}
    
    	resp, err := pager.NextPage(ctx)
    	if err != nil {
    		if strings.Contains(err.Error(), "no more pages") {
    			return false, nil
    		}
    		return false, azureToObjectError(err, az.Bucket, az.Prefix)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top