- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 694 for recorder (0.13 sec)
-
src/net/http/httptest/recorder.go
import ( "bytes" "fmt" "io" "net/http" "net/textproto" "strconv" "strings" "golang.org/x/net/http/httpguts" ) // ResponseRecorder is an implementation of [http.ResponseWriter] that // records its mutations for later inspection in tests. type ResponseRecorder struct { // Code is the HTTP response code set by WriteHeader. // // Note that if a Handler never calls WriteHeader or Write,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 7K bytes - Viewed (0) -
internal/http/request-recorder.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package http import ( "bytes" "io" ) // RequestRecorder - records the // of a given io.Reader type RequestRecorder struct { // Data source to record io.Reader // Response body should be logged LogBody bool // internal recording buffer buf bytes.Buffer // total bytes read including header size
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Apr 12 21:37:19 UTC 2023 - 1.8K bytes - Viewed (0) -
internal/http/response-recorder.go
package http import ( "bufio" "bytes" "errors" "fmt" "io" "net" "net/http" "time" ) // ResponseRecorder - is a wrapper to trap the http response // status code and to record the response body type ResponseRecorder struct { http.ResponseWriter io.ReaderFrom StatusCode int // Log body of 4xx or 5xx responses LogErrBody bool // Log body of all responses LogAllBody bool
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 02 00:13:19 UTC 2023 - 4.9K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control_test.go
} events := collectEvents(recorder.Events) if eventCount := len(events); eventCount != 0 { t.Errorf("Pod and PVC exist: got %d events, but want 0", eventCount) for i := range events { t.Log(events[i]) } } } func TestStatefulPodControlCreatePodPvcCreateFailure(t *testing.T) { recorder := record.NewFakeRecorder(10) set := newStatefulSet(3)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 35.5K bytes - Viewed (0) -
pkg/kubelet/container/testing/mock_runtime_cache.go
ctrl *gomock.Controller recorder *MockpodsGetterMockRecorder } // MockpodsGetterMockRecorder is the mock recorder for MockpodsGetter. type MockpodsGetterMockRecorder struct { mock *MockpodsGetter } // NewMockpodsGetter creates a new mock instance. func NewMockpodsGetter(ctrl *gomock.Controller) *MockpodsGetter { mock := &MockpodsGetter{ctrl: ctrl} mock.recorder = &MockpodsGetterMockRecorder{mock}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 4K bytes - Viewed (0) -
pkg/kubelet/active_deadline.go
podStatusProvider status.PodStatusProvider // the recorder to dispatch events when we identify a pod has exceeded active deadline recorder record.EventRecorder } // newActiveDeadlineHandler returns an active deadline handler that can enforce pod active deadline func newActiveDeadlineHandler( podStatusProvider status.PodStatusProvider, recorder record.EventRecorder, clock clock.Clock, ) (*activeDeadlineHandler, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 10 10:20:09 UTC 2021 - 3.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/MutationRuleApplicationOrderIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/MutationRuleExecutionOrderTest.groovy
@Model MutationRecorder recorder() { new MutationRecorder() } @Mutate void b(@Path("recorder") MutationRecorder recorder) { recorder.mutations << "b" } @Mutate void a(@Path("recorder") MutationRecorder recorder) { recorder.mutations << "a" } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/warning/context.go
// The returned context can be passed to AddWarning(). func WithWarningRecorder(ctx context.Context, recorder Recorder) context.Context { return context.WithValue(ctx, warningRecorderKey, recorder) } func warningRecorderFrom(ctx context.Context) (Recorder, bool) { recorder, ok := ctx.Value(warningRecorderKey).(Recorder) return recorder, ok }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 24 16:37:53 UTC 2022 - 2.1K bytes - Viewed (0) -
pkg/scheduler/metrics/metric_recorder.go
return &PendingPodsRecorder{ recorder: BackoffPods(), } } // NewGatedPodsRecorder returns GatedPods in a Prometheus metric fashion func NewGatedPodsRecorder() *PendingPodsRecorder { return &PendingPodsRecorder{ recorder: GatedPods(), } } // Inc increases a metric counter by 1, in an atomic way func (r *PendingPodsRecorder) Inc() { r.recorder.Inc() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 16 07:27:08 UTC 2023 - 4.4K bytes - Viewed (0)