- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 90 for objs (0.02 seconds)
-
internal/bucket/lifecycle/evaluator_test.go
NumVersions: len(verIDs), } if i == 0 { obj.IsLatest = true } else { obj.SuccessorModTime = curModTime.Add(time.Duration(-i+1) * time.Second) } objs = append(objs, obj) } now := time.Date(2025, time.February, 10, 23, 0, 0, 0, time.UTC) gotEvents := evaluator.eval(objs, now) for i := range wantEvents { if gotEvents[i].Action != wantEvents[i].Action { t.Fatalf("got %v, want %v", gotEvents[i], wantEvents[i]) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Apr 08 15:41:24 GMT 2025 - 5K bytes - Click Count (0) -
cmd/data-usage_test.go
} if e.Size != int64(w.size) { t.Error("got size", e.Size, "want", w.size) } if e.Objects != uint64(w.objs) { t.Error("got objects", e.Objects, "want", w.objs) } if e.Versions != uint64(w.objs) { t.Error("got versions", e.Versions, "want", w.objs) } if e.ObjSizes != w.oSizes { t.Error("got histogram", e.ObjSizes, "want", w.oSizes) } }) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 14.7K bytes - Click Count (0) -
internal/bucket/lifecycle/evaluator.go
return events } // Eval will return a lifecycle event for each object in objs func (e *Evaluator) Eval(objs []ObjectOpts) ([]Event, error) { if len(objs) == 0 { return nil, nil } if len(objs) != objs[0].NumVersions { return nil, fmt.Errorf("number of versions mismatch, expected %d, got %d", objs[0].NumVersions, len(objs)) } return e.eval(objs, time.Now().UTC()), nil
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Apr 08 15:41:24 GMT 2025 - 4.6K bytes - Click Count (0) -
cmd/erasure-sets_test.go
{"Cost Benefit Analysis (2009-2010).pptx", objs[13]}, {"117Gn8rfHL2ACARPAhaFd0AGzic9pUbIA/5OCn5A", objs[1]}, {"SHØRT", objs[9]}, {"There are far too many object names, and far too few bucket names!", objs[13]}, {"a/b/c/", objs[1]}, {"/a/b/c", objs[4]}, {string([]byte{0xff, 0xfe, 0xfd}), objs[13]}, } // Tests hashing order to be consistent. for i, testCase := range testCases {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 6.8K bytes - Click Count (0) -
cmd/metacache-stream.go
// It is favorable to send as many objects as possible in a single write, // but no more than math.MaxUint32 func (w *metacacheWriter) write(objs ...metaCacheEntry) error { if w == nil { return errors.New("metacacheWriter: nil writer") } if len(objs) == 0 { return nil } if w.creator != nil { err := w.creator() w.creator = nil if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed May 07 15:37:12 GMT 2025 - 19.5K bytes - Click Count (0) -
cmd/metacache-stream_test.go
r := loadMetacacheSample(t) defer r.Close() var readErr error objs := make(chan metaCacheEntry, 1) var wg sync.WaitGroup wg.Add(1) go func() { readErr = r.readAll(t.Context(), objs) wg.Done() }() want := loadMetacacheSampleNames i := 0 for entry := range objs { if entry.name != want[i] { t.Errorf("entry %d, want %q, got %q", i, want[i], entry.name) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 15K bytes - Click Count (0) -
cmd/erasure-sets.go
object ObjectToDelete } // Transform []delObj to the list of object names toNames := func(delObjs []delObj) []ObjectToDelete { objs := make([]ObjectToDelete, len(delObjs)) for i, obj := range delObjs { objs[i] = obj.object } return objs } // The result of delete operation on all passed objects delErrs := make([]error, len(objects)) // The result of delete objects
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 37K bytes - Click Count (1) -
cmd/object_api_suite_test.go
} if result.Objects[2].Name != "obj1" { t.Errorf("%s: Expected the object name to be `%s`, but instead found `%s`", instanceType, "obj1", result.Objects[2].Name) } } // check ordering of results with prefix. { result, err = obj.ListObjects(context.Background(), "bucket", "obj", "", "", 1000) if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 34.5K bytes - Click Count (0) -
cmd/object-api-listobjects_test.go
{testBuckets[0], "newzen/zen/recurse/again/again/again/pics", "recurse", nil}, {testBuckets[0], "obj0", "obj0", nil}, {testBuckets[0], "obj1", "obj1", nil}, {testBuckets[0], "obj2", "obj2", nil}, {testBuckets[1], "obj1", "obj1", nil}, {testBuckets[1], "obj2", "obj2", nil}, {testBuckets[1], "temporary/0/", "", nil}, {testBuckets[3], "A/B", "contentstring", nil},Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 76.1K bytes - Click Count (0) -
internal/bucket/lifecycle/lifecycle_test.go
}, } // current version obj1 := ObjectOpts{ Name: "obj1", IsLatest: true, } // non-current version obj2 := ObjectOpts{ Name: "obj2", } tests := []struct { obj ObjectOpts expRuleID int transRuleID int }{ { obj: obj1, expRuleID: 0, transRuleID: 1, }, { obj: obj2, expRuleID: 0,Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 55.5K bytes - Click Count (0)