Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Integer (0.15 sec)

  1. internal/mountinfo/mountinfo_linux.go

    		if len(fields) != expectedNumFieldsPerLine {
    			// ignore incorrect lines.
    			continue
    		}
    
    		// Freq should be an integer.
    		if _, err := strconv.Atoi(fields[4]); err != nil {
    			return nil, err
    		}
    
    		// Pass should be an integer.
    		if _, err := strconv.Atoi(fields[5]); err != nil {
    			return nil, err
    		}
    
    		mounts = append(mounts, mountInfo{
    			Device:  fields[0],
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  2. internal/dsync/utils.go

    package dsync
    
    import (
    	"math/rand"
    	"time"
    )
    
    func backoffWait(min, unit, cap time.Duration) func(*rand.Rand, uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(r *rand.Rand, attempt uint) time.Duration {
    		sleep := min
    		sleep += unit * time.Duration(attempt)
    		if sleep > cap {
    			sleep = cap
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 13 15:42:21 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  3. internal/dsync/locked_rand.go

    )
    
    // lockedRandSource provides protected rand source, implements rand.Source interface.
    type lockedRandSource struct {
    	lk  sync.Mutex
    	src rand.Source
    }
    
    // Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
    func (r *lockedRandSource) Int63() (n int64) {
    	r.lk.Lock()
    	n = r.src.Int63()
    	r.lk.Unlock()
    	return
    }
    
    // Seed uses the provided seed value to initialize the generator to a
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Oct 18 15:39:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  4. docs/debugging/hash-set/main.go

    	sum64 := siphash.Hash(k0, k1, []byte(key))
    	return int(sum64 % uint64(cardinality))
    }
    
    // hashOrder - hashes input key to return consistent
    // hashed integer slice. Returned integer order is salted
    // with an input key. This results in consistent order.
    // NOTE: collisions are fine, we are not looking for uniqueness
    // in the slices returned.
    func hashOrder(key string, cardinality int) []int {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  5. docs/iam/identity-management-plugin.md

    A `200 OK` Response should have `application/json` content-type and body with the following structure:
    
    ```json
    {
        "user": <string>,
        "maxValiditySeconds": <integer>,
        "claims": <key-value-pairs>
    }
    ```
    
    | Parameter Name     | Value Type                              | Purpose                                                |
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  6. docs/sts/wso2.md

    | iat        | _integer_      | The token issue time.                                                                                                                                                                   |
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 8.7K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/delmarker-expiration.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package lifecycle
    
    import (
    	"encoding/xml"
    	"time"
    )
    
    var errInvalidDaysDelMarkerExpiration = Errorf("Days must be a positive integer with DelMarkerExpiration")
    
    // DelMarkerExpiration used to xml encode/decode ILM action by the same name
    type DelMarkerExpiration struct {
    	XMLName xml.Name `xml:"DelMarkerExpiration"`
    	Days    int      `xml:"Days,omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  8. docs/sts/custom-token-identity.md

    | RoleArn         | String  | Yes      | Must match the Role ARN generated for the identity plugin            |
    | DurationSeconds | Integer | No       | Duration of validity of generated credentials. Must be at least 900. |
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 3K bytes
    - Viewed (0)
  9. internal/config/heal/heal.go

    		w, err := strconv.Atoi(ws)
    		if err != nil {
    			return cfg, fmt.Errorf("'heal:drive_workers' value invalid: %w", err)
    		}
    		if w < 1 {
    			return cfg, fmt.Errorf("'heal:drive_workers' value invalid: zero or negative integer unsupported")
    		}
    		cfg.DriveWorkers = w
    	} else {
    		cfg.DriveWorkers = -1
    	}
    
    	return cfg, nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  10. internal/disk/stat_windows.go

    	lpTotalNumberOfFreeBytes := int64(0)
    
    	// Extract values safely
    	// BOOL WINAPI GetDiskFreeSpaceEx(
    	// _In_opt_  LPCTSTR         lpDirectoryName,
    	// _Out_opt_ PULARGE_INTEGER lpFreeBytesAvailable,
    	// _Out_opt_ PULARGE_INTEGER lpTotalNumberOfBytes,
    	// _Out_opt_ PULARGE_INTEGER lpTotalNumberOfFreeBytes
    	// );
    	_, _, _ = GetDiskFreeSpaceEx.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))),
    		uintptr(unsafe.Pointer(&lpFreeBytesAvailable)),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top