- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for apiStatus (0.14 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
// reconstructed by clients from a REST response. Public to allow easy type switches. type StatusError struct { ErrStatus metav1.Status } // APIStatus is exposed by errors that can be converted to an api.Status object // for finer grained details. type APIStatus interface { Status() metav1.Status } var _ error = &StatusError{} var knownReasons = map[metav1.StatusReason]struct{}{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 21 03:41:32 UTC 2022 - 30.5K bytes - Viewed (0) -
.idea/inspectionProfiles/idea_default.xml
<option value="org.apache.http.annotation.Beta" /> <option value="org.jetbrains.annotations.ApiStatus.Experimental" /> <option value="org.jetbrains.annotations.ApiStatus.Internal" /> <option value="org.jetbrains.annotations.ApiStatus.ScheduledForRemoval" /> <option value="rx.annotations.Beta" /> <option value="rx.annotations.Experimental" /> </set>
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Nov 09 20:59:03 UTC 2023 - 32.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/objectmeta_test.go
if err == nil { t.Fatalf("unexpected non-error, expected invalid labels to be rejected: %v", err) } if status, ok := err.(errors.APIStatus); !ok { t.Fatalf("expected APIStatus error, but got: %#v", err) } else if !errors.IsBadRequest(err) { t.Fatalf("expected BadRequst error, but got: %v", errors.ReasonForError(err))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 05:32:34 UTC 2023 - 19K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go
} } } return res } func transformErrorToEvent(err error) *watch.Event { err = interpretWatchError(err) if _, ok := err.(apierrors.APIStatus); !ok { err = apierrors.NewInternalError(err) } status := err.(apierrors.APIStatus).Status() return &watch.Event{ Type: watch.Error, Object: &status, } } func (wc *watchChan) sendError(err error) { select {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 10:26:38 UTC 2023 - 18.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
}, } for _, testCase := range testCases { err := transformDecodeError(testCase.typer, testCase.baseErr, testCase.decodeIntoObject, testCase.decodedGVK, []byte(``)) if apiStatus, ok := err.(apierrors.APIStatus); !ok || apiStatus.Status().Code != http.StatusBadRequest { t.Errorf("expected bad request error but got: %v", err) } } } var _ runtime.ObjectTyper = alwaysErrorTyper{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0) -
.idea/inspectionProfiles/Gradle.xml
<option value="org.apache.http.annotation.Beta" /> <option value="org.gradle.api.Incubating" /> <option value="org.jetbrains.annotations.ApiStatus.Experimental" /> <option value="rx.annotations.Beta" /> <option value="rx.annotations.Experimental" /> </set> </option> </inspection_tool> </profile>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 09:21:43 UTC 2024 - 13K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/fieldmanager_test.go
} switch typ := err.(type) { default: t.Fatalf("expected error to be of type %T was %T (%v)", apierrors.StatusError{}, typ, err) case apierrors.APIStatus: if typ.Status().Code != http.StatusBadRequest { t.Fatalf("expected status code to be %d but was %d", http.StatusBadRequest, typ.Status().Code) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 16 20:03:48 UTC 2023 - 32.5K bytes - Viewed (0) -
cmd/http-stats.go
if stats == nil { return map[string]int{} } stats.RLock() defer stats.RUnlock() apiStats := make(map[string]int, len(stats.apiStats)) for k, v := range stats.apiStats { if toLower { k = strings.ToLower(k) } apiStats[k] = v } return apiStats } // HTTPStats holds statistics information about // HTTP requests made by all clients type HTTPStats struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 06:25:13 UTC 2024 - 11.5K bytes - Viewed (0) -
cmd/metrics.go
ch <- prometheus.MustNewConstMetric( prometheus.NewDesc( prometheus.BuildFQName(s3Namespace, "errors", "total"), "Total number of s3 errors in current MinIO server instance", []string{"api"}, nil), prometheus.CounterValue, float64(value), api, ) } for api, value := range httpStats.TotalS3Canceled.APIStats {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 16.6K bytes - Viewed (0)