Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 483 for Bool (0.35 sec)

  1. cmd/iam.go

    		return nil, errServerNotInitialized
    	}
    
    	select {
    	case <-sys.configLoaded:
    		var userPredicate, groupPredicate func(string) bool
    		if sys.LDAPConfig.Enabled() {
    			userPredicate = func(s string) bool {
    				return !sys.LDAPConfig.IsLDAPUserDN(s)
    			}
    			groupPredicate = func(s string) bool {
    				return !sys.LDAPConfig.IsLDAPGroupDN(s)
    			}
    		}
    		pe := sys.store.ListPolicyMappings(q, userPredicate, groupPredicate)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  2. internal/event/target/nats.go

    type NATSArgs struct {
    	Enable          bool      `json:"enable"`
    	Address         xnet.Host `json:"address"`
    	Subject         string    `json:"subject"`
    	Username        string    `json:"username"`
    	UserCredentials string    `json:"userCredentials"`
    	Password        string    `json:"password"`
    	Token           string    `json:"token"`
    	TLS             bool      `json:"tls"`
    	TLSSkipVerify   bool      `json:"tlsSkipVerify"`
    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)
  3. internal/bucket/replication/destination.go

    	// EncryptionConfiguration TODO: not needed for MinIO
    }
    
    func (d Destination) isValidStorageClass() bool {
    	if d.StorageClass == "" {
    		return true
    	}
    	return d.StorageClass == "STANDARD" || d.StorageClass == "REDUCED_REDUNDANCY"
    }
    
    // IsValid - checks whether Destination is valid or not.
    func (d Destination) IsValid() bool {
    	return d.Bucket != "" || !d.isValidStorageClass()
    }
    
    func (d Destination) String() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4K bytes
    - Viewed (2)
  4. cmd/generic-handlers_test.go

    		URL:    &url.URL{Path: grid.RoutePath},
    	}
    	if !guessIsRPCReq(r) {
    		t.Fatal("Grid RPC path not detected")
    	}
    }
    
    var isHTTPHeaderSizeTooLargeTests = []struct {
    	header     http.Header
    	shouldFail bool
    }{
    	{header: generateHeader(0, 0), shouldFail: false},
    	{header: generateHeader(1024, 0), shouldFail: false},
    	{header: generateHeader(2048, 0), shouldFail: false},
    	{header: generateHeader(8*1024+1, 0), shouldFail: true},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. internal/config/etcd/etcd.go

    	cli.Lease = namespace.NewLease(cli.Lease, cfg.PathPrefix)
    	return cli, nil
    }
    
    func parseEndpoints(endpoints string) ([]string, bool, error) {
    	etcdEndpoints := strings.Split(endpoints, config.ValueSeparator)
    
    	var etcdSecure bool
    	for _, endpoint := range etcdEndpoints {
    		u, err := xnet.ParseHTTPURL(endpoint)
    		if err != nil {
    			return nil, false, err
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. cmd/object-api-errors.go

    func isErrWriteQuorum(err error) bool {
    	var rquorum InsufficientWriteQuorum
    	return errors.As(err, &rquorum)
    }
    
    // isErrObjectNotFound - Check if error type is ObjectNotFound.
    func isErrObjectNotFound(err error) bool {
    	var objNotFound ObjectNotFound
    	return errors.As(err, &objNotFound)
    }
    
    // isErrVersionNotFound - Check if error type is VersionNotFound.
    func isErrVersionNotFound(err error) bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  7. cmd/xl-storage-disk-id-check.go

    	return p.storage.String()
    }
    
    func (p *xlStorageDiskIDCheck) IsOnline() bool {
    	storedDiskID, err := p.storage.GetDiskID()
    	if err != nil {
    		return false
    	}
    	return storedDiskID == *p.diskID.Load()
    }
    
    func (p *xlStorageDiskIDCheck) LastConn() time.Time {
    	return p.storage.LastConn()
    }
    
    func (p *xlStorageDiskIDCheck) IsLocal() bool {
    	return p.storage.IsLocal()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  8. cmd/xl-storage-meta-inline.go

    // remove will remove one or more keys.
    // Returns true if any key was found.
    func (x *xlMetaInlineData) remove(keys ...string) bool {
    	in := x.afterVersion()
    	sz, buf, _ := msgp.ReadMapHeaderBytes(in)
    	newKeys := make([][]byte, 0, sz)
    	newVals := make([][]byte, 0, sz)
    	var removeKey func(s []byte) bool
    
    	// Copy if big number of compares...
    	if len(keys) > 5 && sz > 5 {
    		mKeys := make(map[string]struct{}, len(keys))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  9. internal/event/target/kafka.go

    type KafkaArgs struct {
    	Enable     bool        `json:"enable"`
    	Brokers    []xnet.Host `json:"brokers"`
    	Topic      string      `json:"topic"`
    	QueueDir   string      `json:"queueDir"`
    	QueueLimit uint64      `json:"queueLimit"`
    	Version    string      `json:"version"`
    	BatchSize  uint32      `json:"batchSize"`
    	TLS        struct {
    		Enable        bool               `json:"enable"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 13K bytes
    - Viewed (0)
  10. cmd/bucket-targets.go

    	Bucket              string // remote bucket target
    	replicateSync       bool
    	StorageClass        string // storage class on remote
    	disableProxy        bool
    	ARN                 string // ARN to uniquely identify remote target
    	ResetID             string
    	Endpoint            string
    	Secure              bool
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top