- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 288 for index (0.45 sec)
-
cmd/format-erasure.go
g := errgroup.WithNErrs(len(storageDisks)) // Write `format.json` to all disks. for index := range storageDisks { index := index g.Go(func() error { if formats[index] == nil { return errDiskNotFound } return saveFormatErasure(storageDisks[index], formats[index], "") }, index) } // Wait for the routines to finish.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 23.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/internal/obj/sym.go
s.SymIdx = hashed64idx if hashed64idx != int32(len(ctxt.hashed64defs)) { panic("bad index") } ctxt.hashed64defs = append(ctxt.hashed64defs, s) hashed64idx++ } else { s.PkgIdx = goobj.PkgIdxHashed s.SymIdx = hashedidx if hashedidx != int32(len(ctxt.hasheddefs)) { panic("bad index") } ctxt.hasheddefs = append(ctxt.hasheddefs, s) hashedidx++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 14:41:10 UTC 2024 - 14.1K bytes - Viewed (0) -
pkg/apis/resource/validation/validation.go
return allErrs } func validateDriverAllocationResults(results []resource.DriverAllocationResult, fldPath *field.Path) field.ErrorList { var allErrs field.ErrorList for index, result := range results { idxPath := fldPath.Index(index) allErrs = append(allErrs, validateAllocationResultModel(&result.AllocationResultModel, idxPath)...) } 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)