- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,938 for panics (0.2 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/apiextensions_client.go
} return &ApiextensionsV1Client{client}, nil } // NewForConfigOrDie creates a new ApiextensionsV1Client for the given config and // panics if there is an error in the config. func NewForConfigOrDie(c *rest.Config) *ApiextensionsV1Client { client, err := NewForConfig(c) if err != nil { panic(err) } return client } // New creates a new ApiextensionsV1Client for the given RESTClient.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 04:39:39 UTC 2021 - 3.1K bytes - Viewed (0) -
pkg/apis/networking/fuzzer/fuzzer.go
if ok { return ip.String() } // this should not happen panic(fmt.Sprintf("invalid IP %v", bytes)) } func generateRandomCIDR(is6 bool, c fuzz.Continue) string { ip, err := netip.ParseAddr(generateRandomIP(is6, c)) if err != nil { // generateRandomIP already panics if returns a not valid ip panic(err) } n := 32 if is6 { n = 128 } bits := c.Rand.Intn(n)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:06 UTC 2023 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/clientset.go
if err != nil { return nil, err } return &cs, nil } // NewForConfigOrDie creates a new Clientset for the given config and // panics if there is an error in the config. func NewForConfigOrDie(c *rest.Config) *Clientset { cs, err := NewForConfig(c) if err != nil { panic(err) } return cs } // New creates a new Clientset for the given RESTClient. func New(c rest.Interface) *Clientset {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 18:26:20 UTC 2022 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go
}() select { case err := <-resultCh: // panic if error occurs; stop otherwise if err != nil { panic(err) } return case <-timeoutCh: defer func() { // resultCh needs to have a reader, since the function doing // the work needs to send to it. This is defer'd to ensure it runs // ever if the post timeout work itself panics. go func() { timedOutAt := time.Now()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 8.9K bytes - Viewed (0) -
src/runtime/signal_arm.go
func (c *sigctxt) preparePanic(sig uint32, gp *g) { // We arrange lr, and pc to pretend the panicking // function calls sigpanic directly. // Always save LR to stack so that panics in leaf // functions are correctly handled. This smashes // the stack frame but we're not going back there // anyway. sp := c.sp() - 4 c.set_sp(sp) *(*uint32)(unsafe.Pointer(uintptr(sp))) = c.lr()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.5K bytes - Viewed (0) -
src/sync/once.go
// // config.once.Do(func() { config.init(filename) }) // // Because no call to Do returns until the one call to f returns, if f causes // Do to be called, it will deadlock. // // If f panics, Do considers it to have returned; future calls of Do return // without calling f. func (o *Once) Do(f func()) { // Note: Here is an incorrect implementation of Do: // // if o.done.CompareAndSwap(0, 1) { // f()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/template.go
return fmt.Errorf("error executing template %q: %v", p.rawTemplate, err) } return nil } // safeExecute tries to execute the template, but catches panics and returns an error // should the template engine panic. func (p *GoTemplatePrinter) safeExecute(w io.Writer, obj interface{}) error { var panicErr error // Sorry for the double anonymous function. There's probably a clever way
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 23:00:24 UTC 2019 - 3.4K bytes - Viewed (0) -
src/runtime/signal_loong64.go
func (c *sigctxt) preparePanic(sig uint32, gp *g) { // We arrange link, and pc to pretend the panicking // function calls sigpanic directly. // Always save LINK to stack so that panics in leaf // functions are correctly handled. This smashes // the stack frame but we're not going back there // anyway. sp := c.sp() - goarch.PtrSize c.set_sp(sp) *(*uint64)(unsafe.Pointer(uintptr(sp))) = c.link()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 21 06:51:28 UTC 2023 - 3K bytes - Viewed (0) -
pkg/config/schema/resource/schema.go
// Validate the schema. if err := s.Validate(); err != nil { return nil, err } return s, nil } // MustBuild calls Build and panics if it fails. func (b Builder) MustBuild() Schema { s, err := b.Build() if err != nil { panic(fmt.Sprintf("MustBuild: %v", err)) } return s } // BuildNoValidate builds the Schema without checking the fields.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 19 22:42:42 UTC 2023 - 9.7K bytes - Viewed (0) -
src/slices/iter.go
// All sub-slices are clipped to have no capacity beyond the length. // If s is empty, the sequence is empty: there is no empty slice in the sequence. // Chunk panics if n is less than 1. func Chunk[Slice ~[]E, E any](s Slice, n int) iter.Seq[Slice] { if n < 1 { panic("cannot be less than 1") } return func(yield func(Slice) bool) { for i := 0; i < len(s); i += n { // Clamp the last chunk to the slice bound as necessary.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:40:32 UTC 2024 - 2.9K bytes - Viewed (0)