Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 140 for hamster (0.09 sec)

  1. src/cmd/vendor/golang.org/x/text/cases/context.go

    		return false
    	}
    	// This loop is faster than using copy.
    	for _, ch := range b {
    		c.dst[c.pDst] = ch
    		c.pDst++
    	}
    	return true
    }
    
    // writeString writes the given string to dst.
    func (c *context) writeString(s string) bool {
    	if len(c.dst)-c.pDst < len(s) {
    		c.err = transform.ErrShortDst
    		return false
    	}
    	// This loop is faster than using copy.
    	for i := 0; i < len(s); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/workcmd/edit.go

    }
    
    // allowedVersionArg returns whether a token may be used as a version in go.mod.
    // We don't call modfile.CheckPathVersion, because that insists on versions
    // being in semver form, but here we want to allow versions like "master" or
    // "1234abcdef", which the go command will resolve the next time it runs (or
    // during -fix).  Even so, we need to make sure the version is a valid token.
    func allowedVersionArg(arg string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. pkg/controlplane/apiserver/config.go

    	"k8s.io/kubernetes/pkg/kubeapiserver/authorizer/modes"
    	rbacrest "k8s.io/kubernetes/pkg/registry/rbac/rest"
    	"k8s.io/kubernetes/pkg/serviceaccount"
    )
    
    // Config defines configuration for the master
    type Config struct {
    	Generic *genericapiserver.Config
    	Extra
    }
    
    type Extra struct {
    	ClusterAuthenticationInfo clusterauthenticationtrust.ClusterAuthenticationInfo
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_node_status.go

    	"k8s.io/kubernetes/pkg/kubelet/nodestatus"
    	taintutil "k8s.io/kubernetes/pkg/util/taints"
    	volutil "k8s.io/kubernetes/pkg/volume/util"
    )
    
    // registerWithAPIServer registers the node with the cluster master. It is safe
    // to call multiple times, but not concurrently (kl.registrationCompleted is
    // not locked).
    func (kl *Kubelet) registerWithAPIServer() {
    	if kl.registrationCompleted {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  5. src/crypto/tls/example_test.go

    	if err != nil {
    		log.Fatalf("Failed to get URL: %v", err)
    	}
    	resp.Body.Close()
    
    	// The resulting file can be used with Wireshark to decrypt the TLS
    	// connection by setting (Pre)-Master-Secret log filename in SSL Protocol
    	// preferences.
    }
    
    func ExampleLoadX509KeyPair() {
    	cert, err := tls.LoadX509KeyPair("testdata/example-cert.pem", "testdata/example-key.pem")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. pkg/controlplane/apiserver/options/validation_test.go

    			}
    		})
    	}
    }
    
    func TestValidateOptions(t *testing.T) {
    	testCases := []struct {
    		name         string
    		options      *Options
    		expectErrors bool
    	}{
    		{
    			name:         "validate master count equal 0",
    			expectErrors: true,
    			options: &Options{
    				GenericServerRunOptions: &genericoptions.ServerRunOptions{},
    				Etcd:                    &genericoptions.EtcdOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/image/draw/draw.go

    		return
    	}
    
    	// Fast paths for special cases. If none of them apply, then we fall back
    	// to general but slower implementations.
    	//
    	// For NRGBA and NRGBA64 image types, the code paths aren't just faster.
    	// They also avoid the information loss that would otherwise occur from
    	// converting non-alpha-premultiplied color to and from alpha-premultiplied
    	// color. See TestDrawSrcNonpremultiplied.
    	switch dst0 := dst.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    	return string(buf)
    }
    
    // OpenAPISchemaType is used by the kube-openapi generator when constructing
    // the OpenAPI spec of this type.
    //
    // See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
    func (_ Time) OpenAPISchemaType() []string { return []string{"string"} }
    
    // OpenAPISchemaFormat is used by the kube-openapi generator when constructing
    // the OpenAPI spec of this type.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. cmd/kube-controller-manager/app/controllermanager.go

    	return cmd
    }
    
    // ResyncPeriod returns a function which generates a duration each time it is
    // invoked; this is so that multiple controllers don't get into lock-step and all
    // hammer the apiserver with list requests simultaneously.
    func ResyncPeriod(c *config.CompletedConfig) func() time.Duration {
    	return func() time.Duration {
    		factor := rand.Float64() + 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 13:03:53 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/dom_test.go

    		verifyDominators(t, fun, dominators, doms)
    		verifyDominators(t, fun, dominatorsSimple, doms)
    	}
    }
    
    // generateDominatorMap uses dominatorsSimple to obtain a
    // reference dominator tree for testing faster algorithms.
    func generateDominatorMap(fut fun) map[string]string {
    	blockNames := map[*Block]string{}
    	for n, b := range fut.blocks {
    		blockNames[b] = n
    	}
    	referenceDom := dominatorsSimple(fut.f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top