Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for newobj (0.31 sec)

  1. src/go/ast/resolve.go

    				// declare imported package object in file scope
    				// (do not re-use pkg in the file scope but create
    				// a new object instead; the Decl field is different
    				// for different files)
    				obj := NewObj(Pkg, name)
    				obj.Decl = spec
    				obj.Data = pkg.Data
    				p.declare(fileScope, pkgScope, obj)
    			}
    		}
    
    		// resolve identifiers
    		if importErrors {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/nodeports/node_ports.go

    // that change made a previously unschedulable pod schedulable.
    func (pl *NodePorts) isSchedulableAfterPodDeleted(logger klog.Logger, pod *v1.Pod, oldObj, newObj interface{}) (framework.QueueingHint, error) {
    	deletedPod, _, err := util.As[*v1.Pod](oldObj, nil)
    	if err != nil {
    		return framework.Queue, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 10:53:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/configmap_cafile_content.go

    			// so we don't have to be choosy about our key.
    			AddFunc: func(obj interface{}) {
    				c.queue.Add(c.keyFn())
    			},
    			UpdateFunc: func(oldObj, newObj interface{}) {
    				c.queue.Add(c.keyFn())
    			},
    			DeleteFunc: func(obj interface{}) {
    				c.queue.Add(c.keyFn())
    			},
    		},
    	})
    
    	return c, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/crypto/cipher/ofb.go

    	cipher  []byte
    	out     []byte
    	outUsed int
    }
    
    // NewOFB returns a [Stream] that encrypts or decrypts using the block cipher b
    // in output feedback mode. The initialization vector iv's length must be equal
    // to b's block size.
    func NewOFB(b Block, iv []byte) Stream {
    	blockSize := b.BlockSize()
    	if len(iv) != blockSize {
    		panic("cipher.NewOFB: IV length must equal block size")
    	}
    	bufSize := streamBufferSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. maven-di/src/test/java/org/apache/maven/di/impl/InjectorImplTest.java

            assertNotNull(inst);
        }
    
        static class BindInterfaces {
    
            interface TestInterface<T> {
                T getObj();
            }
    
            @Named
            static class ClassImpl implements TestInterface<String> {
                @Override
                public String getObj() {
                    return null;
                }
            }
    
            @Named
            @Typed
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ir/const.go

    	panic("unreachable")
    }
    
    var (
    	intZero     = constant.MakeInt64(0)
    	floatZero   = constant.ToFloat(intZero)
    	complexZero = constant.ToComplex(intZero)
    )
    
    // NewOne returns an OLITERAL representing 1 with the given type.
    func NewOne(pos src.XPos, typ *types.Type) Node {
    	var val constant.Value
    	switch {
    	case typ.IsInteger():
    		val = intOne
    	case typ.IsFloat():
    		val = floatOne
    	case typ.IsComplex():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_source_test.go

    	// totally fudged deepcopy
    	newFP := &FakePolicy{}
    	*newFP = *fp
    	return newFP
    }
    
    func (fb *FakeBinding) DeepCopyObject() runtime.Object {
    	// totally fudged deepcopy
    	newFB := &FakeBinding{}
    	*newFB = *fb
    	return newFB
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. pkg/registry/batch/cronjob/strategy.go

    			fieldpath.MakePathOrDie("spec"),
    		),
    	}
    }
    
    func (cronJobStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newJob := obj.(*batch.CronJob)
    	oldJob := old.(*batch.CronJob)
    	newJob.Spec = oldJob.Spec
    }
    
    func (cronJobStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return field.ErrorList{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 15:14:03 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/registry.go

    		volumezone.Name:                      volumezone.New,
    		nodevolumelimits.CSIName:             runtime.FactoryAdapter(fts, nodevolumelimits.NewCSI),
    		nodevolumelimits.EBSName:             runtime.FactoryAdapter(fts, nodevolumelimits.NewEBS),
    		nodevolumelimits.GCEPDName:           runtime.FactoryAdapter(fts, nodevolumelimits.NewGCEPD),
    		nodevolumelimits.AzureDiskName:       runtime.FactoryAdapter(fts, nodevolumelimits.NewAzureDisk),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/internal/fuzz/encoding_test.go

    			}
    			if err != nil {
    				t.Fatalf("unmarshal unexpected error: %v", err)
    			}
    			newB := marshalCorpusFile(vals...)
    			if newB[len(newB)-1] != '\n' {
    				t.Error("didn't write final newline to corpus file")
    			}
    
    			want := test.want
    			if want == "" {
    				want = test.in
    			}
    			want += "\n"
    			got := string(newB)
    			if got != want {
    				t.Errorf("unexpected marshaled value\ngot:\n%s\nwant:\n%s", got, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top