Documentation ¶
Index ¶
- func DeleteImages(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider) error
- func SynchronizeLocalImageMetadata(imageDb datastore.ImageMetadataProvider, categoryDb datastore.CategoryProvider, ...) error
- func SynchronizePiwigoMetadata(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider) error
- func UploadImages(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteImages ¶
func DeleteImages(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider) error
func SynchronizeLocalImageMetadata ¶
func SynchronizeLocalImageMetadata(imageDb datastore.ImageMetadataProvider, categoryDb datastore.CategoryProvider, fileSystemNodes map[string]*localFileStructure.FilesystemNode, checksumCalculator fileChecksumCalculator) error
Update the local image metadata by walking through all found files and check if the modification date has changed or if they are new to the local database. If the files is new or changed, the md5sum will be rebuilt as well.
func SynchronizePiwigoMetadata ¶
func SynchronizePiwigoMetadata(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider) error
This method aggregates the check for files with missing piwigoids and if changed files need to be uploaded again.
func UploadImages ¶
func UploadImages(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider, numberOfWorkers int) error
Uploads the pending images to the piwigo gallery and assign the category of to the image. Update local metadata and set upload flag to false. Also updates the piwigo image id if there was a difference.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.