Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for newWith (0.19 sec)

  1. src/text/template/parse/node.go

    type WithNode struct {
    	BranchNode
    }
    
    func (t *Tree) newWith(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *WithNode {
    	return &WithNode{BranchNode{tr: t, NodeType: NodeWith, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}}
    }
    
    func (w *WithNode) Copy() Node {
    	return w.tr.newWith(w.Pos, w.Line, w.Pipe.CopyPipe(), w.List.CopyList(), w.ElseList.CopyList())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. internal/grid/types.go

    			return newFn()
    		}},
    	}
    }
    
    // New returns a new empty Array.
    func (p *ArrayOf[T]) New() *Array[T] {
    	return &Array[T]{
    		p: p,
    	}
    }
    
    // NewWith returns a new Array with the provided value (not copied).
    func (p *ArrayOf[T]) NewWith(val []T) *Array[T] {
    	return &Array[T]{
    		p:   p,
    		val: val,
    	}
    }
    
    func (p *ArrayOf[T]) newA(sz uint32) []T {
    	t, ok := p.aPool.Get().(*[]T)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 01 23:42:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. src/text/template/parse/parse.go

    	return r
    }
    
    // With:
    //
    //	{{with pipeline}} itemList {{end}}
    //	{{with pipeline}} itemList {{else}} itemList {{end}}
    //
    // If keyword is past.
    func (t *Tree) withControl() Node {
    	return t.newWith(t.parseControl("with"))
    }
    
    // End:
    //
    //	{{end}}
    //
    // End keyword is past.
    func (t *Tree) endControl() Node {
    	return t.newEnd(t.expect(itemRightDelim, "end").pos)
    }
    
    // Else:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. pkg/proxy/apis/config/validation/validation_test.go

    			},
    			expectedErrs: field.ErrorList{field.Invalid(newPath.Child("KubeIPVSConfiguration.TCPTimeout"), metav1.Duration{Duration: -1 * time.Second}, "must be greater than or equal to 0"),
    				field.Invalid(newPath.Child("KubeIPVSConfiguration.TCPFinTimeout"), metav1.Duration{Duration: -1 * time.Second}, "must be greater than or equal to 0"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. pkg/apis/resource/validation/validation.go

    	allErrs = append(allErrs, validateClassParameters(parameters.GeneratedFrom, field.NewPath("generatedFrom"))...)
    	allErrs = append(allErrs, validateResourceFilters(parameters.Filters, field.NewPath("filters"), filtersStored)...)
    	allErrs = append(allErrs, validateVendorParameters(parameters.VendorParameters, field.NewPath("vendorParameters"))...)
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  6. pkg/apis/rbac/validation/validation.go

    	}
    
    	if len(roleBinding.RoleRef.Name) == 0 {
    		allErrs = append(allErrs, field.Required(field.NewPath("roleRef", "name"), ""))
    	} else {
    		for _, msg := range ValidateRBACName(roleBinding.RoleRef.Name, false) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:48:21 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  7. pkg/apis/storage/validation/validation.go

    	allErrs = append(allErrs, validateProvisioner(storageClass.Provisioner, field.NewPath("provisioner"))...)
    	allErrs = append(allErrs, validateParameters(storageClass.Parameters, true, field.NewPath("parameters"))...)
    	allErrs = append(allErrs, validateReclaimPolicy(storageClass.ReclaimPolicy, field.NewPath("reclaimPolicy"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. pkg/proxy/apis/config/validation/validation.go

    	allErrs = append(allErrs, validateProxyMode(config.Mode, newPath.Child("Mode"))...)
    	allErrs = append(allErrs, validateClientConnectionConfiguration(config.ClientConnection, newPath.Child("ClientConnection"))...)
    
    	if config.OOMScoreAdj != nil && (*config.OOMScoreAdj < -1000 || *config.OOMScoreAdj > 1000) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go

    		field.NewPath("field"),
    	); len(errs) != 1 {
    		t.Fatalf("unexpected errors: %v", errs)
    	}
    	if errs := ValidateObjectMetaUpdate(
    		&metav1.ObjectMeta{Name: "test", ResourceVersion: "1", CreationTimestamp: metav1.NewTime(time.Unix(10, 0))},
    		&metav1.ObjectMeta{Name: "test", ResourceVersion: "1"},
    		field.NewPath("field"),
    	); len(errs) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 07 03:12:31 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  10. pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go

    		},
    		"missing-name": {
    			wantFailures: field.ErrorList{field.Required(field.NewPath("metadata", "name"), "name or generateName is required")},
    			template:     testClaimTemplate("", goodNS, goodClaimSpec),
    		},
    		"bad-name": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top