Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 456 for drive (0.02 seconds)

  1. docs/zh-hant/docs/tutorial/security/oauth2-jwt.md

    JWT 規範說有個鍵 `sub`,代表權杖的主體(subject)。
    
    使用它是可選的,但通常會把使用者的識別資訊放在這裡,所以我們在此採用。
    
    JWT 除了用來識別使用者並允許他直接對你的 API 執行操作外,也可用於其他用途。
    
    例如,你可以識別一台「車」或一篇「部落格文章」。
    
    接著可以替該實體加上權限,如「drive」(對車而言)或「edit」(對文章而言)。
    
    然後你可以把該 JWT 權杖交給某個使用者(或機器人),他們就能用它來執行那些動作(開車、或編輯文章),甚至不需要有帳號,只要使用你的 API 所產生的 JWT 權杖即可。
    
    基於這些概念,JWT 能用在更複雜的情境中。
    
    在那些情境裡,數個實體可能擁有相同的 ID,例如 `foo`(使用者 `foo`、車 `foo`、以及文章 `foo`)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/security/oauth2-jwt.md

    JWT 规范中有一个 `sub` 键,表示令牌的“主题”(subject)。
    
    使用它是可选的,但通常会把用户的标识放在这里,所以本例中我们使用它。
    
    JWT 除了用于识别用户并允许其直接在你的 API 上执行操作之外,还可能用于其他场景。
    
    例如,你可以用它来标识一辆“车”或一篇“博客文章”。
    
    然后你可以为该实体添加权限,比如“drive”(用于车)或“edit”(用于博客)。
    
    接着,你可以把这个 JWT 令牌交给一个用户(或机器人),他们就可以在没有账户的前提下,仅凭你的 API 生成的 JWT 令牌来执行这些操作(开车、编辑文章)。
    
    基于这些想法,JWT 可以用于更复杂的场景。
    
    在这些情况下,多个实体可能会有相同的 ID,比如都叫 `foo`(用户 `foo`、车 `foo`、博客文章 `foo`)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  3. cmd/object-api-errors.go

    	return "Storage reached its minimum free drive threshold."
    }
    
    // SlowDown  too many file descriptors open or backend busy .
    type SlowDown struct{}
    
    func (e SlowDown) Error() string {
    	return "Please reduce your request rate"
    }
    
    // RQErrType reason for read quorum error.
    type RQErrType int
    
    const (
    	// RQInsufficientOnlineDrives - not enough online drives.
    	RQInsufficientOnlineDrives RQErrType = 1 << iota
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 09 02:05:14 GMT 2024
    - 22.1K bytes
    - Click Count (0)
  4. src/archive/zip/writer.go

    // It returns a [Writer] to which the file contents should be written.
    // The file contents will be compressed using the [Deflate] method.
    // The name must be a relative path: it must not start with a drive
    // letter (e.g. C:) or leading slash, and only forward slashes are
    // allowed. To create a directory instead of a file, add a trailing
    // slash to the name. Duplicate names will not overwrite previous entries
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Jan 28 04:20:09 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  5. cmd/storage-rest-client.go

    		DstVolume:   dstVolume,
    		DstFilePath: dstPath,
    		Meta:        meta,
    		SkipParent:  skipParent,
    	})
    	return toStorageErr(err)
    }
    
    // ReadParts - reads various part.N.meta paths from a drive remotely and returns object part info for each of those part.N.meta if found
    func (client *storageRESTClient) ReadParts(ctx context.Context, volume string, partMetaPaths ...string) ([]*ObjectPartInfo, error) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 08 02:38:41 GMT 2025
    - 30.4K bytes
    - Click Count (0)
  6. cmd/common-main.go

    		rootDiskSize = env.Get(config.EnvRootDiskThresholdSize, "")
    	}
    	if rootDiskSize != "" {
    		size, err := humanize.ParseBytes(rootDiskSize)
    		if err != nil {
    			logger.Fatal(err, fmt.Sprintf("Invalid %s value in root drive threshold environment variable", rootDiskSize))
    		}
    		globalRootDiskThreshold = size
    	}
    
    	domains := env.Get(config.EnvDomain, "")
    	if len(domains) != 0 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.5K bytes
    - Click Count (3)
  7. docs/ja/docs/advanced/security/oauth2-scopes.md

    各「スコープ」は、ただの文字列(空白なし)です。
    
    通常、特定のセキュリティ権限を宣言するために使われます。例えば:
    
    - `users:read` や `users:write` は一般的な例です。
    - `instagram_basic` は Facebook / Instagram で使われています。
    - `https://www.googleapis.com/auth/drive` は Google で使われています。
    
    /// info | 情報
    
    OAuth2 において「スコープ」は、必要な特定の権限を宣言する単なる文字列です。
    
    `:` のような他の文字が含まれていても、URL であっても問題ありません。
    
    それらの詳細は実装依存です。
    
    OAuth2 にとっては、単に文字列に過ぎません。
    
    ///
    
    ## 全体像 { #global-view }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  8. cmd/data-scanner.go

    func scanDataFolder(ctx context.Context, disks []StorageAPI, drive *xlStorage, cache dataUsageCache, getSize getSizeFn, scanMode madmin.HealScanMode, weSleep func() bool) (dataUsageCache, error) {
    	switch cache.Info.Name {
    	case "", dataUsageRoot:
    		return cache, errors.New("internal error: root scan attempted")
    	}
    	basePath := drive.drivePath
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 45.5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFile.java

        }
    
        /**
         * This method returns the free disk space in bytes of the drive this share
         * represents or the drive on which the directory or file resides. Objects
         * other than {@code TYPE_SHARE} or {@code TYPE_FILESYSTEM} will result
         * in 0L being returned.
         *
         * @return the free disk space in bytes of the drive on which this file or
         * directory resides
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  10. cmd/peer-rest-server.go

    	localDrives := cloneDrives(globalLocalDrivesMap)
    	globalLocalDrivesMu.RUnlock()
    
    	errs := make([]error, len(localDrives))
    	infos := make([]DiskInfo, len(localDrives))
    	for i, drive := range localDrives {
    		infos[i], errs[i] = drive.DiskInfo(GlobalContext, DiskInfoOptions{})
    	}
    	infoMaps := make(map[string]madmin.DiskMetrics)
    	for i := range infos {
    		if infos[i].Metrics.TotalWaiting >= 1 && errors.Is(errs[i], errFaultyDisk) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 53.6K bytes
    - Click Count (0)
Back to Top