Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 832 for Initialize (0.24 sec)

  1. test/initialize.go

    func main() {
    	ok := true
    	for i, s := range same {
    		if !reflect.DeepEqual(s.a, s.b) {
    			ok = false
    			fmt.Printf("#%d not same: %v and %v\n", i+1, s.a, s.b)
    		}
    	}
    	if !ok {
    		fmt.Println("BUG: test/initialize")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 04:04:52 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. pkg/controlplane/apiserver/admission/initializer.go

    	}
    }
    
    // Initialize checks the initialization interfaces implemented by each plugin
    // and provide the appropriate initialization data
    func (i *PluginInitializer) Initialize(plugin admission.Interface) {
    	if wants, ok := plugin.(initializer.WantsQuotaConfiguration); ok {
    		wants.SetQuotaConfiguration(i.quotaConfiguration)
    	}
    
    	if wants, ok := plugin.(initializer.WantsExcludedAdmissionResources); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. pkg/kubeapiserver/admission/initializer.go

    func NewPluginInitializer(cloudConfig []byte) *PluginInitializer {
    	return &PluginInitializer{
    		cloudConfig: cloudConfig,
    	}
    }
    
    // Initialize checks the initialization interfaces implemented by each plugin
    // and provide the appropriate initialization data
    func (i *PluginInitializer) Initialize(plugin admission.Interface) {
    	if wants, ok := plugin.(WantsCloudConfig); ok {
    		wants.SetCloudConfig(i.cloudConfig)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer.go

    		authorizer:        authz,
    		featureGates:      featureGates,
    		stopCh:            stopCh,
    		restMapper:        restMapper,
    	}
    }
    
    // Initialize checks the initialization interfaces implemented by a plugin
    // and provide the appropriate initialization data
    func (i pluginInitializer) Initialize(plugin admission.Interface) {
    	// First tell the plugin about drained notification, so it can pass it to further initializations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

    }
    
    func TestRESTMapperAdmissionPlugin(t *testing.T) {
    	initializer := initializer.New(nil, nil, nil, &TestAuthorizer{}, nil, nil, &doNothingRESTMapper{})
    	wantsRESTMapperAdmission := &WantsRESTMapperAdmissionPlugin{}
    	initializer.Initialize(wantsRESTMapperAdmission)
    
    	if wantsRESTMapperAdmission.mapper == nil {
    		t.Errorf("Expected REST mapper to be initialized but found nil")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessIntegrationTest.groovy

            when:
            // start a build with a IsolationMode.PROCESS worker that will initialize the worker classpath cache and wait until the cache was initialized
            def block = server.expectAndBlock("waiting")
            def build = executer.withTasks("doWork").start()
            block.waitForAllPendingCalls()
    
            // simulate another "build" that tries to initialize the cache as well before recognizing that it has been done already
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:52:52 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/factory/BeanDescFactory.java

            if (!initialized) {
                initialize();
            }
            BeanDesc beanDesc = beanDescCache.get(clazz);
            if (beanDesc == null) {
                beanDesc = putIfAbsent(beanDescCache, clazz, new BeanDescImpl(clazz));
            }
            return beanDesc;
        }
    
        /**
         * 初期化を行ないます。
         */
        public static void initialize() {
            synchronized (BeanDescFactory.class) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc

                                       TFConcreteFunction* initialize,
                                       TFConcreteFunction* destroy_resource,
                                       ImmediateTensorHandlePtr resource_handle)
        : TensorHandleConvertible(std::move(resource_handle)),
          device_(device),
          create_resource_(create_resource),
          initialize_(initialize),
          destroy_resource_(destroy_resource) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. src/go/printer/performance_test.go

    	if err := (&Config{TabIndent | UseSpaces | normalizeNumbers, 8, 0}).Fprint(out, fset, node); err != nil {
    		log.Fatalf("print error: %s", err)
    	}
    }
    
    // cannot initialize in init because (printer) Fprint launches goroutines.
    func initialize() {
    	const filename = "testdata/parser.go"
    
    	src, err := os.ReadFile(filename)
    	if err != nil {
    		log.Fatalf("%s", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:10:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. src/container/ring/example_test.go

    	// Create two rings, r and s, of size 2
    	r := ring.New(2)
    	s := ring.New(2)
    
    	// Get the length of the ring
    	lr := r.Len()
    	ls := s.Len()
    
    	// Initialize r with 0s
    	for i := 0; i < lr; i++ {
    		r.Value = 0
    		r = r.Next()
    	}
    
    	// Initialize s with 1s
    	for j := 0; j < ls; j++ {
    		s.Value = 1
    		s = s.Next()
    	}
    
    	// Link ring r and ring s
    	rs := r.Link(s)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.9K bytes
    - Viewed (0)
Back to top