- Sort Score
- Result 10 results
- Languages All
Results 961 - 970 of 2,412 for ErrorS (0.06 sec)
-
internal/config/scanner/scanner.go
case "slowest": cfg.Delay, cfg.MaxWait, cfg.Cycle = 100, 15*time.Second, 30*time.Minute default: return cfg, fmt.Errorf("unknown '%s' value", speed) } return cfg, nil } func lookupDeprecatedScannerConfig(kvs config.KVS, cfg *Config) (err error) { delay := env.Get(EnvDelayLegacy, "") if delay == "" { delay = env.Get(EnvDelay, kvs.GetWithDefault(Delay, DefaultKVS)) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/signature-v4_test.go
queryParams map[string]string headers map[string]string region string expected APIErrorCode }{ // (0) Should error without a set URL query. { region: globalMinioDefaultRegion, expected: ErrInvalidQueryParams, }, // (1) Should error on an invalid access key. { queryParams: map[string]string{ "X-Amz-Algorithm": signV4Algorithm,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 10.5K bytes - Viewed (0) -
istioctl/pkg/util/handlers/handlers_test.go
default: t.Errorf("%s: unexpected request: %s %#v\n%#v", p, req.Method, req.URL, req) return nil, fmt.Errorf("unexpected request") } }), } getFirstPodFunc = func(client corev1client.PodsGetter, namespace string, selector string, timeout time.Duration, sortBy func([]*corev1.Pod) sort.Interface) ( *corev1.Pod, int, error, ) { return attachPod(namespace), 1, nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 09 18:17:49 UTC 2023 - 6.6K bytes - Viewed (0) -
istioctl/pkg/kubeinject/google.go
} func mcpTransport(ctx context.Context, tr http.RoundTripper) (http.RoundTripper, error) { creds, err := google.FindDefaultCredentials(ctx, "https://www.googleapis.com/auth/cloud-platform") if err != nil { return nil, fmt.Errorf("finding default GCP credentials: %w", err) } return &oauth2.Transport{ Base: tr, Source: creds.TokenSource, }, nil
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 1.2K bytes - Viewed (0) -
cmd/signature-v4-utils_test.go
if expectedHost != extractedHost { t.Errorf("host header mismatch: expected `%s`, got `%s`", expectedHost, extractedHost) } // assert the result with the expected value. if expectedContentSha256 != extractedContentSha256 { t.Errorf("x-amz-content-sha256 header mismatch: expected `%s`, got `%s`", expectedContentSha256, extractedContentSha256) } if expectedTime != extractedDate {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 05 21:26:41 UTC 2024 - 14.3K bytes - Viewed (0) -
internal/config/etcd/etcd.go
} func parseEndpoints(endpoints string) ([]string, bool, error) { etcdEndpoints := strings.Split(endpoints, config.ValueSeparator) var etcdSecure bool for _, endpoint := range etcdEndpoints { u, err := xnet.ParseHTTPURL(endpoint) if err != nil { return nil, false, err } if etcdSecure && u.Scheme == "http" { return nil, false, config.Errorf("all endpoints should be https or http: %s", endpoint) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 28 23:17:22 UTC 2024 - 5.2K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/policies.go
zDump := c.ztunnelDump policies := slices.Filter(zDump.Policies, filter.Verify) slices.SortFunc(policies, func(a, b *ZtunnelPolicy) int { if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 { return r } return cmp.Compare(a.Name, b.Name) }) out, err := json.MarshalIndent(policies, "", " ") if err != nil { return fmt.Errorf("failed to marshal policies: %v", err) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.4K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs_contrib_test.go
resExpected string errExpected error }{ {"abcd", 1, 1, "a", nil}, {"abcd", -1, 1, "a", nil}, {"abcd", 999, 999, "", nil}, {"", 999, 999, "", nil}, {"测试abc", 1, 1, "测", nil}, {"测试abc", 5, 5, "c", nil}, } for i, tc := range evalCases { res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length) if res != tc.resExpected || err != tc.errExpected { t.Errorf("Eval Case %d failed: %v %v", i, res, err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.2K bytes - Viewed (0) -
internal/config/bool-flag.go
return true, nil } if strings.EqualFold(str, "disabled") { return false, nil } return false, fmt.Errorf("ParseBool: parsing '%s': %w", str, strconv.ErrSyntax) } // ParseBoolFlag - parses string into BoolFlag. func ParseBoolFlag(s string) (bf BoolFlag, err error) { b, err := ParseBool(s) return BoolFlag(b), err
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 07 15:10:40 UTC 2022 - 2.3K bytes - Viewed (0) -
internal/config/etcd/etcd_test.go
if err != nil && testCase.success { t.Errorf("expected to succeed but failed with %s", err) } if !testCase.success && err == nil { t.Error("expected failure but succeeded instead") } if testCase.success { if !reflect.DeepEqual(endpoints, testCase.endpoints) { t.Errorf("expected %s, got %s", testCase.endpoints, endpoints) } if secure != testCase.secure {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 2.1K bytes - Viewed (0)