Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 305 for Rule (0.18 sec)

  1. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

            given:
            def rule = withContext(ruleElem)
            def annotations = []
            jApiConstructor.annotations >> annotations
    
            when:
            annotations.clear()
    
            then:
            rule.maybeViolation(jApiConstructor).humanExplanation =~ error
    
            when:
            annotations.add(injectAnnotation)
    
            then:
            rule.maybeViolation(jApiConstructor) == null
    
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Dec 01 20:12:19 GMT 2023
    - 16K bytes
    - Viewed (0)
  2. 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)
  3. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

            while (!source.exhausted()) {
              var rule: ByteString = source.readUtf8LineStrict().toRule() ?: continue
    
              if (rule.startsWith(EXCEPTION_RULE_MARKER)) {
                rule = rule.substring(1)
                // We use '\n' for end of value.
                totalExceptionRuleBytes += rule.size + 1
                sortedExceptionRules.add(rule)
              } else {
                totalRuleBytes += rule.size + 1 // We use '\n' for end of value.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

        val rule = findMatchingRule(domainLabels)
        if (domainLabels.size == rule.size && rule[0][0] != EXCEPTION_MARKER) {
          return null // The domain is a public suffix.
        }
    
        val firstLabelOffset =
          if (rule[0][0] == EXCEPTION_MARKER) {
            // Exception rules hold the effective TLD plus one.
            domainLabels.size - rule.size
          } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  5. 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)
  6. build-logic-commons/code-quality-rules/src/main/resources/codenarc/codenarc-integtests.xml

            <rule-config name='ClassName'>
                <property name='regex' value='^[A-Z][\$a-zA-Z0-9]*$'/>
            </rule-config>
            <rule-config name='FieldName'>
                <property name='finalRegex' value='^[a-z][a-zA-Z0-9]*$'/>
                <property name='staticFinalRegex' value='^logger$|^[A-Z][A-Z_0-9]*$|^serialVersionUID$'/>
            </rule-config>
            <rule-config name='MethodName'>
    XML
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  7. internal/bucket/replication/replication.go

    	if len(c.Rules) == 0 {
    		return false
    	}
    	for _, rule := range c.Rules {
    		if rule.Status == Disabled {
    			continue
    		}
    		if len(prefix) > 0 && len(rule.Filter.Prefix) > 0 {
    			// incoming prefix must be in rule prefix
    			if !recursive && !strings.HasPrefix(prefix, rule.Filter.Prefix) {
    				continue
    			}
    			// If recursive, we can skip this rule if it doesn't match the tested prefix or level below prefix
    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)
  8. 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)
  9. docs/bucket/lifecycle/README.md

                "NoncurrentVersionExpiration": {
                    "NoncurrentDays": 365
                },
                "Status": "Enabled"
            }
        ]
    }
    ```
    
    This JSON rule is equivalent to the following MinIO Client command:
    ```
    mc ilm rule add --noncurrent-expire-days 365 --prefix "user-uploads/" myminio/mydata
    ```
    
    ### 3.2 Automatic removal of noncurrent versions keeping only most recent ones after noncurrent days
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Aug 26 07:33:25 GMT 2023
    - 9K bytes
    - Viewed (1)
  10. internal/bucket/lifecycle/lifecycle.go

    			// we can skip this rule if it doesn't match the tested
    			// prefix.
    			if !strings.HasPrefix(prefix, rule.GetPrefix()) && !strings.HasPrefix(rule.GetPrefix(), prefix) {
    				continue
    			}
    		}
    
    		if rule.NoncurrentVersionExpiration.NoncurrentDays > 0 {
    			return true
    		}
    		if rule.NoncurrentVersionExpiration.NewerNoncurrentVersions > 0 {
    			return true
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top