Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 564 for rule2 (0.13 sec)

  1. internal/bucket/lifecycle/lifecycle_test.go

    					rules[5],
    				},
    			},
    			opts: ObjectOpts{
    				IsLatest: true,
    				UserTags: "key1=val1",
    				Name:     "obj-1",
    				Size:     1*humanize.MiByte - 1,
    			},
    			hasRules: true,
    		},
    		{ // PUT version with size based filters
    			lc: Lifecycle{
    				Rules: []Rule{
    					rules[1],
    					rules[2],
    					rules[3],
    					rules[4],
    					rules[5],
    				},
    			},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  2. internal/event/rules.go

    		rulesCopy[pattern] = targetIDSet.Clone()
    	}
    
    	return rulesCopy
    }
    
    // Union - returns union with given rules as new rules.
    func (rules Rules) Union(rules2 Rules) Rules {
    	nrules := rules.Clone()
    
    	for pattern, targetIDSet := range rules2 {
    		nrules[pattern] = nrules[pattern].Union(targetIDSet)
    	}
    
    	return nrules
    }
    
    // Difference - returns difference with given rules as new rules.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/rule.go

    	}
    	if !r.Prefix.set {
    		return r.Filter.Validate()
    	}
    	return nil
    }
    
    func (r Rule) validateTransition() error {
    	return r.Transition.Validate()
    }
    
    func (r Rule) validateNoncurrentTransition() error {
    	return r.NoncurrentVersionTransition.Validate()
    }
    
    // GetPrefix - a rule can either have prefix under <rule></rule>, <filter></filter>
    // or under <filter><and></and></filter>. This method returns the prefix from the
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. internal/event/rules_test.go

    	rulesCase2 := make(Rules)
    	rules2Case2 := make(Rules)
    	rules2Case2.Add(NewPattern("*", ""), TargetID{"1", "webhook"})
    	expectedResultCase2 := make(Rules)
    	expectedResultCase2.Add(NewPattern("*", ""), TargetID{"1", "webhook"})
    
    	rulesCase3 := make(Rules)
    	rulesCase3.Add(NewPattern("", "*"), TargetID{"1", "webhook"})
    	rules2Case3 := make(Rules)
    	expectedResultCase3 := make(Rules)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 8.8K bytes
    - Viewed (0)
  5. internal/bucket/replication/rule.go

    		return err
    	}
    	if len(erep.Status) == 0 {
    		erep.Status = Disabled
    	}
    	e.Status = erep.Status
    	return nil
    }
    
    // Rule - a rule for replication configuration.
    type Rule struct {
    	XMLName                 xml.Name                `xml:"Rule" json:"Rule"`
    	ID                      string                  `xml:"ID,omitempty" json:"ID,omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 24 23:22:20 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  6. internal/bucket/replication/rule_test.go

    	testCases := []struct {
    		inputConfig    string
    		opts           ObjectOpts
    		expectedResult bool
    	}{
    		// case 1 - rule with replica modification enabled; not a replica
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.6K bytes
    - Viewed (0)
  7. android-test-app/proguard-rules.pro

    # no rules should be needed...
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 14:46:51 GMT 2023
    - 28 bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/rule_test.go

                                  <Status></Status>
    	                    </Rule>`,
    			expectedErr: errEmptyRuleStatus,
    		},
    		{ // Rule with invalid status
    			inputXML: ` <Rule>
    			                  <ID>rule with invalid status</ID>
                                  <Status>OK</Status>
    	                    </Rule>`,
    			expectedErr: errInvalidRuleStatus,
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. internal/bucket/replication/replication_test.go

    		{ObjectOpts{Name: "xyz/c3test", DeleteMarker: true, OpType: DeleteReplicationType}, cfgs[2], true},                                      // 24. matches rule 2 - DeleteMarker replication allowed by rule
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  10. internal/bucket/replication/replication.go

    			continue
    		}
    		if rule.Filter.TestTags(obj.UserTags) {
    			rules = append(rules, rule)
    		}
    	}
    	sort.Slice(rules, func(i, j int) bool {
    		return rules[i].Priority > rules[j].Priority && rules[i].Destination.String() == rules[j].Destination.String()
    	})
    
    	return rules
    }
    
    // GetDestination returns destination bucket and storage class.
    func (c Config) GetDestination() Destination {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top