- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 282 for hook1 (0.11 sec)
-
src/internal/runtime/exithook/hooks.go
runGoid atomic.Uint64 hooks []Hook running bool // runtime sets these for us Gosched func() Goid func() uint64 Throw func(string) ) // Add adds a new exit hook. func Add(h Hook) { for !locked.CompareAndSwap(0, 1) { Gosched() } hooks = append(hooks, h) locked.Store(0) } // Run runs the exit hooks. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.2K bytes - Viewed (0) -
src/internal/coverage/cfile/hooks.go
// being tested, hence we do want to run exit hooks when the program // terminates. func InitHook(istest bool) { // Note: hooks are run in reverse registration order, so // register the counter data hook before the meta-data hook // (in the case where two hooks are needed). exithook.Add(exithook.Hook{F: emitCounterData, RunOnFailure: true}) if istest { exithook.Add(exithook.Hook{F: emitMetaData, RunOnFailure: true}) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 02:32:19 UTC 2024 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/hooks.go
return err } s.postStartHooks[name] = postStartHookEntry{hook: hook, originatingStack: string(debug.Stack()), done: done} return nil } // AddPostStartHookOrDie allows you to add a PostStartHook, but dies on failure func (s *GenericAPIServer) AddPostStartHookOrDie(name string, hook PostStartHookFunc) { if err := s.AddPostStartHook(name, hook); err != nil { klog.Fatalf("Error registering PostStartHook %q: %v", name, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/interfaces.go
package generic import ( "context" "k8s.io/apiserver/pkg/admission" ) // Hook represents a dynamic admission hook. The hook may be a webhook or a // policy. For webhook, the Hook may describe how to contact the endpoint, expected // cert, etc. For policies, the hook may describe a compiled policy-binding pair. type Hook interface { // All hooks are expected to contain zero or more match conditions, object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 13 21:06:39 UTC 2024 - 2.3K bytes - Viewed (0) -
src/net/hook.go
Andy Pan <******@****.***> 1699977411 +0800
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 934 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_dispatcher.go
// policy itself relevantHooks = append(relevantHooks, PolicyInvocation[P, B, E]{ Policy: hook.Policy, Error: hook.ConfigurationError, Resource: matchGVR, Kind: matchGVK, }) utilruntime.HandleError(hook.ConfigurationError) continue } for _, binding := range hook.Bindings { bindingAccessor := d.newBindingAccessor(binding)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 12.1K bytes - Viewed (0) -
src/os/writeto_linux_test.go
t.Fatalf("wrong source file descriptor: got %d, want %d", hook.srcfd, src.Fd()) } sc, ok := dst.(syscall.Conn) if !ok { t.Fatalf("destination is not a syscall.Conn") } rc, err := sc.SyscallConn() if err != nil { t.Fatalf("destination SyscallConn error: %v", err) } if err = rc.Control(func(fd uintptr) { if hook.called && hook.dstfd != int(fd) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go
objectInterfaces: o, } for i, hook := range hooks { attrForCheck := attr if v.versionedAttr != nil { attrForCheck = v.versionedAttr } invocation, statusErr := a.plugin.ShouldCallHook(ctx, hook, attrForCheck, o, v) if statusErr != nil { return statusErr } if invocation == nil { continue } hook, ok := invocation.Webhook.GetMutatingWebhook() if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 19.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go
continue } if !matches { continue } params, err := generic.CollectParams( hook.Policy.Spec.ParamKind, hook.ParamInformer, hook.ParamScope, binding.Spec.ParamRef, a.GetNamespace(), ) if err != nil { addConfigError(err, definition, binding) continue } else if versionedAttr == nil && len(params) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 14.4K bytes - Viewed (0) -
src/os/readfrom_linux_test.go
if _, err := io.Copy(f, f); err != nil { t.Fatalf("failed to read from the file: %v", err) } if !hook.called || hook.written != 0 || hook.handled || hook.err != nil { t.Fatalf("poll.CopyFileRange should be called and return the EINVAL error, but got hook.called=%t, hook.err=%v", hook.called, hook.err) } // Rewind it. if _, err := f.Seek(0, io.SeekStart); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 20.3K bytes - Viewed (0)