- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for makeHandler (0.18 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/audit_test.go
handles bool } var _ Interface = &fakeHandler{} var _ MutationInterface = &fakeHandler{} var _ ValidationInterface = &fakeHandler{} func (h fakeHandler) Admit(ctx context.Context, a Attributes, o ObjectInterfaces) error { for k, v := range h.admitAnnotations { a.AddAnnotation(k, v) } return h.admit } func (h fakeHandler) Validate(ctx context.Context, a Attributes, o ObjectInterfaces) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 5.8K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/plugin_manager_test.go
pluginManager.Run(sourcesReady, stopChan) }() // Add handler for device plugin fakeHandler := newFakePluginHandler() pluginManager.AddHandler(registerapi.DevicePlugin, fakeHandler) const maxDepth = 3 // Make sure the plugin manager is aware of the socket in subdirectories for i := 0; i < maxDepth; i++ { fakeHandler.Reset() pluginDir := socketDir for j := 0; j < i; j++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/translatinghandler_test.go
"net/http" "testing" "github.com/stretchr/testify/require" "k8s.io/apimachinery/pkg/util/httpstream/wsstream" ) // fakeHandler implements http.Handler interface type fakeHandler struct { served bool } // ServeHTTP stores the fact that this fake handler was called. func (fh *fakeHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { fh.served = true } func TestTranslatingHandler(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 3.6K bytes - Viewed (0)