Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,305 for context0 (0.19 sec)

  1. src/context/context.go

    	//
    	// 	// userKey is the key for user.User values in Contexts. It is
    	// 	// unexported; clients use user.NewContext and user.FromContext
    	// 	// instead of using this key directly.
    	// 	var userKey key
    	//
    	// 	// NewContext returns a new Context that carries value u.
    	// 	func NewContext(ctx context.Context, u *User) context.Context {
    	// 		return context.WithValue(ctx, userKey, u)
    	// 	}
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  2. pilot/pkg/model/context.go

    		return e.NetworksWatcher.Networks()
    	}
    	return nil
    }
    
    // SetPushContext sets the push context with lock protected
    func (e *Environment) SetPushContext(pc *PushContext) {
    	e.mutex.Lock()
    	defer e.mutex.Unlock()
    	e.pushContext = pc
    }
    
    // PushContext returns the push context with lock protected
    func (e *Environment) PushContext() *PushContext {
    	e.mutex.RLock()
    	defer e.mutex.RUnlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (1)
  3. cmd/kubeadm/app/util/kubeconfig/kubeconfig_test.go

    clusters:
    - cluster:
        server: ""
      name: k8s
    contexts:
    - context:
        cluster: k8s
        user: user1
      name: user1@k8s
    current-context: user1@k8s
    kind: Config
    preferences: {}
    users:
    - name: user1
      user:
        token: abc
    `
    	configOut2 = `apiVersion: v1
    clusters:
    - cluster:
        server: localhost:8080
      name: kubernetes
    contexts:
    - context:
        cluster: kubernetes
        user: user2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 06:49:59 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  4. pkg/kubelet/certificate/bootstrap/bootstrap_test.go

      name: cluster-a
    - cluster:
        server: https://cluster-b.com
      name: cluster-b
    contexts:
    - context:
        cluster: cluster-a
        namespace: ns-a
        user: user-a
      name: context-a
    - context:
        cluster: cluster-b
        namespace: ns-b
        user: user-b
      name: context-b
    current-context: context-b
    users:
    - name: user-a
      user:
        client-certificate: mycertvalid.crt
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. src/html/template/escape.go

    		c.state, c.attr = stateAttrName, attrNone
    	}
    	return c
    }
    
    // join joins the two contexts of a branch template node. The result is an
    // error context if either of the input contexts are error contexts, or if the
    // input contexts differ.
    func join(a, b context, node parse.Node, nodeName string) context {
    	if a.state == stateError {
    		return a
    	}
    	if b.state == stateError {
    		return b
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    			callback:         defaultCallback,
    			attemptsExpected: 0,
    			errExpected:      context.DeadlineExceeded,
    		},
    		{
    			name:      "context canceled before the second execution and immediate",
    			immediate: true,
    			context: func() (context.Context, context.CancelFunc) {
    				return context.WithTimeout(context.Background(), time.Second)
    			},
    			callback: func(attempts int) (bool, error) {
    				return false, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

            op_outputs_ = std::vector<TensorHandlePtr>();
            Execute(context_, operation_name_, std::move(op_inputs_), attributes_,
                    expected_max_outputs_, &op_outputs_, status_.get());
            execution_state_ = ExecutionState::kHasResult;
          }
        }
        finished_execute_.notify_one();
      }
    }
    
    void DeviceThread::StartExecute(TFE_Context* context,
                                    const char* operation_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 07:47:20 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/CompositeFileCollectionSpec.groovy

                void visitDependencies(TaskDependencyResolveContext context) {
                    context.add(dependencySource)
                }
            }
    
            given:
            1 * dependencySource.visitDependencies(_) >> { TaskDependencyResolveContext context -> context.add(dependency1) }
            1 * dependencySource.visitDependencies(_) >> { TaskDependencyResolveContext context -> context.add(dependency2) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 12K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/discovery/token/token.go

    	klog.V(1).Infof("[discovery] Waiting for the cluster-info ConfigMap to receive a JWS signature"+
    		"for token ID %q", token.ID)
    
    	var lastError error
    	err = wait.PollUntilContextTimeout(context.Background(),
    		interval, duration, true,
    		func(ctx context.Context) (bool, error) {
    			cm, err = client.CoreV1().ConfigMaps(metav1.NamespacePublic).
    				Get(ctx, bootstrapapi.ConfigMapClusterInfo, metav1.GetOptions{})
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. pkg/kubelet/certificate/bootstrap/bootstrap.go

    			ClientCertificate: pemPath,
    			ClientKey:         pemPath,
    		}},
    		// Define a context that connects the auth info and cluster, and set it as the default
    		Contexts: map[string]*clientcmdapi.Context{"default-context": {
    			Cluster:   "default-cluster",
    			AuthInfo:  "default-auth",
    			Namespace: "default",
    		}},
    		CurrentContext: "default-context",
    	}
    
    	// Marshal to disk
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 14.2K bytes
    - Viewed (0)
Back to top