Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for Rule (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. cni/pkg/plugin/sidecar_intercept_rule_mgr.go

    Ben Leggett <******@****.***> 1707525115 -0500
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 940 bytes
    - Viewed (0)
  6. cmd/bucket-lifecycle-handlers_test.go

    		shouldPass         bool
    	}{
    		// Test case - 1.
    		// Filter contains more than (Prefix,Tag,And) rule
    		{
    			method:             http.MethodPut,
    			bucketName:         bucketName,
    			accessKey:          creds.AccessKey,
    			secretKey:          creds.SecretKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  7. internal/bucket/encryption/bucket-sse-config_test.go

    		{
    			inputXML:    `<ServerSideEncryptionConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Rule><ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm></ApplyServerSideEncryptionByDefault></Rule><Rule><ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm></ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>`,
    			expectedErr: errors.New("only one server-side encryption rule is allowed at a time"),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 16 18:28:30 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  8. cmd/site-replication.go

    				}
    				for _, rule := range meta.lifecycleConfig.Rules {
    					if !rule.Expiration.IsNull() || !rule.NoncurrentVersionExpiration.IsNull() {
    						// copy the non transition details of the rule
    						ruleData, err := xml.Marshal(rule.CloneNonTransition())
    						if err != nil {
    							return info, errSRBackendIssue(err)
    						}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  9. internal/event/config.go

    	type filterRule FilterRule
    	rule := filterRule{}
    	if err := d.DecodeElement(&rule, &start); err != nil {
    		return err
    	}
    
    	if rule.Name != "prefix" && rule.Name != "suffix" {
    		return &ErrInvalidFilterName{rule.Name}
    	}
    
    	if err := ValidateFilterRuleValue(filter.Value); err != nil {
    		return err
    	}
    
    	*filter = FilterRule(rule)
    
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  10. internal/bucket/encryption/bucket-sse-config.go

    	}
    
    	// Validates server-side encryption config rules
    	// Only one rule is allowed on AWS S3
    	if len(config.Rules) != 1 {
    		return nil, errors.New("only one server-side encryption rule is allowed at a time")
    	}
    
    	for _, rule := range config.Rules {
    		switch rule.DefaultEncryptionAction.Algorithm {
    		case AES256:
    			if rule.DefaultEncryptionAction.MasterKeyID != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 4.9K bytes
    - Viewed (0)
Back to top