- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for downloadReleaseURL (0.29 sec)
-
cmd/update.go
len(cpuMap), len(coreMap), cpu.VendorID, cpu.Family, cpu.Model, cpu.Stepping, cpu.ModelName)) } uaAppend(")", "") return strings.Join(userAgentParts, "") } func downloadReleaseURL(u *url.URL, timeout time.Duration, mode string) (content string, err error) { req, err := http.NewRequest(http.MethodGet, u.String(), nil) if err != nil { return content, AdminError{
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 18.7K bytes - Viewed (0) -
cmd/update_test.go
} for _, testCase := range testCases { u, err := url.Parse(testCase.releaseChecksumURL) if err != nil { t.Fatal(err) } result, err := downloadReleaseURL(u, 1*time.Second, "") switch { case testCase.expectedErr == nil: if err != nil { t.Fatalf("error: expected: %v, got: %v", testCase.expectedErr, err) } case err == nil:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Mar 09 03:07:08 UTC 2024 - 10.7K bytes - Viewed (0) -
cmd/admin-handlers.go
} } u, err := url.Parse(updateURL) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } content, err := downloadReleaseURL(u, updateTimeout, mode) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } sha256Sum, lrTime, releaseInfo, err := parseReleaseData(content) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 98K bytes - Viewed (0)