- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 167 for Modtime (0.14 sec)
-
internal/bucket/lifecycle/lifecycle.go
func ExpectedExpiryTime(modTime time.Time, days int) time.Time { if days == 0 { return modTime } t := modTime.UTC().Add(time.Duration(days+1) * 24 * time.Hour) return t.Truncate(24 * time.Hour) } // SetPredictionHeaders sets time to expiry and transition headers on w for a // given obj. func (lc Lifecycle) SetPredictionHeaders(w http.ResponseWriter, obj ObjectOpts) { event := lc.eval(obj, time.Time{})
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 17.9K bytes - Viewed (0) -
cmd/xl-storage-format-v2-legacy.go
return } bts, err = msgp.ReadExactBytes(bts, (x.VersionID)[:]) if err != nil { err = msgp.WrapError(err, "VersionID") return } x.ModTime, bts, err = msgp.ReadInt64Bytes(bts) if err != nil { err = msgp.WrapError(err, "ModTime") return } { var zb0002 uint8 zb0002, bts, err = msgp.ReadUint8Bytes(bts) if err != nil { err = msgp.WrapError(err, "Type") return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 19 16:43:43 UTC 2024 - 5.7K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
// Returns false on ties. func (x xlMetaV2VersionHeader) sortsBefore(o xlMetaV2VersionHeader) bool { if x == o { return false } // Prefer newest modtime. if x.ModTime != o.ModTime { return x.ModTime > o.ModTime } // The following doesn't make too much sense, but we want sort to be consistent nonetheless. // Prefer lower types if x.Type != o.Type { return x.Type < o.Type }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 64K bytes - Viewed (0) -
docs/debugging/inspect/export.go
return } func (z xlMetaV2VersionHeaderV2) MarshalJSON() (o []byte, e error) { tmp := struct { VersionID string ModTime time.Time Signature string Type uint8 Flags uint8 }{ VersionID: hex.EncodeToString(z.VersionID[:]), ModTime: time.Unix(0, z.ModTime), Signature: hex.EncodeToString(z.Signature[:]), Type: z.Type, Flags: z.Flags, } return json.Marshal(tmp)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 08 15:58:02 UTC 2022 - 9.1K bytes - Viewed (0) -
cmd/erasure-object.go
} } modTime = UTCNow() // We only preserve modTime if dstOpts.MTime is true. // in all other cases mtime is latest. fi.VersionID = versionID // set any new versionID we might have created fi.ModTime = modTime // set modTime for the new versionID if !dstOpts.MTime.IsZero() { modTime = dstOpts.MTime fi.ModTime = dstOpts.MTime }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 78.8K bytes - Viewed (0) -
internal/store/queuestore.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.6K bytes - Viewed (0) -
cmd/object-api-datatypes.go
// Clone - Returns a cloned copy of current objectInfo func (o *ObjectInfo) Clone() (cinfo ObjectInfo) { cinfo = ObjectInfo{ Bucket: o.Bucket, Name: o.Name, ModTime: o.ModTime, Size: o.Size, IsDir: o.IsDir, ETag: o.ETag, VersionID: o.VersionID, IsLatest: o.IsLatest,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 20.9K bytes - Viewed (0) -
cmd/data-scanner_test.go
lifeCycle: &lc, } modTime := time.Now() uuids := make([]uuid.UUID, 5) for i := range uuids { uuids[i] = uuid.UUID([16]byte{15: uint8(i + 1)}) } fivs := make([]FileInfo, 5) for i := 0; i < 5; i++ { fivs[i] = FileInfo{ Volume: bucket, Name: obj, VersionID: uuids[i].String(), IsLatest: i == 0, ModTime: modTime.Add(-1 * time.Duration(i) * time.Minute),
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 03 11:18:58 UTC 2024 - 6.9K bytes - Viewed (0) -
cmd/xl-storage-format-utils.go
Volume: volume, Name: path, Deleted: true, IsLatest: true, ModTime: timeSentinel1970, }, } } if err != nil { return FileInfoVersions{}, err } return FileInfoVersions{ Volume: volume, Name: path, Versions: versions, LatestModTime: versions[0].ModTime, }, nil } type fileInfoOpts struct { InclFreeVersions bool
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
} } }) t.Run(fmt.Sprintf("modtime-q%d", i), func(t *testing.T) { // Mutate modtime, but rest is consistent. vMod := make([][]xlMetaV2ShallowVersion, 0, len(vers)) for i, ver := range vers { newVers := make([]xlMetaV2ShallowVersion, 0, len(ver)) for _, v := range ver { v.header.ModTime += int64(i) newVers = append(newVers, v) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 08 17:50:48 UTC 2024 - 36.4K bytes - Viewed (0)