Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 328 for newWith (0.2 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. cmd/peer-rest-server.go

    		if m.VariableLabels == nil {
    			m.VariableLabels = make(map[string]string, 1)
    		}
    		m.VariableLabels[serverName] = globalLocalNodeName
    		res = append(res, &m)
    		return true
    	})
    	return aoMetricsGroup.NewWith(res), nil
    }
    
    // GetPeerMetrics gets the metrics to be federated across peers.
    func (s *peerRESTServer) GetPeerMetrics(_ *grid.MSS) (*grid.Array[*MetricV2], *grid.RemoteErr) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. pkg/config/schema/collection/schemas_test.go

    		Proto:        "google.protobuf.Struct",
    	}.MustBuild()
    )
    
    func TestSchemas_Basic(t *testing.T) {
    	g := NewWithT(t)
    
    	schemas := collection.SchemasFor(emptyResource)
    	g.Expect(schemas.All()).To(HaveLen(1))
    	g.Expect(schemas.All()[0]).To(Equal(emptyResource))
    }
    
    func TestSchemas_MustAdd(t *testing.T) {
    	g := NewWithT(t)
    	defer func() {
    		r := recover()
    		g.Expect(r).To(BeNil())
    	}()
    	b := collection.NewSchemasBuilder()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. pkg/apis/scheduling/validation/validation.go

    	// value is immutable.
    	if pc.Value != oldPc.Value {
    		allErrs = append(allErrs, field.Forbidden(field.NewPath("value"), "may not be changed in an update."))
    	}
    	// preemptionPolicy is immutable.
    	allErrs = append(allErrs, apivalidation.ValidateImmutableField(pc.PreemptionPolicy, oldPc.PreemptionPolicy, field.NewPath("preemptionPolicy"))...)
    	return allErrs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:30:47 UTC 2022
    - 3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/validation/validation.go

    		if len(options.ResourceVersion) == 0 {
    			allErrs = append(allErrs, field.Forbidden(field.NewPath("resourceVersionMatch"), "resourceVersionMatch is forbidden unless resourceVersion is provided"))
    		}
    		if len(options.Continue) > 0 {
    			allErrs = append(allErrs, field.Forbidden(field.NewPath("resourceVersionMatch"), "resourceVersionMatch is forbidden when continue is provided"))
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 09:55:40 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top