Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for downloadBinary (1.13 sec)

  1. cmd/update.go

    			StatusCode: http.StatusInternalServerError,
    		}
    	}
    	return resp.Body, nil
    }
    
    var updateInProgress atomic.Uint32
    
    // Function to get the reader from an architecture
    func downloadBinary(u *url.URL, mode string) (binCompressed []byte, bin []byte, err error) {
    	transport := getUpdateTransport(30 * time.Second)
    	var reader io.ReadCloser
    	if u.Scheme == "https" || u.Scheme == "http" {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    			return
    		}
    
    		writeSuccessResponseJSON(w, jsonBytes)
    		return
    	}
    
    	u.Path = path.Dir(u.Path) + SlashSeparator + releaseInfo
    	// Download Binary Once
    	binC, bin, err := downloadBinary(u, mode)
    	if err != nil {
    		adminLogIf(ctx, fmt.Errorf("server update failed with %w", err))
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	if globalIsDistErasure {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
Back to top