Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 26 for userFlags (0.37 seconds)

  1. cmd/object-api-datatypes_gen.go

    				if err != nil {
    					err = msgp.WrapError(err, "UserDefined", za0001)
    					return
    				}
    				z.UserDefined[za0001] = za0002
    			}
    		case "UserTags":
    			z.UserTags, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "UserTags")
    				return
    			}
    		case "Parts":
    			var zb0003 uint32
    			zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts)
    			if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 71.7K bytes
    - Click Count (0)
  2. internal/bucket/lifecycle/filter.go

    		}
    	}
    	return err
    }
    
    // TestTags tests if the object tags satisfy the Filter tags requirement,
    // it returns true if there is no tags in the underlying Filter.
    func (f Filter) TestTags(userTags string) bool {
    	if f.cachedTags == nil {
    		cache := make(map[string]string)
    		for _, t := range append(f.And.Tags, f.Tag) {
    			if !t.IsEmpty() {
    				cache[t.Key] = t.Value
    			}
    		}
    		f.cachedTags = cache
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Sep 04 17:01:26 GMT 2024
    - 6.2K bytes
    - Click Count (0)
  3. cmd/post-policy-fan-out.go

    					errs[idx] = err
    				}
    			}()
    
    			userDefined := make(map[string]string, len(req.UserMetadata))
    			maps.Copy(userDefined, req.UserMetadata)
    
    			tgs, err := tags.NewTags(req.UserTags, true)
    			if err != nil {
    				errs[idx] = err
    				return
    			}
    
    			userDefined[xhttp.AmzObjectTagging] = tgs.String()
    
    			if opts.Kind != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  4. internal/bucket/lifecycle/evaluator_test.go

    	for i := range tagKeys {
    		obj := ObjectOpts{
    			Name:        "obj",
    			VersionID:   verIDs[i],
    			ModTime:     curModTime.Add(time.Duration(-i) * time.Second),
    			UserTags:    fmt.Sprintf("%s=minio", tagKeys[i]),
    			NumVersions: len(verIDs),
    		}
    		if i == 0 {
    			obj.IsLatest = true
    		} else {
    			obj.SuccessorModTime = curModTime.Add(time.Duration(-i+1) * time.Second)
    		}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Apr 08 15:41:24 GMT 2025
    - 5K bytes
    - Click Count (0)
  5. internal/bucket/lifecycle/lifecycle.go

    	var rules []Rule
    	for _, rule := range lc.Rules {
    		if rule.Status == Disabled {
    			continue
    		}
    		if !strings.HasPrefix(obj.Name, rule.GetPrefix()) {
    			continue
    		}
    		if !rule.Filter.TestTags(obj.UserTags) {
    			continue
    		}
    		if !obj.DeleteMarker && !rule.Filter.BySize(obj.Size) {
    			continue
    		}
    		rules = append(rules, rule)
    	}
    	return rules
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Apr 03 06:45:06 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  6. cmd/bucket-replication-utils.go

    		TargetStatuses:       tgtStatuses,
    		TargetPurgeStatuses:  purgeStatuses,
    		ReplicationTimestamp: tm,
    		SSEC:                 crypto.SSEC.IsEncrypted(oi.UserDefined),
    		UserTags:             oi.UserTags,
    	}
    	if r.SSEC {
    		r.Checksum = oi.Checksum
    	}
    	return r
    }
    
    // ReplicationState - returns replication state using other internal replication metadata in ObjectInfo
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 26.1K bytes
    - Click Count (0)
  7. cmd/bucket-lifecycle.go

    			VersionSuspended: globalBucketVersioningSys.PrefixSuspended(bucket, object),
    			UserDefined:      meta,
    		}
    	}
    	maps.Copy(meta, objInfo.UserDefined)
    	if len(objInfo.UserTags) != 0 {
    		meta[xhttp.AmzObjectTagging] = objInfo.UserTags
    	}
    	// Set restore object status
    	restoreExpiry := lifecycle.ExpectedExpiryTime(time.Now().UTC(), rreq.Days)
    	meta[xhttp.AmzRestore] = completedRestoreObj(restoreExpiry).String()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 33.7K bytes
    - Click Count (0)
  8. cmd/batch-handlers.go

    			// skip all objects that are created after the specified time.
    			return true
    		}
    
    		if hasTags {
    			// Only parse object tags if tags filter is specified.
    			tagMap := map[string]string{}
    			tagStr := oi.UserTags
    			if len(tagStr) != 0 {
    				t, err := tags.ParseObjectTags(tagStr)
    				if err != nil {
    					return false
    				}
    				tagMap = t.ToMap()
    			}
    			for _, kv := range r.Flags.Filter.Tags {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 63.5K bytes
    - Click Count (1)
  9. cmd/data-scanner_test.go

    	var replWants []ObjectInfo
    	replWants = append(replWants, replObjInfos[:3]...)
    	replWants = append(replWants, replObjInfos[4])
    
    	allVersExpObjInfos := slices.Clone(objInfos)
    	allVersExpObjInfos[0].UserTags = "del-all=true"
    
    	replCfg := replication.Config{
    		Rules: []replication.Rule{
    			{
    				ID:       "",
    				Status:   "Enabled",
    				Priority: 1,
    				Destination: replication.Destination{
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12K bytes
    - Click Count (0)
  10. cmd/object-handlers.go

    				})
    				return
    			}
    		}
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if userTags := oi.UserTags; userTags != "" {
    		// Set this such that authorization policies can be applied on the object tags.
    		r.Header.Set(xhttp.AmzObjectTagging, oi.UserTags)
    	}
    
    	// Allow deleteObjectTagging if policy action is set
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 120.6K bytes
    - Click Count (0)
Back to Top