Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getLatestReleaseTime (0.16 sec)

  1. cmd/update.go

    			RootCAs:            globalRootCAs,
    			ClientSessionCache: tls.NewLRUClientSessionCache(tlsClientSessionCacheSize),
    		},
    		DisableCompression: true,
    	}
    	return updateTransport
    }
    
    func getLatestReleaseTime(u *url.URL, timeout time.Duration, mode string) (sha256Sum []byte, releaseTime time.Time, err error) {
    	data, err := downloadReleaseURL(u, timeout, mode)
    	if err != nil {
    		return sha256Sum, releaseTime, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. cmd/common-main.go

    		updateURL = minioReleaseWindowsInfoURL
    	}
    
    	u, err := url.Parse(updateURL)
    	if err != nil {
    		return
    	}
    
    	if currentReleaseTime.IsZero() {
    		return
    	}
    
    	_, lrTime, err := getLatestReleaseTime(u, 2*time.Second, mode)
    	if err != nil {
    		return
    	}
    
    	var older time.Duration
    	var downloadURL string
    	if lrTime.After(currentReleaseTime) {
    		older = lrTime.Sub(currentReleaseTime)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top