Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newCachedAuthToken (0.1 sec)

  1. cmd/grid.go

    			newCachedAuthToken(),
    			&tls.Config{
    				RootCAs:          globalRootCAs,
    				CipherSuites:     fips.TLSCiphers(),
    				CurvePreferences: fips.TLSCurveIDs(),
    			}),
    		Local:        local,
    		Hosts:        hosts,
    		AuthToken:    validateStorageRequestToken,
    		AuthFn:       newCachedAuthToken(),
    		BlockConnect: globalGridStart,
    		// Record incoming and outgoing bytes.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. cmd/jwt.go

    		} else {
    			owner = globalActiveCred.AccessKey == ucred.ParentUser
    		}
    
    		groups = ucred.Groups
    	}
    
    	return claims, groups, owner, nil
    }
    
    // newCachedAuthToken returns the cached token.
    func newCachedAuthToken() func() string {
    	return func() string {
    		return globalNodeAuthToken
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. cmd/jwt_test.go

    		fn := authenticateNode
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn(creds.AccessKey, creds.SecretKey)
    		}
    	})
    	b.Run("cached", func(b *testing.B) {
    		fn := newCachedAuthToken()
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn()
    		}
    	})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top