Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 678 for index (0.09 sec)

  1. pkg/controller/job/indexed_job_utils.go

    	template.Labels[batch.JobCompletionIndexAnnotation] = strconv.Itoa(index)
    }
    
    func podGenerateNameWithIndex(jobName string, index int) string {
    	appendIndex := "-" + strconv.Itoa(index) + "-"
    	generateNamePrefix := jobName + appendIndex
    	if len(generateNamePrefix) > names.MaxGeneratedNameLength {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 00:44:53 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  2. pkg/controller/job/success_policy_test.go

    			successPolicy: &batch.SuccessPolicy{
    				Rules: []batch.SuccessPolicyRule{{
    					SucceededIndexes: ptr.To("0-2"),
    				}},
    			},
    			wantMessage:          "Matched rules at index 0",
    			wantMetSuccessPolicy: true,
    		},
    		"rules.succeededIndexes is specified; succeededIndexes didn't match rules": {
    			enableJobSuccessPolicy: true,
    			completions:            10,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. pkg/scheduler/apis/config/validation/validation.go

    		for i := range cc.Profiles {
    			profile := &cc.Profiles[i]
    			path := profilesPath.Index(i)
    			errs = append(errs, validateKubeSchedulerProfile(path, cc.APIVersion, profile)...)
    			if idx, ok := existingProfiles[profile.SchedulerName]; ok {
    				errs = append(errs, field.Duplicate(path.Child("schedulerName"), profilesPath.Index(idx).Child("schedulerName")))
    			}
    			existingProfiles[profile.SchedulerName] = i
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. src/slices/slices.go

    		}
    	}
    	if len(s1) < len(s2) {
    		return -1
    	}
    	return 0
    }
    
    // Index returns the index of the first occurrence of v in s,
    // or -1 if not present.
    func Index[S ~[]E, E comparable](s S, v E) int {
    	for i := range s {
    		if v == s[i] {
    			return i
    		}
    	}
    	return -1
    }
    
    // IndexFunc returns the first index i satisfying f(s[i]),
    // or -1 if none do.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. cmd/erasure-healing-common_test.go

    		return FileInfo{}, errErasureReadQuorum
    	}
    
    	// Iterate through all the modTimes and count the FileInfo(s) with latest time.
    	for index, t := range modTimes {
    		if partsMetadata[index].IsValid() && t.Equal(modTime) {
    			latestFileInfo = partsMetadata[index]
    			count++
    		}
    	}
    
    	if !latestFileInfo.IsValid() {
    		return FileInfo{}, errErasureReadQuorum
    	}
    
    	if count < latestFileInfo.Erasure.DataBlocks {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 23K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    			assertOnError: assertIdenticalError(&cbor.DupMapKeyError{Key: int64(-1), Index: 1}),
    		},
    		{
    			name:          "reject duplicate negative int keys into map",
    			in:            hex("a220012002"), // {-1: 1, -1: 2}
    			into:          map[int64]interface{}{},
    			assertOnError: assertIdenticalError(&cbor.DupMapKeyError{Key: int64(-1), Index: 1}),
    		},
    		{
    			name:          "reject duplicate positive int keys into struct",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  7. association.go

    	for _, assignBack := range assignBacks {
    		fieldValue := reflect.Indirect(association.Relationship.Field.ReflectValueOf(association.DB.Statement.Context, assignBack.Source))
    		if assignBack.Index > 0 {
    			reflect.Indirect(assignBack.Dest).Set(fieldValue.Index(assignBack.Index - 1))
    		} else {
    			reflect.Indirect(assignBack.Dest).Set(fieldValue)
    		}
    	}
    }
    
    func (association *Association) buildCondition() *DB {
    	var (
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. cmd/erasure-healing.go

    	g := errgroup.WithNErrs(len(storageDisks))
    	var mu sync.Mutex
    	for index := range storageDisks {
    		index := index
    		g.Go(func() error {
    			if storageDisks[index] == nil {
    				// we ignore disk not found errors
    				return nil
    			}
    			volsInfo, err := storageDisks[index].ListVols(ctx)
    			if err != nil {
    				return err
    			}
    			for _, volInfo := range volsInfo {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    			}
    			obj = structType.Field(index)
    			t = nil
    
    		case opMethod:
    			switch t := t.(type) {
    			case *types.Interface:
    				if index >= t.NumMethods() {
    					return nil, fmt.Errorf("method index %d out of range [0-%d)", index, t.NumMethods())
    				}
    				obj = t.Method(index) // Id-ordered
    
    			case *types.Named:
    				if index >= t.NumMethods() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. callbacks/associations.go

    					distinctElems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    					identityMap := map[string]bool{}
    					for i := 0; i < rValLen; i++ {
    						obj := db.Statement.ReflectValue.Index(i)
    						if reflect.Indirect(obj).Kind() != reflect.Struct {
    							break
    						}
    						if _, zero := rel.Field.ValueOf(db.Statement.Context, obj); !zero { // check belongs to relation value
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
Back to top