Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 122 for scfg (0.03 seconds)

  1. internal/config/drive/drive.go

    	if d == "" {
    		cfg.MaxTimeout = 30 * time.Second
    	} else {
    		dur, _ := time.ParseDuration(d)
    		if dur < time.Second {
    			cfg.MaxTimeout = 30 * time.Second
    		} else {
    			cfg.MaxTimeout = getMaxTimeout(dur)
    		}
    	}
    	return cfg, err
    }
    
    func getMaxTimeout(t time.Duration) time.Duration {
    	if t > time.Second {
    		return t
    	}
    	// get default value
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Nov 11 14:51:43 GMT 2024
    - 3K bytes
    - Click Count (0)
  2. internal/config/storageclass/legacy.go

    func SetStorageClass(s config.Config, cfg Config) {
    	if len(cfg.Standard.String()) == 0 && len(cfg.RRS.String()) == 0 {
    		// Do not enable storage-class if no settings found.
    		return
    	}
    	s[config.StorageClassSubSys][config.Default] = config.KVS{
    		config.KV{
    			Key:   ClassStandard,
    			Value: cfg.Standard.String(),
    		},
    		config.KV{
    			Key:   ClassRRS,
    			Value: cfg.RRS.String(),
    		},
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.3K bytes
    - Click Count (0)
  3. internal/bucket/lifecycle/evaluator.go

    	e.lockRetention = lr
    	return e
    }
    
    // WithReplicationConfig - sets the replication configuration for the evaluator
    func (e *Evaluator) WithReplicationConfig(rcfg *replication.Config) *Evaluator {
    	e.replCfg = rcfg
    	return e
    }
    
    // IsPendingReplication checks if the object is pending replication.
    func (e *Evaluator) IsPendingReplication(obj ObjectOpts) bool {
    	if e.replCfg == nil {
    		return false
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Apr 08 15:41:24 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                return cfg.getBatchLimit("TreeConnectAndX.DeleteDirectory");
            case SMB_COM_OPEN_ANDX:
                return cfg.getBatchLimit("TreeConnectAndX.OpenAndX");
            case SMB_COM_RENAME:
                return cfg.getBatchLimit("TreeConnectAndX.Rename");
            case SMB_COM_TRANSACTION:
                return cfg.getBatchLimit("TreeConnectAndX.Transaction");
            case SMB_COM_QUERY_INFORMATION:
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/BufferCacheImpl.java

        private int freeBuffers = 0;
    
        /**
         * Constructs a buffer cache using configuration settings.
         *
         * @param cfg the configuration to use for buffer cache settings
         */
        public BufferCacheImpl(final Configuration cfg) {
            this(cfg.getBufferCacheSize(), cfg.getMaximumBufferSize());
        }
    
        /**
         * Constructs a buffer cache with specified parameters.
         *
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  6. cmd/data-usage.go

    			bui.ReplicationFailedSizeV1 > 0 || bui.ReplicationPendingCountV1 > 0 {
    			cfg, _ := getReplicationConfig(GlobalContext, bucket)
    			if cfg != nil && cfg.RoleArn != "" {
    				if dataUsageInfo.ReplicationInfo == nil {
    					dataUsageInfo.ReplicationInfo = make(map[string]BucketTargetUsageInfo)
    				}
    				dataUsageInfo.ReplicationInfo[cfg.RoleArn] = BucketTargetUsageInfo{
    					ReplicationFailedSize:   bui.ReplicationFailedSizeV1,
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu May 09 00:51:34 GMT 2024
    - 5.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/netbios/Name.java

            this.scope = scope != null && scope.length() > 0 ? scope : cfg.getNetbiosScope();
            this.srcHashCode = 0;
        }
    
        /**
         * Constructs a Name from a NetbiosName.
         *
         * @param cfg the configuration to use
         * @param name the NetbiosName to copy from
         */
        public Name(final Configuration cfg, final NetbiosName name) {
            this.config = cfg;
            this.name = name.getName();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8K bytes
    - Click Count (0)
  8. internal/config/lambda/parse.go

    // TestSubSysLambdaTargets - tests notification targets of given subsystem
    func TestSubSysLambdaTargets(ctx context.Context, cfg config.Config, subSys string, transport *http.Transport) error {
    	if err := checkValidLambdaKeysForSubSys(subSys, cfg[subSys]); err != nil {
    		return err
    	}
    
    	targetList, err := fetchSubSysTargets(ctx, cfg, subSys, transport)
    	if err != nil {
    		return err
    	}
    
    	for _, target := range targetList {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  9. cmd/bucket-versioning-handler.go

    			Description:    "Cluster replication is enabled on this site, versioning cannot be suspended on bucket.",
    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    		return
    	}
    
    	if rcfg, _ := globalBucketObjectLockSys.Get(bucket); rcfg.LockEnabled && (v.Suspended() || v.PrefixesExcluded()) {
    		writeErrorResponse(ctx, w, APIError{
    			Code:           "InvalidBucketState",
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 24 23:05:23 GMT 2024
    - 5K bytes
    - Click Count (0)
  10. internal/config/compress/legacy.go

    func SetCompressionConfig(s config.Config, cfg Config) {
    	if !cfg.Enabled {
    		// No need to save disabled settings in new config.
    		return
    	}
    	s[config.CompressionSubSys][config.Default] = config.KVS{
    		config.KV{
    			Key:   config.Enable,
    			Value: config.EnableOn,
    		},
    		config.KV{
    			Key:   Extensions,
    			Value: strings.Join(cfg.Extensions, config.ValueSeparator),
    		},
    		config.KV{
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Sep 06 17:37:10 GMT 2025
    - 1.9K bytes
    - Click Count (0)
Back to Top