MCPcopy
hub / github.com/perkeep/perkeep / StorageGeneration

Method StorageGeneration

pkg/blobserver/interface.go:235–235  ·  view source on GitHub ↗

Generation returns a Storage's initialization time and and unique random string (or UUID). Implementations should call ResetStorageGeneration on demand if no information is known. The error will be of type GenerationNotSupportedError if an underlying storage target doesn't support the Generationer

()

Source from the content-addressed store, hash-verified

233 // The error will be of type GenerationNotSupportedError if an underlying
234 // storage target doesn't support the Generationer interface.
235 StorageGeneration() (initTime time.Time, random string, err error)
236
237 // ResetGeneration deletes the information returned by Generation
238 // and re-generates it.

Callers 9

newStorageFunction · 0.65
StorageGenerationMethod · 0.65
StorageGenerationMethod · 0.65
StorageGenerationMethod · 0.65
StorageGenerationMethod · 0.65
StorageGenerationMethod · 0.65
serveDiscoveryMethod · 0.65
initUploaderFunction · 0.65
initCachesMethod · 0.65

Implementers 7

replicaStoragepkg/blobserver/replica/replica.go
condStoragepkg/blobserver/cond/cond.go
Storagepkg/blobserver/google/cloudstorage/sto
DiskStoragepkg/blobserver/localdisk/localdisk.go
Generationerpkg/blobserver/local/generation.go
overlayStoragepkg/blobserver/overlay/overlay.go
storagepkg/blobserver/blobpacked/blobpacked.g

Calls

no outgoing calls

Tested by

no test coverage detected