Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 3,023 for panics (0.25 sec)

  1. 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)
  2. src/fmt/fmt_test.go

    		}
    	}
    }
    
    // PanicS is a type that panics in String.
    type PanicS struct {
    	message any
    }
    
    // Value receiver.
    func (p PanicS) String() string {
    	panic(p.message)
    }
    
    // PanicGo is a type that panics in GoString.
    type PanicGo struct {
    	message any
    }
    
    // Value receiver.
    func (p PanicGo) GoString() string {
    	panic(p.message)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. 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)
  4. cluster/images/etcd/migrate/integration_test.go

    // or panics if the parse fails.
    func mustParseEtcdVersionPair(s string) *EtcdVersionPair {
    	pair, err := ParseEtcdVersionPair(s)
    	if err != nil {
    		panic(err)
    	}
    	return pair
    }
    
    // mustParseSupportedVersions parses a comma separated list of etcd versions or panics if the parse fails.
    func mustParseSupportedVersions(list []string) SupportedVersions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 28 07:33:23 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top