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

Method StorageGeneration

pkg/blobserver/cond/cond.go:64–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func (sto *condStorage) StorageGeneration() (initTime time.Time, random string, err error) {
65 if gener, ok := sto.read.(blobserver.Generationer); ok {
66 return gener.StorageGeneration()
67 }
68 err = blobserver.GenerationNotSupportedError(fmt.Sprintf("blobserver.Generationer not implemented on %T", sto.read))
69 return
70}
71
72func (sto *condStorage) ResetStorageGeneration() error {
73 if gener, ok := sto.read.(blobserver.Generationer); ok {

Callers

nothing calls this directly

Calls 2

StorageGenerationMethod · 0.65

Tested by

no test coverage detected