Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for ParseBool (0.12 sec)

  1. internal/config/identity/openid/openid.go

    		var (
    			cfgEnableVal        = getCfgVal(config.Enable)
    			isExplicitlyEnabled = cfgEnableVal != ""
    		)
    
    		var enabled bool
    		if isExplicitlyEnabled {
    			enabled, err = config.ParseBool(cfgEnableVal)
    			if err != nil {
    				return c, err
    			}
    			// No need to continue loading if the config is not enabled.
    			if !enabled {
    				continue
    			}
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. cmd/object-api-options.go

    	opts, err = getOpts(ctx, r, bucket, object)
    	if err != nil {
    		return opts, err
    	}
    
    	deletePrefix := false
    	if d := r.Header.Get(xhttp.MinIOForceDelete); d != "" {
    		if b, err := strconv.ParseBool(d); err == nil {
    			deletePrefix = b
    		} else {
    			return opts, err
    		}
    	}
    
    	opts.DeletePrefix = deletePrefix
    	opts.Versioned = globalBucketVersioningSys.PrefixEnabled(bucket, object)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. cmd/sftp-server.go

    		case "mac-algos":
    			allowMACs = filterAlgos(arg, strings.Split(tokens[1], ","), supportedMACs)
    		case "trusted-user-ca-key":
    			userCaKeyFile = tokens[1]
    		case "password-auth":
    			disablePassAuth, _ = strconv.ParseBool(tokens[1])
    		}
    	}
    
    	if port == 0 {
    		port = 8022 // Default SFTP port, since no port was given.
    	}
    
    	if sshPrivateKey == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. misc/go_android_exec/main.go

    	}
    	importPath = parts[0]
    	if importPath == "" || importPath == "." {
    		return errorf("current directory does not have a Go import path")
    	}
    	isStd, err = strconv.ParseBool(parts[1])
    	if err != nil {
    		return errorf("%v: non-boolean .Standard in output: %q", cmd, out)
    	}
    	if len(parts) >= 4 {
    		modPath = parts[2]
    		modDir = parts[3]
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  5. internal/config/config.go

    	}
    	return nil
    }
    
    // LookupWorm - check if worm is enabled
    func LookupWorm() (bool, error) {
    	return ParseBool(env.Get(EnvWorm, EnableOff))
    }
    
    // Carries all the renamed sub-systems from their
    // previously known names
    var renamedSubsys = map[string]string{
    	CrawlerSubSys: ScannerSubSys,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  6. cmd/bucket-handlers.go

    		return
    	}
    
    	forceDelete := false
    	if value := r.Header.Get(xhttp.MinIOForceDelete); value != "" {
    		var err error
    		forceDelete, err = strconv.ParseBool(value)
    		if err != nil {
    			apiErr := errorCodes.ToAPIErr(ErrInvalidRequest)
    			apiErr.Description = err.Error()
    			writeErrorResponse(ctx, w, apiErr, r.URL)
    			return
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  7. tests/migrate_test.go

    	AssertEqual(t, defVal, "null")
    	AssertEqual(t, ok, true)
    
    	columnType2, err := findColumnType(tableName, "active")
    	AssertEqual(t, err, nil)
    
    	defVal, ok = columnType2.DefaultValue()
    	bv, _ := strconv.ParseBool(defVal)
    	AssertEqual(t, bv, false)
    	AssertEqual(t, ok, true)
    
    	// default 'null' -> 'null'
    	session := DB.Session(&gorm.Session{Logger: Tracer{
    		Logger: DB.Config.Logger,
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg strconv, func FormatInt(int64, int) string
    pkg strconv, func FormatUint(uint64, int) string
    pkg strconv, func IsPrint(int32) bool
    pkg strconv, func Itoa(int) string
    pkg strconv, func ParseBool(string) (bool, error)
    pkg strconv, func ParseFloat(string, int) (float64, error)
    pkg strconv, func ParseInt(string, int, int) (int64, error)
    pkg strconv, func ParseUint(string, int, int) (uint64, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top