MCPcopy
hub / github.com/perkeep/perkeep / IsExpired

Method IsExpired

pkg/schema/blob.go:267–270  ·  view source on GitHub ↗

IsExpired reports whether this share has expired.

()

Source from the content-addressed store, hash-verified

265
266// IsExpired reports whether this share has expired.
267func (s Share) IsExpired() bool {
268 t := time.Time(s.b.ss.Expires)
269 return !t.IsZero() && clockNow().After(t)
270}
271
272// A StaticFile is a Blob representing a file, symlink fifo or socket
273// (or device file, when support for these is added).

Callers 2

handleGetViaSharingMethod · 0.80
TestShareExpirationFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestShareExpirationFunction · 0.64