Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for cloneMSS (0.06 sec)

  1. cmd/metrics-resource.go

    		Value:          rm.Current,
    		VariableLabels: cloneMSS(rm.Labels),
    	})
    
    	if requireAvgMax {
    		avgName := MetricName(fmt.Sprintf("%s_avg", name))
    		avgHelp := fmt.Sprintf("%s (avg)", help)
    		metrics = append(metrics, MetricV2{
    			Description:    getResourceMetricDescription(subSys, avgName, avgHelp),
    			Value:          math.Round(rm.Avg*100) / 100,
    			VariableLabels: cloneMSS(rm.Labels),
    		})
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 23:30:33 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. cmd/erasure-multipart.go

    			return nil, PreConditionFailed{}
    		}
    		if err != nil && !isErrVersionNotFound(err) && !isErrObjectNotFound(err) && !isErrReadQuorum(err) {
    			return nil, err
    		}
    	}
    
    	userDefined := cloneMSS(opts.UserDefined)
    	if opts.PreserveETag != "" {
    		userDefined["etag"] = opts.PreserveETag
    	}
    	onlineDisks := er.getDisks()
    
    	// Get parity and data drive count based on storage class metadata
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  3. cmd/utils.go

    }
    
    func path2BucketObject(s string) (bucket, prefix string) {
    	return path2BucketObjectWithBasePath("", s)
    }
    
    // cloneMSS will clone a map[string]string.
    // If input is nil an empty map is returned, not nil.
    func cloneMSS(v map[string]string) map[string]string {
    	r := make(map[string]string, len(v))
    	for k, v := range v {
    		r[k] = v
    	}
    	return r
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  4. cmd/bucket-replication-utils.go

    	return Pending
    }
    
    // getHealReplicateObjectInfo returns info needed by heal replication in ReplicateObjectInfo
    func getHealReplicateObjectInfo(oi ObjectInfo, rcfg replicationConfig) ReplicateObjectInfo {
    	userDefined := cloneMSS(oi.UserDefined)
    	if rcfg.Config != nil && rcfg.Config.RoleArn != "" {
    		// For backward compatibility of objects pending/failed replication.
    		// Save replication related statuses in the new internal representation for
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. cmd/api-response.go

    		})
    	}
    
    	data.Owner = owner
    	data.Buckets.Buckets = listbuckets
    
    	return data
    }
    
    func cleanReservedKeys(metadata map[string]string) map[string]string {
    	m := cloneMSS(metadata)
    
    	switch kind, _ := crypto.IsEncrypted(metadata); kind {
    	case crypto.S3:
    		m[xhttp.AmzServerSideEncryption] = xhttp.AmzEncryptionAES
    	case crypto.S3KMS:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  6. cmd/bucket-replication.go

    }
    
    func getMustReplicateOptions(userDefined map[string]string, userTags string, status replication.StatusType, op replication.Type, opts ObjectOptions) mustReplicateOptions {
    	meta := cloneMSS(userDefined)
    	if userTags != "" {
    		meta[xhttp.AmzObjectTagging] = userTags
    	}
    
    	return mustReplicateOptions{
    		meta:               meta,
    		status:             status,
    		opType:             op,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    			srcInfo.Size, "", "", opts)
    		if rerr != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, rerr), r.URL)
    			return
    		}
    		objInfo.UserDefined = cloneMSS(opts.UserMetadata)
    		objInfo.ETag = remoteObjInfo.ETag
    		objInfo.ModTime = remoteObjInfo.LastModified
    	} else {
    		os = newObjSweeper(dstBucket, dstObject).WithVersioning(dstOpts.Versioned, dstOpts.VersionSuspended)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  8. cmd/erasure-object.go

    	if data.Size() < -1 {
    		bugLogIf(ctx, errInvalidArgument, logger.ErrorKind)
    		return ObjectInfo{}, toObjectErr(errInvalidArgument)
    	}
    
    	userDefined := cloneMSS(opts.UserDefined)
    
    	storageDisks := er.getDisks()
    
    	// Get parity and data drive count based on storage class metadata
    	parityDrives := globalStorageClass.GetParityForSC(userDefined[xhttp.AmzStorageClass])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top