Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for Validate (0.2 sec)

  1. internal/bucket/lifecycle/rule.go

    	return r.Expiration.Validate()
    }
    
    func (r Rule) validateNoncurrentExpiration() error {
    	return r.NoncurrentVersionExpiration.Validate()
    }
    
    func (r Rule) validatePrefixAndFilter() error {
    	if !r.Prefix.set && r.Filter.IsEmpty() || r.Prefix.set && !r.Filter.IsEmpty() {
    		return errXMLNotWellFormed
    	}
    	if !r.Prefix.set {
    		return r.Filter.Validate()
    	}
    	return nil
    }
    
    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)
  2. internal/config/identity/ldap/config.go

    	// this point as necessary configuration is available.
    	if !isEnableFlagExplicitlySet && !l.LDAP.Enabled {
    		l.LDAP.Enabled = true
    	}
    	// Validate and test configuration.
    	valResult := l.LDAP.Validate()
    	if !valResult.IsOk() {
    		// Set to false if configuration fails to validate.
    		l.LDAP.Enabled = false
    		return l, valResult
    	}
    
    	return l, nil
    }
    
    // GetConfigList - returns a list of LDAP configurations.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 7.9K bytes
    - Viewed (2)
  3. cmd/sts-handlers_test.go

    	}
    
    	// Validate that the client from sts creds can access the bucket.
    	c.mustListObjects(ctx, minioClient, bucket)
    
    	// Validate that a bucket can be created
    	bucket2 := getRandomBucketName()
    	err = minioClient.MakeBucket(ctx, bucket2, minio.MakeBucketOptions{})
    	if err != nil {
    		c.Fatalf("bucket creat error: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. internal/logger/target/console/console.go

    )
    
    // Target implements loggerTarget to send log
    // in plain or json format to the standard output.
    type Target struct {
    	output io.Writer
    }
    
    // Validate - validate if the tty can be written to
    func (c *Target) Validate() error {
    	return nil
    }
    
    // Endpoint returns the backend endpoint
    func (c *Target) Endpoint() string {
    	return ""
    }
    
    func (c *Target) String() string {
    	return "console"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. cmd/batch-handlers.go

    	}
    	return madmin.BatchJobType("unknown")
    }
    
    // Validate validates the current job, used by 'save()' before
    // persisting the job request
    func (j BatchJobRequest) Validate(ctx context.Context, o ObjectLayer) error {
    	switch {
    	case j.Replicate != nil:
    		return j.Replicate.Validate(ctx, j, o)
    	case j.KeyRotate != nil:
    		return j.KeyRotate.Validate(ctx, j, o)
    	case j.Expire != nil:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelValidator.java

         * file and has not been subjected to inheritance, interpolation or profile/default injection.
         *
         * @param model The model to validate, must not be {@code null}.
         * @param request The model building request that holds further settings, must not be {@code null}.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/path-operation-advanced-configuration.md

        ```
    
    !!! info
        In Pydantic version 1 the method to parse and validate an object was `Item.parse_obj()`, in Pydantic version 2, the method is called `Item.model_validate()`.
    
    !!! tip
        Here we re-use the same Pydantic model.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/lifecycle.go

    	}
    	return &lc, nil
    }
    
    // Validate - validates the lifecycle configuration
    func (lc Lifecycle) Validate() error {
    	// Lifecycle config can't have more than 1000 rules
    	if len(lc.Rules) > 1000 {
    		return errLifecycleTooManyRules
    	}
    	// Lifecycle config should have at least one rule
    	if len(lc.Rules) == 0 {
    		return errLifecycleNoRule
    	}
    
    	// Validate all the rules in the lifecycle config
    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)
  9. cmd/xl-storage_test.go

    	}
    
    	// TestXLStoragecases to validate different conditions for ReadVersion API.
    	testCases := []struct {
    		volume string
    		path   string
    		err    error
    	}{
    		// TestXLStorage case - 1.
    		// Validate volume does not exist.
    		{
    			volume: "i-dont-exist",
    			path:   "",
    			err:    errVolumeNotFound,
    		},
    		// TestXLStorage case - 2.
    		// Validate bad condition file does not exist.
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                    new CleanLifecycle(),
                    new DefaultLifecycle(),
                    new SiteLifecycle(),
                    new WrapperLifecycle());
            // validate lifecycle
            for (Lifecycle lifecycle : this) {
                Set<String> set = new HashSet<>();
                lifecycle.phases().forEach(phase -> {
                    if (!set.add(phase.name())) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top