Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for validate (0.17 sec)

  1. cmd/object_api_suite_test.go

    	n = copy(p, r.data)
    	r.eof = true
    	return n, nil
    }
    
    // Wrapper for calling testMakeBucket for both Erasure and FS.
    func TestMakeBucket(t *testing.T) {
    	ExecObjectLayerTest(t, testMakeBucket)
    }
    
    // Tests validate bucket creation.
    func testMakeBucket(obj ObjectLayer, instanceType string, t TestErrHandler) {
    	err := obj.MakeBucket(context.Background(), "bucket-unknown", MakeBucketOptions{})
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  2. internal/jwt/parser.go

    			jwtgo.ValidationErrorClaimsInvalid)
    	}
    
    	// Signature is valid, lets validate the claims for
    	// other fields such as expiry etc.
    	return claims.Valid()
    }
    
    // ParseUnverifiedStandardClaims - WARNING: Don't use this method unless you know what you're doing
    //
    // This method parses the token but doesn't validate the signature. It's only
    // ever useful in cases where you know the signature is valid (because it has
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  3. cmd/auth-handler.go

    	claims := xjwt.NewMapClaims()
    	return claims.Map(), ErrNone
    }
    
    // Check request auth type verifies the incoming http request
    //   - validates the request signature
    //   - validates the policy action if anonymous tests bucket policies if any,
    //     for authenticated requests validates IAM policies.
    //
    // returns APIErrorCode if any to be replied to the client.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  4. internal/s3select/select.go

    	// End is the offset of the last byte that should be returned when Start
    	// is set, otherwise it is the offset from EOF to start reading.
    	End *uint64 `xml:"End"`
    }
    
    // Validate if the scan range is valid.
    func (s *ScanRange) Validate() error {
    	if s == nil {
    		return nil
    	}
    	if s.Start == nil && s.End == nil {
    		// This parameter is optional, but when specified, it must not be empty.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  5. internal/event/target/kafka.go

    	} `json:"sasl"`
    	Producer struct {
    		Compression      string `json:"compression"`
    		CompressionLevel int    `json:"compressionLevel"`
    	} `json:"producer"`
    }
    
    // Validate KafkaArgs fields
    func (k KafkaArgs) Validate() error {
    	if !k.Enable {
    		return nil
    	}
    	if len(k.Brokers) == 0 {
    		return errors.New("no broker address found")
    	}
    	for _, b := range k.Brokers {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 13K bytes
    - Viewed (0)
  6. internal/event/target/nats.go

    		Async              bool   `json:"async"`
    		MaxPubAcksInflight int    `json:"maxPubAcksInflight"`
    	} `json:"streaming"`
    
    	RootCAs *x509.CertPool `json:"-"`
    }
    
    // Validate NATSArgs fields
    func (n NATSArgs) Validate() error {
    	if !n.Enable {
    		return nil
    	}
    
    	if n.Address.IsEmpty() {
    		return errors.New("empty address")
    	}
    
    	if n.Subject == "" {
    		return errors.New("empty subject")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 18:11:55 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  7. cmd/batch-rotate.go

    	}
    	if err := r.Encryption.Validate(); err != nil {
    		return err
    	}
    
    	for _, tag := range r.Flags.Filter.Tags {
    		if err := tag.Validate(); err != nil {
    			return err
    		}
    	}
    
    	for _, meta := range r.Flags.Filter.Metadata {
    		if err := meta.Validate(); err != nil {
    			return err
    		}
    	}
    
    	if err := r.Flags.Retry.Validate(); err != nil {
    		return err
    	}
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  8. cmd/batch-expire.go

    		}
    	}
    
    	for _, tag := range ef.Tags {
    		if err := tag.Validate(); err != nil {
    			return err
    		}
    	}
    
    	for _, meta := range ef.Metadata {
    		if err := meta.Validate(); err != nil {
    			return err
    		}
    	}
    	if err := ef.Purge.Validate(); err != nil {
    		return err
    	}
    	if err := ef.Size.Validate(); err != nil {
    		return err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  9. internal/config/identity/openid/openid.go

    				enabled = false
    			}
    		}
    
    		// No need to continue loading if the config is not enabled.
    		if !enabled {
    			continue
    		}
    
    		// Validate that client ID has not been duplicately specified.
    		if seenClientIDs.Contains(p.ClientID) {
    			return c, config.Errorf("Client ID %s is present with multiple OpenID configurations", p.ClientID)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  10. cmd/globals.go

    	// Contains NIC interface name used for internode communication
    	globalInternodeInterface     string
    	globalInternodeInterfaceOnce sync.Once
    
    	// Set last client perf extra time (get lock, and validate)
    	globalLastClientPerfExtraTime int64
    
    	// Captures all batch jobs metrics globally
    	globalBatchJobsMetrics batchJobMetrics
    
    	// Indicates if server was started as `--address ":0"`
    	globalDynamicAPIPort bool
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
Back to top