Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 191 for bucketOf (0.1 sec)

  1. cmd/admin-handlers-site-replication.go

    }
    
    // SRPeerBucketOps - PUT /minio/admin/v3/site-replication/bucket-ops?bucket=x&operation=y
    func (a adminAPIHandlers) SRPeerBucketOps(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.SiteReplicationOperationAction)
    	if objectAPI == nil {
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    	operation := madmin.BktOp(vars["operation"])
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/Hashing.java

       */
      public static int consistentHash(long input, int buckets) {
        checkArgument(buckets > 0, "buckets must be positive: %s", buckets);
        LinearCongruentialGenerator generator = new LinearCongruentialGenerator(input);
        int candidate = 0;
        int next;
    
        // Jump from bucket to bucket until we go out of range
        while (true) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 09 00:37:15 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  3. cmd/object-api-interface.go

    	// Bucket operations.
    	MakeBucket(ctx context.Context, bucket string, opts MakeBucketOptions) error
    	GetBucketInfo(ctx context.Context, bucket string, opts BucketOptions) (bucketInfo BucketInfo, err error)
    	ListBuckets(ctx context.Context, opts BucketOptions) (buckets []BucketInfo, err error)
    	DeleteBucket(ctx context.Context, bucket string, opts DeleteBucketOptions) error
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. cmd/metrics.go

    		return
    	}
    
    	for bucket, usageInfo := range dataUsageInfo.BucketsUsage {
    		stat := globalReplicationStats.getLatestReplicationStats(bucket)
    		// Total space used by bucket
    		ch <- prometheus.MustNewConstMetric(
    			prometheus.NewDesc(
    				prometheus.BuildFQName(bucketNamespace, "usage", "size"),
    				"Total bucket size",
    				[]string{"bucket"}, nil),
    			prometheus.GaugeValue,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. cmd/admin-handlers-users_test.go

    	// Check that the service account can access the public bucket.
    	buckets, err := svcClient.ListBuckets(ctx)
    	if err != nil {
    		c.Fatalf("err fetching buckets %s", err)
    	}
    	if len(buckets) != 1 || buckets[0].Name != "public" {
    		c.Fatalf("service account should only have access to public bucket")
    	}
    
    	// Create an madmin client with the service account creds.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  6. pkg/kubelet/metrics/metrics.go

    	// including the time spent in the waiting queue of image puller.
    	// The metric is broken down by bucketed image size.
    	ImagePullDuration = metrics.NewHistogramVec(
    		&metrics.HistogramOpts{
    			Subsystem:      KubeletSubsystem,
    			Name:           ImagePullDurationKey,
    			Help:           "Duration in seconds to pull an image.",
    			Buckets:        imagePullDurationBuckets,
    			StabilityLevel: metrics.ALPHA,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 15:13:25 UTC 2024
    - 45.6K bytes
    - Viewed (0)
  7. cmd/erasure-healing.go

    		dirQuorum: 1,
    		objQuorum: 1,
    		bucket:    bucket,
    		strict:    false, // Allow less strict matching.
    	}
    
    	path := baseDirFromPrefix(prefix)
    	filterPrefix := strings.Trim(strings.TrimPrefix(prefix, path), slashSeparator)
    	if path == prefix {
    		filterPrefix = ""
    	}
    
    	lopts := listPathRawOptions{
    		disks:          disks,
    		fallbackDisks:  fallbackDisks,
    		bucket:         bucket,
    		path:           path,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.8K bytes
    - Viewed (0)
  8. cmd/data-usage-cache.go

    		return nil
    	}
    	return dst
    }
    
    // bucketsUsageInfo returns the buckets usage info as a map, with
    // key as bucket name
    func (d *dataUsageCache) bucketsUsageInfo(buckets []BucketInfo) map[string]BucketUsageInfo {
    	dst := make(map[string]BucketUsageInfo, len(buckets))
    	for _, bucket := range buckets {
    		e := d.find(bucket.Name)
    		if e == nil {
    			continue
    		}
    		flat := d.flatten(*e)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 10 14:49:50 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  9. cmd/post-policy_test.go

    func newPostPolicyBytesV4(credential, bucketName, objectKey string, expiration time.Time) []byte {
    	t := UTCNow()
    	// Add the expiration date.
    	expirationStr := fmt.Sprintf(`"expiration": "%s"`, expiration.Format(iso8601TimeFormat))
    	// Add the bucket condition, only accept buckets equal to the one passed.
    	bucketConditionStr := fmt.Sprintf(`["eq", "$bucket", "%s"]`, bucketName)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  10. cmd/metacache-server-pool.go

    		fi, err := obj.fileInfo(o.Bucket)
    		if err != nil {
    			return
    		}
    		objInfo := fi.ToObjectInfo(o.Bucket, obj.name, versioned)
    		if o.Lifecycle != nil {
    			act := evalActionFromLifecycle(ctx, *o.Lifecycle, o.Retention, o.Replication.Config, objInfo).Action
    			skip = act.Delete() && !act.DeleteRestored()
    		}
    	}
    
    	fiv, err := obj.fileInfoVersions(o.Bucket)
    	if err != nil {
    		return
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:23 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top