- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 102 for atoi (0.04 sec)
-
internal/event/target/elasticsearch.go
parts := strings.Split(version, ".") if len(parts) < 1 { err = fmt.Errorf("bad ES version string: %s", version) return } majorVersion, err := strconv.Atoi(parts[0]) if err != nil { err = fmt.Errorf("bad ES version string: %s", version) return } switch { case majorVersion <= 6: res = ESSUnsupported default: res = ESSSupported } return
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 15K bytes - Viewed (0) -
cmd/admin-handlers-config-kv.go
ctx := r.Context() objectAPI, cred := validateAdminReq(ctx, w, r, policy.ConfigUpdateAdminAction) if objectAPI == nil { return } vars := mux.Vars(r) count, err := strconv.Atoi(vars["count"]) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } chEntries, err := listServerConfigHistory(ctx, objectAPI, true, count) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.7K bytes - Viewed (0) -
istioctl/pkg/precheck/precheck.go
if !ok { return nil, fmt.Errorf("invalid version %v, expected format like '1.0'", version) } if major != "1" { return nil, fmt.Errorf("expected major version 1, got %v", version) } minor, err := strconv.Atoi(minors) if err != nil { return nil, fmt.Errorf("minor version is not a number: %v", minors) } var messages diag.Messages = make([]diag.Message, 0) if minor <= 21 { // ENHANCED_RESOURCE_SCOPING
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 02:31:32 UTC 2024 - 15.3K bytes - Viewed (0) -
cmd/sftp-server.go
host, portStr, err := net.SplitHostPort(tokens[1]) if err != nil { logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s (%v)", arg, err), "unable to start SFTP server") } port, err = strconv.Atoi(portStr) if err != nil { logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s (%v)", arg, err), "unable to start SFTP server") } if port < 1 || port > 65535 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 20 20:00:29 UTC 2024 - 16K bytes - Viewed (0) -
cmd/object-multipart-handlers.go
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL) return } uploadID := r.Form.Get(xhttp.UploadID) partIDString := r.Form.Get(xhttp.PartNumber) partID, err := strconv.Atoi(partIDString) if err != nil || partID <= 0 { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidPart), r.URL) return } // check partID with maximum part ID for multipart objects
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Aug 31 18:25:48 UTC 2024 - 39.2K bytes - Viewed (0) -
src/cmd/api/main_test.go
} if needApproval { feature, approval, ok := strings.Cut(line, "#") if !ok { log.Printf("%s:%d: missing proposal approval\n", filename, i+1) exitCode = 1 } else { _, err := strconv.Atoi(approval) if err != nil { log.Printf("%s:%d: malformed proposal approval #%s\n", filename, i+1, approval) exitCode = 1 } } line = strings.TrimSpace(feature) } else {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 04 18:16:59 UTC 2024 - 31.4K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
} if value < 0 { p.errorf("%s overflows int64", str) } return value } func (p *Parser) atoi(str string) uint64 { value, err := strconv.ParseUint(str, 0, 64) if err != nil { p.errorf("%s", err) } return value } func (p *Parser) atof(str string) float64 { value, err := strconv.ParseFloat(str, 64) if err != nil { p.errorf("%s", err) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 04 18:16:59 UTC 2024 - 36.9K bytes - Viewed (0) -
internal/logger/target/http/http.go
if err != nil { if os.IsNotExist(err) { return nil } return err } count := 1 v := strings.Split(key.Name, ":") if len(v) == 2 { count, err = strconv.Atoi(v[0]) if err != nil { return err } } if err := h.send(context.Background(), eventData, count, h.payloadType, h.httpTimeout); err != nil { return err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 11 22:20:42 UTC 2024 - 15.6K bytes - Viewed (0) -
misc/go_android_exec/main.go
// Not a full match. Flush. if _, err := f.w.Write(b); err != nil { return 0, err } return 0, fmt.Errorf("no exit code (in %q)", string(b)) } // Parse the exit code. code, err := strconv.Atoi(string(match[1])) if err != nil { // Something is malformed. Flush. if _, err := f.w.Write(b); err != nil { return 0, err } return 0, fmt.Errorf("bad exit code: %v (in %q)", err, string(b)) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0) -
cmd/common-main.go
OpenIDProviders: buildOpenIDConsoleConfig(), } server := consoleapi.NewServer(api) // register all APIs server.ConfigureAPI() consolePort, _ := strconv.Atoi(globalMinioConsolePort) server.Host = globalMinioConsoleHost server.Port = consolePort consoleapi.Port = globalMinioConsolePort consoleapi.Hostname = globalMinioConsoleHost if globalIsTLS {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 21:50:11 UTC 2024 - 31.7K bytes - Viewed (0)