Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupAlbumSprites ¶
func CleanupAlbumSprites(deps cleanupAlbumSpritesDeps) usecase.IOInteractorOf[cleanupAlbumSpritesInput, AlbumSpriteCleanupReport]
CleanupAlbumSprites removes sprite manifests and chunk blobs that are no longer referenced by cached album pages.
func CleanupRemote ¶
func CleanupRemote(deps interface {
CtxdLogger() ctxd.Logger
PhotoAlbumImageFinder() photo.AlbumImageFinder
},
) usecase.Interactor
func GatherFiles ¶
func GatherFiles(deps gatherFilesDeps) usecase.Interactor
GatherFiles moves album files into their canonical location.
Types ¶
type AlbumSpriteCleanupReport ¶
type AlbumSpriteCleanupReport struct {
DryRun bool `json:"dry_run,omitempty"`
BlobStoreRepair filecache.RepairResult `json:"blob_store_repair"`
AlbumPageCaches int `json:"album_page_caches"`
PageCachesWithSprites int `json:"page_caches_with_sprites"`
PageCachesWithoutSprites int `json:"page_caches_without_sprites"`
BrokenPageCacheKeys []string `json:"broken_page_cache_keys,omitempty"`
BrokenPageCacheCount int `json:"broken_page_cache_count"`
WouldDeletePageCacheKeys []string `json:"would_delete_page_cache_keys,omitempty"`
WouldDeletePageCacheCount int `json:"would_delete_page_cache_count"`
DeletedPageCacheKeys []string `json:"deleted_page_cache_keys,omitempty"`
DeletedPageCacheCount int `json:"deleted_page_cache_count"`
ReferencedManifestKeys []string `json:"referenced_manifest_keys,omitempty"`
ReferencedManifestCount int `json:"referenced_manifest_count"`
ReferencedManifestSize int64 `json:"referenced_manifest_size"`
MissingManifestReferences []string `json:"missing_manifest_references,omitempty"`
MissingManifestCount int `json:"missing_manifest_count"`
WouldDeleteManifestKeys []string `json:"would_delete_manifest_keys,omitempty"`
WouldDeleteManifestCount int `json:"would_delete_manifest_count"`
DeletedManifestKeys []string `json:"deleted_manifest_keys,omitempty"`
DeletedManifestCount int `json:"deleted_manifest_count"`
TotalBlobCount int `json:"total_blob_count"`
TotalBlobSize int64 `json:"total_blob_size"`
ReferencedBlobCount int `json:"referenced_blob_count"`
ReferencedBlobSize int64 `json:"referenced_blob_size"`
WouldDeleteBlobKeys []string `json:"would_delete_blob_keys,omitempty"`
WouldDeleteBlobCount int `json:"would_delete_blob_count"`
WouldDeleteBlobSize int64 `json:"would_delete_blob_size"`
DeletedBlobKeys []string `json:"deleted_blob_keys,omitempty"`
DeletedBlobCount int `json:"deleted_blob_count"`
DeletedBlobSize int64 `json:"deleted_blob_size"`
}
Click to show internal directories.
Click to hide internal directories.